.moon-hero {
  padding-bottom: 20px;
}

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

.moon-toggle-btn {
  background: var(--panel-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding: 13px 14px;
  transition: var(--transition);
}

.moon-toggle-btn:hover,
.moon-toggle-btn.active {
  background: var(--surface-2);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.moon-auto-preview {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
  color: var(--text-soft);
  display: grid;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.moon-switch-list {
  display: grid;
  gap: 10px;
}

.moon-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
}

.moon-switch-row span {
  display: grid;
  gap: 4px;
}

.moon-switch-row strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.moon-switch-row small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.moon-switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.moon-color-grid {
  display: grid;
  gap: 10px;
}

.moon-color-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--panel-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.moon-color-btn:hover,
.moon-color-btn.active {
  background: var(--surface-2);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.moon-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
  flex: 0 0 auto;
}

.moon-color-copy {
  display: grid;
  gap: 2px;
}

.moon-color-copy strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.moon-color-copy small {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.moon-choice-grid {
  display: grid;
  gap: 10px;
}

.moon-choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--panel-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.moon-choice-btn:hover,
.moon-choice-btn.active {
  background: var(--surface-2);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.moon-choice-swatch {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  flex: 0 0 auto;
}

.moon-choice-swatch-bg {
  border-radius: 12px;
  width: 56px;
}

.moon-choice-copy {
  display: grid;
  gap: 2px;
}

.moon-choice-copy strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.moon-choice-copy small {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.moon-location-status,
.moon-location-card,
.moon-error {
  margin-top: 12px;
}

.moon-location-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.moon-location-card {
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--gold-dim);
}

.moon-location-card strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.moon-location-card span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
}

.moon-inline-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--gold);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 0;
}

.moon-error {
  color: #9d5b5b;
  font-size: 13px;
}

.moon-placeholder {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 244, 221, 0.12), rgba(255, 244, 221, 0) 30%),
    rgba(7, 8, 16, 0.9);
  color: rgba(255, 255, 255, 0.85);
}

.moon-placeholder .placeholder-icon {
  color: rgba(255, 255, 255, 0.84);
}

