:root {
  --brand: #d05d15;
  --brand-strong: #b44f11;
  --brand-soft: #fff1e5;
  --ink: #222e38;
  --ink-soft: #4c5b66;
  --surface: #ffffff;
  --bg: #f8f2eb;
  --bg-alt: #fefaf6;
  --line: #e3d5c8;
  --chip: #fff6ee;
  --shadow: 0 16px 40px rgba(85, 57, 35, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at -5% -15%, #ffd9be 0%, transparent 62%),
    radial-gradient(900px 520px at 100% 0%, #ffd09f 0%, transparent 60%),
    linear-gradient(180deg, #fff9f2 0%, var(--bg) 55%, #f6eee5 100%);
  min-height: 100vh;
  line-height: 1.5;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(42px);
  pointer-events: none;
  z-index: -1;
}

.bg-shape-1 {
  width: 300px;
  height: 300px;
  background: rgba(208, 93, 21, 0.24);
  left: -120px;
  top: 120px;
  animation: floaty 7s ease-in-out infinite alternate;
}

.bg-shape-2 {
  width: 340px;
  height: 340px;
  background: rgba(255, 170, 105, 0.28);
  right: -140px;
  top: 200px;
  animation: floaty 9s ease-in-out infinite alternate-reverse;
}

@keyframes floaty {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-24px) scale(1.08);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  animation: fade-up 560ms ease-out both;
}

.brand-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.logo-wrap {
  background: #0f1317;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow);
  padding: 10px;
}

.brand-logo {
  width: 100%;
  display: block;
}

.eyebrow {
  margin: 0 0 8px;
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(208, 93, 21, 0.16);
  color: #8f3f10;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  color: #1f2a33;
}

.hero-text {
  margin: 12px 0 0;
  max-width: 780px;
  font-size: 1.04rem;
  color: var(--ink-soft);
}

.hero-badges {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  border: 1px solid rgba(208, 93, 21, 0.24);
  background: var(--brand-soft);
  color: #874012;
  font-weight: 600;
  font-size: 0.86rem;
  border-radius: 999px;
  padding: 7px 12px;
}

.layout {
  max-width: 1160px;
  margin: 6px auto 44px;
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 345px;
  gap: 18px;
}

.consultant-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  align-items: start;
  background: linear-gradient(130deg, #fffefc 0%, #fff4e9 100%);
}

.consultant-panel.no-photo {
  grid-template-columns: 1fr;
}

.consultant-photo {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: 36% 18%;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.consultant-copy h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  color: #273541;
}

.consultant-copy {
  min-width: 0;
}

.consultant-copy p {
  margin: 8px 0 0;
  color: #43505b;
  font-size: 14.67px;
}

.consultant-bio {
  font-size: 16.5px;
  line-height: 1.62;
}

.consultant-call {
  margin: 0;
  font-weight: 700;
  color: #2c3742;
  font-size: 17px;
  line-height: 1.35;
}

.consultant-call a {
  color: #8f3f10;
  text-decoration: none;
}

.consultant-call a:hover {
  text-decoration: underline;
}

.consultant-contact-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.consultant-contact-separator {
  color: #6a7580;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  align-self: center;
  position: relative;
  top: 2px;
}

.panel {
  border-radius: 20px;
  border: 1px solid rgba(227, 213, 200, 0.9);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-panel {
  padding: 24px;
  animation: fade-up 760ms ease-out both;
}

.tracking-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(208, 93, 21, 0.28);
  background: #fff4e8;
  color: #6f340d;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.tracking-banner strong {
  font-weight: 800;
}

.form-section + .form-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

.form-section h2 {
  margin: 0 0 11px;
  font-family: "Fraunces", serif;
  color: #273541;
}

h3 {
  margin: 0;
  font-size: 1rem;
  color: #2c3b48;
}

.grid {
  display: grid;
  gap: 12px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-meta-grid {
  margin-top: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #2f3b45;
  font-weight: 600;
  font-size: 0.94rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-alt);
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.upload-box:focus-within {
  outline: 3px solid rgba(208, 93, 21, 0.25);
  outline-offset: 1px;
  border-color: rgba(208, 93, 21, 0.55);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdfa;
  padding: 14px;
  display: flex;
  min-height: 128px;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: #cbaf98;
}

.plan-card input {
  margin: 0 0 6px;
}

.plan-card:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(208, 93, 21, 0.16);
  background: var(--brand-soft);
}

.plan-name {
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
}

.plan-subtitle {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9rem;
}

.plan-price {
  margin-top: auto;
  color: #94450f;
  font-weight: 700;
  font-size: 0.86rem;
}

.plan-recommendations-wrap {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf4;
  padding: 14px;
}

.plan-recommendations-wrap h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.06rem;
}

.recommended-plan-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recommended-plan-card {
  border: 1px solid #e7d4c3;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.recommended-plan-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(208, 93, 21, 0.2);
  background: #fff5ec;
}

.recommended-plan-card h4 {
  margin: 0;
  font-family: "Fraunces", serif;
  color: #22303b;
  font-size: 1.05rem;
}

.recommended-plan-meta {
  margin: 0;
  color: #55636f;
  font-size: 0.86rem;
}

.recommended-plan-price {
  margin: 0;
  color: #8f3f10;
  font-weight: 800;
  font-size: 0.9rem;
}

.recommended-plan-link {
  color: #8f3f10;
  font-weight: 700;
  font-size: 0.86rem;
}

.recommended-plan-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recommended-plan-select {
  border: 1px solid #d8b69a;
  border-radius: 999px;
  background: #fff;
  color: #7d370e;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  padding: 7px 11px;
  cursor: pointer;
}

.recommended-plan-select:hover {
  border-color: #c79572;
  background: #fff4e8;
}

.recommended-plan-select.is-selected {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.recommended-more-btn {
  margin-top: 12px;
  border: 1px solid #d8b69a;
  border-radius: 999px;
  background: #fff;
  color: #7d370e;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
}

.recommended-more-btn:hover {
  border-color: #c79572;
  background: #fff4e8;
}

.standards-link {
  display: inline-flex;
  margin: 6px 0 12px;
  color: #954611;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  font-weight: 700;
}

.standards-accordion {
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

.standard-tab {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffcf8;
  overflow: hidden;
}

.standard-tab summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  color: #2f3b45;
  position: relative;
}

.standard-tab summary::-webkit-details-marker {
  display: none;
}

.standard-tab summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 11px;
  font-size: 1.2rem;
  line-height: 1;
  color: #8f3f10;
}

.standard-tab[open] summary {
  background: #fff4e9;
  border-bottom: 1px solid var(--line);
}

.standard-tab[open] summary::after {
  content: "-";
}

.standard-tab p {
  margin: 0;
  padding: 12px 14px 6px;
  color: #44525d;
  font-size: 0.92rem;
}

.standard-tab ul {
  margin: 0;
  padding: 0 14px 14px 32px;
  color: #44525d;
  font-size: 0.9rem;
}

.standard-tab li + li {
  margin-top: 5px;
}

.option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip);
  padding: 10px 12px;
  font-size: 0.92rem;
}

