:root {
  --blue: #2f446a;
  --white: #ffffff;
  --ink: #0f172a;
  --line: #dbe5ff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--blue);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--blue);
  min-height: 100vh;
}

.layout {
  min-height: 100vh;
  display: block;
  background: var(--blue);
}

.left {
  background: var(--blue);
  color: var(--white);
  padding: 0.45rem 1rem 0.55rem;
  max-width: 760px;
  margin: 0 auto;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.logo-wrap {
  flex: 0 0 auto;
  width: 118px;
  height: 118px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
}

/* max-* + flex parent avoids “empty” 100%/100% img in some browsers */
.logo-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.logo-fallback {
  display: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  line-height: 1.15;
  padding: 0.25rem;
  align-self: center;
}

.logo-image[src=""],
.logo-image:not([src]) {
  display: none;
}

.hero-unit {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.45rem;
}

.hero-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.hero-text h1 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
}

.hero-subtitle {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 400;
  color: #dbe5ff;
}

h1 {
  font-size: 1.4rem;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 1.4rem;
}

.step-btn {
  width: 100%;
  text-align: left;
  margin: 0.45rem 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  position: relative;
  padding-right: 2rem;
}

.step-select-wrap {
  display: block;
  margin: 0.45rem 0;
}

.step-select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: var(--white);
  color: var(--blue);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font-weight: 600;
}

.step-select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.step-inline-hint {
  margin: 0.35rem 0 0.15rem;
  color: #a7f3d0;
  font-size: 0.82rem;
}

.step-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.step-btn.active {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

.step-btn.done::after {
  content: "✓";
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #16a34a;
  font-weight: 700;
}

.status {
  margin: 0.5rem 0;
  opacity: 0.95;
}

.status.strong {
  margin-top: 1rem;
  font-weight: 700;
}

.panel {
  max-width: 100%;
  margin: 0;
}

.field-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--white);
  color: var(--ink);
}

.field-group.active-panel {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(27, 78, 216, 0.12);
}

.field-group h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none;
}

label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin-top: 0.3rem;
}

#submitBtn,
.info-btn,
dialog button {
  border: none;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  padding: 0.65rem 0.9rem;
  cursor: pointer;
}

.full-width-submit {
  width: 100%;
  margin-top: 0.6rem;
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.consent-line input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
}

.legal-note {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.legal-note a {
  color: var(--blue);
}

.hint {
  margin: 0.4rem 0 0;
  color: #334155;
  font-size: 0.92rem;
}

#docsModeContainer {
  margin: 0.7rem 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.doc-row {
  display: block;
  margin-bottom: 0.65rem;
}

.doc-row .doc-label {
  display: block;
  margin-bottom: 0.25rem;
}

.price-summary {
  max-width: 100%;
  margin: 0.6rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: var(--white);
  color: var(--ink);
}

.sticky-summary {
  position: sticky;
  top: 0.6rem;
  z-index: 4;
}

.legal-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.legal-footer a {
  color: #dbe5ff;
}

.price-summary h3 {
  margin: 0 0 0.7rem;
}

#priceItems {
  list-style: none;
  padding: 0;
  margin: 0;
}

#priceItems li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid #d9e3ff;
  padding: 0.45rem 0;
}

.total-line {
  margin: 0.75rem 0 0;
  font-size: 1rem;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 520px;
  padding: 1rem;
}

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 30;
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

.wa-float:hover {
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .left {
    padding: 1rem;
  }

  .hero-text h1 {
    font-size: 1.05rem;
  }

  .hero-subtitle {
    font-size: 0.78rem;
  }

  .logo-wrap {
    width: 96px;
    height: 96px;
  }
}