@media (max-width: 760px) {
  .moon-toggle-grid {
    grid-template-columns: 1fr;
  }

  .moon-switch-row,
  .moon-location-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.form-section {
  margin-bottom: 20px;
}

.cta-action-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.cta-action-row .btn-ghost {
  flex: 0 0 auto;
  min-width: 132px;
}

.cta-action-row .btn-primary {
  flex: 1;
}

.price-breakdown-wrap {
  margin-bottom: 12px;
}

.price-breakdown-toggle {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
  color: var(--text);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.price-summary-copy {
  display: grid;
  gap: 1px;
}

.price-summary-copy strong {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}

.price-summary-copy small {
  font-size: 10px;
  color: var(--text-muted);
}

.price-summary-total {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.price-summary-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.price-breakdown-toggle[aria-expanded="false"] .price-summary-chevron {
  transform: rotate(-90deg);
}

.price-breakdown-collapse {
  margin-top: 8px;
}

.cta-review-strip {
  margin: 10px 0 8px;
}

.cta-review-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.cta-review-strip-head span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cta-review-link {
  font-size: 11px;
  color: var(--gold);
  text-decoration: none;
}

.cta-review-link:hover {
  text-decoration: underline;
}

.cta-review-carousel {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.cta-review-carousel::-webkit-scrollbar {
  display: none;
}

.cta-review-thumb {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  width: 42px;
  height: 42px;
  padding: 0;
  flex: 0 0 auto;
  overflow: hidden;
  cursor: pointer;
}

.cta-review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-review-thumb:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.moon-preview-proof {
  margin-top: 14px;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.moon-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 11px;
  padding: 6px 10px;
  line-height: 1.2;
}

.moon-proof-pill strong {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

@media (min-width: 901px) {
  .form-panel {
    padding: 24px 26px 26px;
  }

  .moon-choice-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .moon-choice-grid::-webkit-scrollbar {
    display: none;
  }

  .moon-choice-btn {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 90px;
    padding: 10px 12px;
    text-align: center;
    gap: 6px;
  }

  .moon-choice-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }

  .moon-choice-swatch-bg {
    width: 52px;
    height: 32px;
    border-radius: 8px;
  }

  .moon-choice-copy {
    gap: 1px;
  }

  .moon-choice-copy strong {
    font-size: 11px;
  }

  .moon-choice-copy small {
    font-size: 9px;
  }

  .moon-color-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .moon-color-grid::-webkit-scrollbar {
    display: none;
  }

  .moon-color-btn {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 10px 10px;
    text-align: center;
    gap: 6px;
  }

  .moon-color-swatch {
    width: 28px;
    height: 28px;
  }

  .moon-color-copy {
    gap: 1px;
    align-items: center;
  }

  .moon-color-copy strong {
    font-size: 11px;
  }

  .moon-color-copy small {
    font-size: 9px;
  }

  .font-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .moon-switch-row {
    padding: 11px 14px;
  }

  .moon-switch-row strong {
    font-size: 12px;
  }

  .moon-switch-row small {
    font-size: 11px;
  }

  .mob-accordion-body {
    display: contents !important;
  }
}

/* MOBILE & TABLET FORM UX (<= 900px) */

.mob-accordion-trigger {
  display: none;
}

.mob-accordion-group {
  display: contents;
}

.mob-accordion-body {
  display: contents;
}

.mobile-preview-bar {
  display: none;
}

@media (max-width: 900px) {
  .mobile-preview-bar {
    display: none;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: #07080f;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-preview-thumb {
    width: 44px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a2540;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .moon-mini-canvas {
    width: 44px;
    height: 55px;
    display: block;
  }

  .mobile-preview-meta {
    flex: 1;
    min-width: 0;
  }

  .mobile-preview-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-preview-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mob-accordion-group {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 10px;
  }

  .mob-accordion-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: none;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--transition);
  }

  .mob-accordion-trigger:active {
    background: var(--gold-dim);
  }

  .mob-acc-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-dim);
    border-radius: 8px;
  }

  .mob-accordion-trigger[aria-expanded="true"] .mob-acc-icon {
    background: var(--gold);
  }

  .mob-acc-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
  }

  .mob-acc-summary {
    flex: 1;
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    margin-right: 2px;
  }

  .mob-acc-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.22s ease;
  }

  .mob-accordion-trigger[aria-expanded="true"] .mob-acc-chevron {
    transform: rotate(180deg);
    color: var(--gold);
  }

  .mob-accordion-body {
    display: block;
    padding: 0 14px 16px;
  }

  .form-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    padding-bottom: 0px;
  }

  .form-panel .field-row.two-col {
    grid-template-columns: 1fr 1fr;
  }

  .moon-choice-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .moon-choice-grid::-webkit-scrollbar {
    display: none;
  }

  .moon-choice-btn {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 82px;
    padding: 10px 10px;
    text-align: center;
    gap: 6px;
    scroll-snap-align: start;
  }

  .moon-choice-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }

  .moon-choice-swatch-bg {
    width: 50px;
    height: 30px;
    border-radius: 8px;
  }

  .moon-choice-copy {
    gap: 1px;
    align-items: center;
  }

  .moon-choice-copy strong {
    font-size: 11px;
  }

  .moon-choice-copy small {
    font-size: 9px;
  }

  .moon-color-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .moon-color-grid::-webkit-scrollbar {
    display: none;
  }

  .moon-color-btn {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 75px;
    padding: 10px 10px;
    text-align: center;
    gap: 6px;
    scroll-snap-align: start;
  }

  .moon-color-swatch {
    width: 28px;
    height: 28px;
  }

  .moon-color-copy {
    gap: 1px;
    align-items: center;
  }

  .moon-color-copy strong {
    font-size: 11px;
  }

  .moon-color-copy small {
    font-size: 9px;
  }

  .font-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .font-btn {
    padding: 10px 8px;
  }

  .font-btn .font-preview {
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
  }

  .font-btn .font-label {
    font-size: 9px;
    letter-spacing: 0.6px;
  }

  .size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .size-grid::-webkit-scrollbar {
    display: none;
  }

  .size-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 100px;
  }

  .frame-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .frame-grid::-webkit-scrollbar {
    display: none;
  }

  .frame-btn {
    flex: 0 0 auto;
    min-width: 90px;
  }

  .moon-switch-row {
    flex-direction: row;
    align-items: center;
    padding: 11px 12px;
  }

  .moon-switch-row strong {
    font-size: 12px;
  }

  .moon-switch-row small {
    font-size: 11px;
  }

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

  .delivery-btn {
    padding: 12px 10px;
    gap: 6px;
  }

  .delivery-title {
    font-size: 13px;
  }

  .delivery-sub {
    font-size: 11px;
  }

  .delivery-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .delivery-icon svg {
    width: 18px;
    height: 18px;
  }

  .form-section {
    margin-bottom: 18px;
  }

  .cta-area {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 10px 16px max(16px, env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(30, 10, 8, 0.08);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 0;
    padding-top: 10px;
  }

  .mobile-cta-bar {
    display: none !important;
  }

  .price-breakdown {
    margin-bottom: 8px;
    padding: 8px 12px;
    gap: 5px;
  }

  .price-breakdown-wrap {
    margin-bottom: 8px;
  }

  .price-breakdown-toggle {
    padding: 8px 10px;
  }

  .price-summary-copy strong {
    font-size: 11px;
  }

  .price-summary-copy small {
    font-size: 9px;
  }

  .price-summary-total {
    font-size: 11px;
  }

  .cta-review-strip {
    margin: 8px 0;
  }

  .cta-review-thumb {
    width: 38px;
    height: 38px;
  }

  .cta-review-strip-head span,
  .cta-review-link {
    font-size: 10px;
  }

  .moon-preview-proof {
    margin-top: 10px;
    gap: 3px;
  }

  .moon-proof-pill {
    font-size: 10px;
    padding: 5px 9px;
  }

  .price-breakdown-row {
    font-size: 12px;
  }

  .price-breakdown-row.total {
    padding-top: 6px;
  }

  .btn-primary.cta-paid,
  .cta-action-row .btn-primary,
  button.btn-primary[style*="width:100%"] {
    height: 52px;
    font-size: 15px;
    border-radius: var(--radius);
  }

  .cta-action-row .btn-ghost {
    height: 52px;
    padding: 0 14px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .cta-trust {
    font-size: 10px;
    margin-top: 6px;
  }

  .form-section:last-of-type {
    padding-bottom: 0px;
  }

  .cta-price-note {
    margin-bottom: 8px;
    justify-content: center;
    gap: 6px;
  }

  .price-badge {
    font-size: 18px;
    padding: 2px 10px;
  }

  .price-desc {
    font-size: 11px;
  }

  .input-field {
    height: 50px;
    font-size: 16px;
    border-radius: var(--radius);
  }

  .moon-toggle-btn {
    padding: 14px;
    font-size: 13px;
    min-height: 46px;
  }

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

  .section-label {
    margin-bottom: 10px;
  }
}

@media (max-width: 359px) {
  .cta-action-row .btn-ghost {
    min-width: 118px;
    padding: 0 10px;
    font-size: 12px;
  }

  .form-panel .field-row.two-col {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 481px) and (max-width: 900px) {
  .font-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
  }

  .frame-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
  }

  .moon-choice-btn {
    min-width: 100px;
  }

  .form-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
  }

  .mob-accordion-group {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
  }

  .mob-accordion-trigger {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .mob-accordion-body {
    padding: 14px 0 4px;
  }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 900px) {
    .cta-area {
      padding-bottom: 10px;
    }
  }
}