.checkbox-chip input {
  accent-color: var(--brand);
}

.upload-box {
  border: 2px dashed #d0b39c;
  border-radius: 16px;
  background: #fff8f0;
  padding: 18px;
  text-align: center;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.upload-box input {
  display: block;
  width: 100%;
}

.upload-box span {
  margin-top: 10px;
  color: var(--ink-soft);
  font-weight: 500;
}

.photo-preview {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.thumb-card {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #faf5ee;
}

.thumb-card img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  display: block;
}

.thumb-card figcaption {
  padding: 7px;
  font-size: 0.8rem;
  color: #55636f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subtle {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.hidden {
  display: none;
}

.actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  padding: 11px 16px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-secondary {
  background: #f2e7dc;
  color: #3c434b;
}

.status {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: #94450f;
  font-weight: 600;
}

.summary-panel {
  height: fit-content;
  position: sticky;
  top: 20px;
  padding: 20px;
  animation: fade-up 950ms ease-out both;
  background: linear-gradient(180deg, #fffefe 0%, #fff8f1 100%);
}

.summary-panel h2 {
  margin: 0 0 14px;
  font-family: "Fraunces", serif;
}

.summary-list {
  margin: 0;
  display: grid;
  gap: 11px;
}

.summary-list div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.summary-list dt {
  margin: 0 0 4px;
  color: #7b6653;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.summary-list dd {
  margin: 0;
  color: #2c3742;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1020px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

  .brand-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .logo-wrap {
    width: min(260px, 100%);
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 26px;
  }

  .consultant-panel {
    grid-template-columns: 1fr;
  }

  .consultant-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .form-panel {
    padding: 18px;
  }

  .two-col,
  .plan-grid,
  .option-grid,
  .recommended-plan-grid {
    grid-template-columns: 1fr;
  }
}
