/* ==========================================================================
   NEELKANTH DESIGN STUDIO - CLIENT INQUIRY & REQUIREMENT PORTAL
   Aesthetic: Architectural Luxury (Cormorant Garamond + Jost)
   ========================================================================== */

:root {
  --cream: #F0E6DA;
  --cream-dk: #E4D5C5;
  --cream-lt: #FAF5EF;
  --cream-card: #FFFFFF;
  --charcoal: #1C1C1C;
  --charcoal-2: #2D2B28;
  --charcoal-muted: #423F3B;
  --gold: #C5956A;
  --gold-dk: #A87850;
  --gold-lt: #DDB990;
  --gold-pale: #F7EFE6;
  --text: #2B2621;
  --text-lt: #6E6459;
  --border: #E8DED2;
  --border-focus: #C5956A;
  --shadow-sm: 0 2px 8px rgba(28, 28, 28, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 28, 28, 0.06);
  --shadow-lg: 0 16px 40px rgba(28, 28, 28, 0.1);
  --radius: 8px;
  --radius-lg: 14px;
  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --trans: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-sans);
  background: var(--cream-lt);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-dk);
  text-decoration: none;
  transition: color var(--trans);
}
a:hover {
  color: var(--charcoal);
}

/* Container */
.portal-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.portal-header {
  background: var(--charcoal-2);
  color: var(--cream-lt);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(197, 149, 106, 0.25);
  position: relative;
  overflow: hidden;
}

.portal-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(197, 149, 106, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(197, 149, 106, 0.18);
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 4px;
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-name .logo-bold {
  font-family: var(--ff-sans);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #FFFFFF;
}

.brand-name .logo-light {
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.24em;
  color: var(--gold-lt);
}

.header-contact-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: rgba(250, 245, 239, 0.75);
}

.header-contact-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-contact-meta svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
}

.header-intro {
  max-width: 780px;
}

.header-intro h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.header-intro h1 em {
  font-style: italic;
  color: var(--gold-lt);
}

.header-intro p {
  color: rgba(250, 245, 239, 0.82);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Quick Nav / Progress Tracker */
.portal-nav-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 239, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.nav-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-track::-webkit-scrollbar {
  display: none;
}

.nav-step-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-lt);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--trans);
}

.nav-step-btn:hover {
  background: var(--cream);
  color: var(--charcoal);
}

.nav-step-btn.active {
  background: var(--charcoal);
  color: var(--cream-lt);
  border-color: var(--charcoal);
}

.nav-step-btn .step-digit {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  background: rgba(197, 149, 106, 0.25);
  color: var(--gold-dk);
}

.nav-step-btn.active .step-digit {
  background: var(--gold);
  color: #FFFFFF;
}

/* Main Form Layout */
.form-wrapper {
  padding: 2.5rem 0 5rem;
}

/* Section Card */
.form-section {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  padding: 2.5rem;
  position: relative;
  transition: box-shadow var(--trans);
}

.form-section:focus-within {
  box-shadow: var(--shadow-md);
  border-color: var(--gold-lt);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-head-title {
  display: flex;
  flex-direction: column;
}

.section-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.2;
}

.section-sub {
  font-size: 0.88rem;
  color: var(--text-lt);
  margin-top: 0.35rem;
}

/* Subsection inside cards */
.subsection {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--border);
}

.subsection:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.subsection-title {
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--charcoal-2);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.subsection-title .sub-icon {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

/* Grid Form Layout */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1.5rem;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.col-span-full {
  grid-column: 1 / -1;
}

/* Field Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .req {
  color: #C2410C;
  margin-left: 0.2rem;
}

.form-hint {
  font-size: 0.74rem;
  color: var(--text-lt);
  font-weight: 400;
}

/* Standard Inputs */
.form-input,
.form-select,
.form-textarea {
  font-family: var(--ff-sans);
  font-size: 16px; /* Essential: prevents automatic zoom on iOS Safari */
  padding: 0.8rem 1rem;
  background: var(--cream-lt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--charcoal);
  transition: all var(--trans);
  width: 100%;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C5956A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  padding-right: 2.5rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 149, 106, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 95px;
}

/* Checkbox & Radio Chips / Pills */
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.choice-chip {
  position: relative;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.choice-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--cream-lt);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
  min-height: 42px;
  transition: all var(--trans);
}

