/* Order Page Layout */
.order-page { padding: 80px 20px 60px; max-width: 1200px; margin: 0 auto; }
.order-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.order-intro { margin-bottom: 36px; }
.order-intro h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; }
.order-intro p { color: var(--text-secondary); font-size: 0.88rem; }

/* Sections */
.order-section { background: #fff; border: 1px solid #e5e5e5; border-radius: var(--radius-lg); padding: 28px 24px; margin-bottom: 16px; }
.order-section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.order-step { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #111; color: #fff; font-size: 0.65rem; font-weight: 800; flex-shrink: 0; }
.order-section-header h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.3px; }

/* Base package */
.base-package { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 20px; }
.base-price { font-size: 1.8rem; font-weight: 900; color: #111; margin-bottom: 12px; }
.base-price span { font-size: 0.7rem; font-weight: 500; color: var(--text-secondary); }
.base-includes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.base-includes li { font-size: 0.78rem; color: var(--text-secondary); padding-left: 18px; position: relative; }
.base-includes li::before { content: '\2713'; position: absolute; left: 0; color: #eab308; font-weight: 700; font-size: 0.7rem; }

/* Sub-group headings inside sections */
.addon-subgroup { margin-top: 18px; margin-bottom: 8px; font-size: 0.72rem; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.5px; padding-bottom: 6px; border-bottom: 1px solid #eee; }

/* Fields */
.field { margin-bottom: 10px; }
.field label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; background: #fafafa; border: 1px solid #ddd; border-radius: var(--radius); color: #111; font-size: 0.82rem; font-family: var(--font); transition: all var(--transition); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #eab308; box-shadow: 0 0 0 3px rgba(234,179,8,0.1); }
.field input.error, .field select.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.field textarea { min-height: 80px; resize: vertical; }
.field select { cursor: pointer; background-color: #fafafa; }
.req { color: #ef4444; }

/* Options */
.option-group { margin-bottom: 16px; }
.option-group h3 { font-size: 0.82rem; font-weight: 700; margin-bottom: 10px; color: var(--text-secondary); }
.radio-option, .checkbox-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: #fafafa; border: 1px solid #e5e5e5; border-radius: var(--radius); margin-bottom: 6px; cursor: pointer; transition: all var(--transition); font-size: 0.82rem; }
.radio-option:hover, .checkbox-option:hover { border-color: #ccc; background: #f5f5f5; }
.radio-option input, .checkbox-option input { margin-top: 2px; flex-shrink: 0; accent-color: #eab308; }
.radio-option div, .checkbox-option div { flex: 1; }
.radio-option strong, .checkbox-option strong { display: block; font-size: 0.82rem; margin-bottom: 2px; color: #111; }
.radio-option small, .checkbox-option small { display: block; font-size: 0.72rem; color: #777; line-height: 1.5; }
.option-price { font-size: 0.78rem; font-weight: 700; color: #111; white-space: nowrap; flex-shrink: 0; }
.option-price.weekly { color: #eab308; }
.price-tag { font-size: 0.7rem; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.price-tag.included { color: #16a34a; }
.rec-badge { display: inline-block; font-size: 0.58rem; font-weight: 700; color: #000; background: #eab308; padding: 1px 6px; border-radius: 4px; vertical-align: middle; margin-left: 4px; text-transform: uppercase; letter-spacing: 0.3px; }

/* Radio card (support) */
.radio-card { padding: 16px; }
.radio-card.highlight { border-color: #fde68a; background: #fffbeb; }
.support-features { list-style: none; margin-top: 8px; }
.support-features li { font-size: 0.72rem; color: #777; padding: 2px 0 2px 16px; position: relative; }
.support-features li::before { content: '\2713'; position: absolute; left: 0; color: #eab308; font-size: 0.65rem; }

/* Conditional group */
.conditional-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; }

/* Qty controls */
.addon-qty-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fafafa; border: 1px solid #e5e5e5; border-radius: var(--radius); margin-bottom: 6px; }
.addon-qty-row > div:first-child { flex: 1; }
.addon-qty-row strong { display: block; font-size: 0.82rem; margin-bottom: 2px; color: #111; }
.addon-qty-row small { display: block; font-size: 0.72rem; color: #777; line-height: 1.4; }
.qty-control { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.qty-btn { width: 32px; height: 32px; border: 1px solid #ddd; background: #f0f0f0; color: #333; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.qty-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.qty-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.qty-btn:hover { background: #e5e5e5; border-color: #ccc; }
.qty-input { width: 44px; height: 32px; text-align: center; border: 1px solid #ddd; border-left: none; border-right: none; background: #fff; color: #111; font-size: 0.82rem; font-family: var(--font); font-weight: 600; -moz-appearance: textfield; }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-field { margin-top: 10px; }

/* Integration group */
.integration-group h3 { font-size: 0.72rem; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }

/* Radio pills (property/bedrooms) */
.radio-group-inline { display: flex; flex-wrap: wrap; gap: 6px; }
.radio-pill { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: #fafafa; border: 1px solid #e5e5e5; border-radius: 20px; font-size: 0.78rem; cursor: pointer; transition: all var(--transition); }
.radio-pill:hover { border-color: #ccc; }
.radio-pill input { accent-color: #eab308; }
.radio-pill:has(input:checked) { border-color: #eab308; background: #fffbeb; }

/* Terms */
.terms-list { display: flex; flex-direction: column; gap: 6px; }
.terms-check { padding: 10px 12px; }
.terms-check small { font-size: 0.72rem; line-height: 1.5; color: #555; }
.terms-check strong { font-size: 0.75rem; color: #111; }

/* Submit */
.btn-submit { width: 100%; justify-content: center; padding: 14px; font-size: 0.9rem; margin-top: 8px; }

/* Validation errors */
.error-highlight { border-color: #ef4444 !important; }
.error-highlight input, .error-highlight select { border-color: #ef4444 !important; }
.field-error { font-size: 0.7rem; color: #ef4444; margin-top: 4px; }

/* Success overlay */
.success-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.4); align-items: center; justify-content: center; }
.success-overlay.visible { display: flex; }
.success-modal { background: #fff; border-radius: var(--radius-lg); padding: 48px 36px; text-align: center; max-width: 420px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.success-icon { font-size: 2.5rem; color: #16a34a; margin-bottom: 12px; }
.success-modal h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.success-modal p { color: #555; font-size: 0.88rem; margin-bottom: 24px; }
.success-modal .btn { margin: 0 auto; }


/* Sub-group headings */
.addon-subgroup { margin-top: 18px; margin-bottom: 8px; font-size: 0.72rem; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.5px; padding-bottom: 6px; border-bottom: 1px solid #eee; }


/* Sidebar */
.order-sidebar { position: sticky; top: 72px; }
.order-summary { background: #fff; border: 1px solid #e5e5e5; border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.order-summary h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.summary-lines { margin-bottom: 16px; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.78rem; padding: 4px 0; color: #777; }
.summary-line span:last-child { font-weight: 600; color: #111; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 800; padding-top: 12px; border-top: 1px solid #eee; color: #111; }
.summary-support { display: flex; justify-content: space-between; font-size: 0.78rem; padding-top: 8px; color: #eab308; font-weight: 600; }

/* Mobile total bar */
.mobile-total-bar { display: none; }

@media (max-width: 900px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-sidebar { display: none; }
  .order-summary { display: none; }
  .mobile-total-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: rgba(255,255,255,0.97); backdrop-filter: blur(16px); border-top: 1px solid #e5e5e5; padding: 14px 20px; justify-content: space-between; font-size: 0.9rem; font-weight: 700; box-shadow: 0 -2px 10px rgba(0,0,0,0.06); }
  .mobile-total-bar.visible { display: flex; }
  .mobile-total-bar span:last-child { color: #111; font-size: 1.1rem; }
  .order-page { padding-bottom: 80px; }
  .base-includes { grid-template-columns: 1fr; }
  .order-intro { text-align: center; }
  .order-section-header { justify-content: center; }
  .base-package { text-align: center; }
  .base-price { text-align: center; }
  .radio-group-inline { justify-content: center; }

  /* Clean mobile layout */
  .addon-qty-row { flex-wrap: wrap; gap: 8px; padding: 14px; }
  .addon-qty-row > div:first-child { width: 100%; }
  .addon-qty-row .qty-control { margin-left: auto; }

  .radio-option, .checkbox-option { font-size: 0.78rem; padding: 10px 12px; }
  .option-price { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .radio-group-inline { gap: 4px; }
  .radio-pill { padding: 6px 10px; font-size: 0.72rem; }
  .order-page { padding: 72px 12px 80px; }
  .order-section { padding: 16px 14px; }
  .order-section-header h2 { font-size: 0.92rem; }
  .addon-qty-row { padding: 12px; }
  .addon-qty-row strong { font-size: 0.78rem; }
  .addon-qty-row small { font-size: 0.68rem; }
}

.order-faq { margin-top: 32px; padding-top: 24px; border-top: 1px solid #eee; }
.order-faq h2 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.order-faq details { background: #fafafa; border: 1px solid #e5e5e5; border-radius: 10px; margin-bottom: 8px; }
.order-faq summary { padding: 12px 16px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.order-faq details[open] summary { border-bottom: 1px solid #eee; }
.order-faq details p { padding: 12px 16px; font-size: 0.82rem; color: #555; line-height: 1.6; }
