/* ==========================================================================
   Vietnam GoEasy — Batch 03: Booking Form & Contact Information Polish
   Scope: public/order.html only
   ========================================================================== */

/* 1. Global Typography & Font Family Synchronization */
body.order-page,
body.order-page h1,
body.order-page h2,
body.order-page h3,
body.order-page h4,
body.order-page h5,
body.order-page p,
body.order-page label,
body.order-page input,
body.order-page select,
body.order-page textarea,
body.order-page button,
body.order-page .btn,
body.order-page .field-label-title,
body.order-page .field-error,
body.order-page .input-note,
body.order-page .step-pill,
body.order-page .order-summary,
body.order-page .summary-row {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Contact inputs keep readable text while the international phone control fits
   its existing mobile columns. Larger input text also avoids mobile focus zoom. */
body.order-page #orderForm .contact-subsection :is(input:not([type="hidden"]), .vge-phone-national-v787CN) {
  font-size: 16px !important;
}

/* 2. Visual Hierarchy: Headings & Sections */
body.order-page .form-step > h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a !important;
  margin: 0 0 6px !important;
}

body.order-page .applicant-section > h3,
body.order-page .contact-subsection > h4,
body.order-page .addon-area > h3,
body.order-page .order-summary > h3 {
  font-size: 18px !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.015em !important;
  color: #0f274a !important;
  margin: 0 0 10px !important;
}

body.order-page .applicant-card > h4 {
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #1d4ed8 !important;
  margin: 0 0 10px !important;
  padding: 6px 10px !important;
  background: #eff6ff !important;
  border-radius: 8px !important;
  display: inline-block !important;
}

/* Field labels */
body.order-page label,
body.order-page .field-label-title {
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  color: #1e293b !important;
}

body.order-page .optional {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  margin-left: 4px !important;
}

body.order-page .input-note,
body.order-page .travel-grid [data-entry-date-min-note-v787af],
body.order-page .travel-grid [data-stay-rule] {
  font-size: 12.5px !important;
  font-weight: 450 !important;
  line-height: 1.4 !important;
  color: #64748b !important;
  margin-top: 5px !important;
}

/* 3. Section Spacing & Vertical Compaction */
body.order-page .mini-section {
  padding: 16px 18px !important;
  margin: 10px 0 !important;
  border-radius: 16px !important;
}

body.order-page .applicant-card {
  padding: 14px 16px !important;
  border-radius: 14px !important;
  margin-bottom: 12px !important;
}

body.order-page .contact-subsection {
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid #e2e8f0 !important;
}

body.order-page .addon-area.fasttrack-retired-v1135ZQ {
  margin: 12px 0 !important;
  padding: 16px 20px !important;
  border-radius: 16px !important;
}

body.order-page .special-request-section-v1136AB {
  margin: 10px 0 !important;
  padding: 14px 18px !important;
  border-radius: 16px !important;
}

body.order-page .special-request-section-v1136AB textarea {
  min-height: 56px !important;
  height: 56px !important;
  border-radius: 12px !important;
}

/* 4. Form Control Sizing & Rhythm */
body.order-page .compact-contact-grid input,
body.order-page #orderContactFullName,
body.order-page #orderEmail,
body.order-page #orderCurrentPermanentAddress,
body.order-page .applicant-compact-grid input,
body.order-page .applicant-compact-grid select,
body.order-page .travel-grid input,
body.order-page .travel-grid select {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  line-height: 48px !important;
  border: 1.5px solid #cbd5e1 !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

body.order-page .compact-contact-grid input:focus,
body.order-page #orderContactFullName:focus,
body.order-page #orderEmail:focus,
body.order-page #orderCurrentPermanentAddress:focus,
body.order-page .applicant-compact-grid input:focus,
body.order-page .applicant-compact-grid select:focus,
body.order-page .travel-grid input:focus,
body.order-page .travel-grid select:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
  outline: none !important;
}

/* Harmonized Phone Component */
body.order-page .compact-contact-grid .vge-intl-phone-v787CN {
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 12px !important;
  border: 1.5px solid #cbd5e1 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: stretch !important;
  background: #fff !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

body.order-page .compact-contact-grid .vge-intl-phone-v787CN:focus-within,
body.order-page .compact-contact-grid .vge-intl-phone-v787CN.is-open {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

body.order-page .compact-contact-grid .vge-intl-phone-v787CN .vge-phone-country-v787CN {
  flex: 0 0 56px !important;
  border-radius: 10px 0 0 10px !important;
  height: 45px !important;
  min-height: 45px !important;
}

body.order-page .compact-contact-grid .vge-intl-phone-v787CN .vge-phone-country-trigger-v787CV {
  height: 45px !important;
  min-height: 45px !important;
  border-radius: 10px 0 0 10px !important;
  padding: 0 6px !important;
}

body.order-page .compact-contact-grid .vge-intl-phone-v787CN .vge-phone-dial-input-v787CV {
  flex: 0 0 66px !important;
  width: 66px !important;
  min-width: 66px !important;
  height: 45px !important;
  min-height: 45px !important;
  padding: 0 6px 0 10px !important;
  font-size: 14.5px !important;
  border: 0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.order-page .compact-contact-grid .vge-intl-phone-v787CN .vge-phone-national-v787CN {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 45px !important;
  min-height: 45px !important;
  padding: 0 12px !important;
  font-size: 15px !important;
  border: 0 !important;
  border-radius: 0 10px 10px 0 !important;
  background: transparent !important;
}

/* 5. Button Alignment & Touch Quality */
body.order-page .actions {
  margin-top: 18px !important;
  padding-top: 4px !important;
  gap: 12px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

body.order-page .actions .btn {
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 24px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
}

body.order-page .actions .btn:hover {
  transform: translateY(-1px) !important;
}

body.order-page .actions .btn:active {
  transform: translateY(0) !important;
}

/* 6. Form Field Errors */
body.order-page .field-error {
  display: block !important;
  margin-top: 4px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #dc2626 !important;
}

body.order-page .field-error:empty {
  display: none !important;
}

/* 7. Responsive Adaptations */
@media (max-width: 768px) {
  body.order-page .compact-contact-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.order-page .compact-contact-grid > label {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  body.order-page .actions {
    flex-direction: column-reverse !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body.order-page .actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  body.order-page .mini-section {
    padding: 12px 14px !important;
    margin: 8px 0 !important;
  }

  body.order-page .applicant-card {
    padding: 12px 14px !important;
  }
}

/* Extra-narrow screens (320px support) */
@media (max-width: 360px) {
  body.order-page .compact-contact-grid .vge-intl-phone-v787CN .vge-phone-country-v787CN {
    flex: 0 0 50px !important;
  }

  body.order-page .compact-contact-grid .vge-intl-phone-v787CN .vge-phone-dial-input-v787CV {
    flex: 0 0 58px !important;
    width: 58px !important;
    min-width: 58px !important;
    padding: 0 4px 0 6px !important;
    font-size: 13.5px !important;
  }

  body.order-page .compact-contact-grid .vge-intl-phone-v787CN .vge-phone-national-v787CN {
    padding: 0 8px !important;
    font-size: 14px !important;
  }

  body.order-page .order-shell {
    padding: 0 6px !important;
  }
}