.choice-chip:hover span {
  border-color: var(--gold-lt);
  background: #FFFFFF;
}

.choice-chip input:checked + span {
  background: var(--charcoal-2);
  color: var(--cream-lt);
  border-color: var(--charcoal-2);
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Package Feature Cards */
.package-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.package-card {
  position: relative;
  background: var(--cream-lt);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--trans);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.package-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.package-card input {
  position: absolute;
  opacity: 0;
}

.package-card.selected {
  background: #FFFFFF;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 149, 106, 0.25), var(--shadow-md);
}

.package-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.package-badge.gold {
  background: #FFF4E5;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.package-badge.silver {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.package-badge.custom {
  background: #F5F3FF;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}

.package-title {
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.package-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-dk);
  margin-bottom: 0.75rem;
}

.package-desc {
  font-size: 0.8rem;
  color: var(--text-lt);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.package-specs {
  list-style: none;
  font-size: 0.78rem;
  color: var(--text);
  border-top: 1px dashed var(--border);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.package-specs li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.package-specs li svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  flex-shrink: 0;
}

.compare-btn-wrap {
  margin-top: 1rem;
  text-align: right;
}

.btn-link {
  background: none;
  border: none;
  color: var(--gold-dk);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.2rem 0;
}

.btn-link:hover {
  color: var(--charcoal);
}

/* Modal for Package Spec Comparison */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-head {
  padding: 1.25rem 1.75rem;
  background: var(--charcoal-2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h3 {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 400;
}

.modal-close {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.spec-table th, .spec-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.spec-table th {
  background: var(--cream-lt);
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-table tr:hover td {
  background: rgba(250, 245, 239, 0.5);
}

/* Tab Navigation for Bedrooms */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.65rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-lt);
  cursor: pointer;
  transition: all var(--trans);
}

.tab-btn:hover {
  color: var(--charcoal);
}

.tab-btn.active {
  color: var(--charcoal);
  border-color: var(--gold);
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Terms & Scope Box */
.terms-card {
  background: var(--cream-lt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text);
  max-height: 280px;
  overflow-y: auto;
}

.terms-card h4 {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  margin: 1rem 0 0.4rem;
  color: var(--charcoal);
}
.terms-card h4:first-child {
  margin-top: 0;
}

.terms-card ul, .terms-card ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.terms-card li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

/* Sign-off confirmation */
.signoff-box {
  background: var(--gold-pale);
  border: 1px solid var(--gold-lt);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.signoff-box input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--gold-dk);
  cursor: pointer;
}

.signoff-box label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  line-height: 1.5;
}

/* Submit Actions */
.submit-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--charcoal);
  color: #FFFFFF;
  padding: 1.1rem 3.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--trans);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 480px;
}

.btn-submit:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-note {
  font-size: 0.8rem;
  color: var(--text-lt);
  text-align: center;
}

/* Confirmation Success Modal / View */
.success-card {
  display: none;
  background: #FFFFFF;
  border: 2px solid var(--gold-lt);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.success-card.show {
  display: block;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: #ECFDF5;
  border: 2px solid #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10B981;
}

.success-title {
  font-family: var(--ff-serif);
  font-size: 2.25rem;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.success-desc {
  font-size: 0.95rem;
  color: var(--text-lt);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.action-buttons-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans);
}

.btn-action.primary {
  background: var(--charcoal);
  color: #FFFFFF;
  border: 1px solid var(--charcoal);
}
.btn-action.primary:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.btn-action.secondary {
  background: var(--cream-lt);
  color: var(--charcoal);
  border: 1px solid var(--border);
}
.btn-action.secondary:hover {
  background: #FFFFFF;
  border-color: var(--gold);
}

.btn-action.whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: 1px solid #25D366;
}
.btn-action.whatsapp:hover {
  background: #1EBE5D;
}

/* Print Styles */
@media print {
  .portal-header,
  .portal-nav-sticky,
  .btn-submit,
  .submit-panel,
  .compare-btn-wrap,
  .modal-overlay,
  .action-buttons-group,
  .btn-action {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
    font-size: 11pt;
  }

  .portal-container {
    max-width: 100%;
    padding: 0;
  }

  .form-section {
    border: 1px solid #CCC;
    box-shadow: none;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    break-inside: avoid;
  }

  .form-input, .form-select, .form-textarea {
    border-bottom: 1px solid #999;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
  }

  .choice-chip input:checked + span {
    background: #EEEEEE !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
  }

  .print-only-header {
    display: block !important;
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }
}

.print-only-header {
  display: none;
}

/* ==========================================================================
   RESPONSIVENESS (MOBILE, TABLET & IPAD OPTIMIZATIONS)
   ========================================================================== */

/* Tablet & iPad Landscape (1024px and below) */
@media (max-width: 1024px) {
  .portal-container {
    padding: 0 1.5rem;
  }
  .form-section {
    padding: 2.25rem 2rem;
  }
  .package-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }
}

/* Tablet & iPad Portrait (834px and below - iPad Pro 11", iPad 10.2", iPad Mini) */
@media (max-width: 834px) {
  .portal-header {
    padding: 2.25rem 0 1.75rem;
  }
  .header-intro h1 {
    font-size: 2.3rem;
  }
  .form-section {
    padding: 2rem 1.75rem;
    margin-bottom: 2rem;
  }
  .package-cards {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .form-grid-3, .form-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
  .tabs-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 3px;
  }
  .tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.65rem 1.1rem;
    font-size: 0.88rem;
  }
  .modal-box {
    width: 92%;
    max-height: 85vh;
  }
  .modal-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .spec-table {
    min-width: 540px;
  }
}

/* Mobile Devices & Phablets (680px and below - iPhones & Android) */
@media (max-width: 680px) {
  html {
    font-size: 15px;
  }
  .portal-container {
    padding: 0 1rem;
  }
  .portal-header {
    padding: 1.75rem 0 1.25rem;
  }
  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }
  .brand-wrapper {
    width: 100%;
    justify-content: space-between;
  }
  .header-contact-meta {
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.8rem;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .header-intro h1 {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }
  .header-intro p {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* Sticky Navigation Bar on Mobile */
  .portal-nav-sticky {
    padding: 0.45rem 0;
  }
  .nav-track {
    gap: 0.35rem;
    padding: 0 0.25rem;
    scroll-snap-type: x proximity;
  }
  .nav-step-btn {
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    gap: 0.35rem;
  }
  .nav-step-btn .step-digit {
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
  }

  /* Form Section Cards */
  .form-section {
    padding: 1.35rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
  }
  .section-title {
    font-size: 1.45rem;
  }
  .section-sub {
    font-size: 0.82rem;
  }
  .subsection {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }
  .subsection-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  /* Grids collapse to single-column on mobile */
  .form-grid-2,
  .form-grid-3,
  .form-grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Choice Chips / Options */
  .choice-grid {
    gap: 0.45rem;
  }
  .choice-chip {
    flex: 1 1 auto;
  }
  .choice-chip span {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
  }

  /* Package Cards */
  .package-card {
    padding: 1.25rem 1rem;
  }
  .package-title {
    font-size: 1.25rem;
  }
  .package-specs {
    font-size: 0.76rem;
  }

  /* Terms and Authorization Box */
  .terms-card {
    padding: 1rem 0.85rem;
    font-size: 0.8rem;
    max-height: 220px;
  }
  .signoff-box {
    padding: 1rem 0.85rem;
    gap: 0.75rem;
  }
  .signoff-box input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 0;
  }
  .signoff-box label {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  /* Submit Action */
  .submit-panel {
    margin-top: 1.5rem;
  }
  .btn-submit {
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
  }
  .submit-note {
    font-size: 0.75rem;
  }

  /* Modal on Mobile */
  .modal-overlay {
    padding: 0.75rem;
  }
  .modal-box {
    max-height: 88vh;
    border-radius: 10px;
  }
  .modal-head {
    padding: 1rem 1.25rem;
  }
  .modal-head h3 {
    font-size: 1.15rem;
  }
  .modal-body {
    padding: 1rem 0.75rem;
  }

  /* Success Confirmation Card on Mobile */
  .success-card {
    padding: 2.25rem 1.25rem;
  }
  .success-title {
    font-size: 1.65rem;
  }
  .success-desc {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }
  .action-buttons-group {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }
  .btn-action {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }
}

/* Compact Mobile Screens (380px and below - iPhone SE, etc.) */
@media (max-width: 380px) {
  .header-intro h1 {
    font-size: 1.6rem;
  }
  .form-section {
    padding: 1.15rem 0.85rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .btn-submit {
    font-size: 0.82rem;
    padding: 0.95rem 0.85rem;
  }
}
