/* ==========================================================================
   PUMO TECHNOVATION - STUDENT DEMO REGISTRATION PORTAL
   Stylesheet: style.css
   Theme: Professional Corporate Blue & White
   Zero-frameworks pure CSS3
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Variables
   -------------------------------------------------------------------------- */
:root {
  /* Brand Primary Colors */
  --primary-900: #0a2540;
  --primary-800: #0d47a1;
  --primary-700: #1565c0;
  --primary-600: #1976d2;
  --primary-500: #2196f3;
  --primary-400: #42a5f5;
  --primary-100: #e3f2fd;
  --primary-50:  #f0f7ff;

  /* Accent Colors */
  --accent-cyan: #0284c7;
  --accent-sky:  #0ea5e9;
  --accent-light: #e0f2fe;

  /* Neutral Slate Palette */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Status Colors */
  --success-700: #047857;
  --success-600: #059669;
  --success-500: #10b981;
  --success-50:  #ecfdf5;

  --warning-700: #b45309;
  --warning-600: #d97706;
  --warning-50:  #fffbeb;

  --error-700:   #b91c1c;
  --error-600:   #dc2626;
  --error-500:   #ef4444;
  --error-50:    #fef2f2;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-brand: 0 10px 20px -3px rgba(13, 71, 161, 0.22);

  /* Typography */
  --font-family-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Accessible utility for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2. Header & Navigation (With Official Pumo Branding)
   -------------------------------------------------------------------------- */
.top-announcement-bar {
  background-color: #07192c;
  color: var(--slate-300);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  padding: 0.35rem 0;
}

.top-bar-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.global-presence {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.global-label {
  color: var(--slate-400);
  font-weight: 600;
}

.flags-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.flag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  color: var(--slate-200);
}

.flag-item img {
  display: inline-block;
  border-radius: 2px;
}

.top-contact-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.partner-badge-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a.partner-badge-text:hover {
  color: var(--white);
}

.whatsapp-top-link {
  color: #4ade80 !important;
}

.whatsapp-top-link:hover {
  color: #86efac !important;
  text-decoration: underline;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-official-logo {
  height: 42px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

.brand-title span {
  color: var(--primary-600);
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.open-badge {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-100);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success-500);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.header-link {
  color: var(--slate-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.header-link:hover {
  color: var(--primary-700);
}

.sheet-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-700);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sheet-badge-link:hover {
  background-color: var(--white);
  border-color: var(--primary-500);
  color: var(--primary-700);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   3. Main Hero Section (With Official Pumo Banners & Badges)
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  padding-bottom: 3.5rem;
}

.hero-section {
  background: 
    linear-gradient(135deg, rgba(8, 29, 51, 0.94) 0%, rgba(13, 71, 161, 0.88) 100%),
    url('https://pumotechnovation.com/assets/banner/banner-hero.webp') center/cover no-repeat;
  color: var(--white);
  padding: 3rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.badge-category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 0.9rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.8rem;
  line-height: 1.55;
  font-weight: 400;
}

.value-props {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.prop-item {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.prop-item svg {
  color: #6ee7b7; /* Bright emerald */
  flex-shrink: 0;
}

/* Hero Feature Banner Card */
.hero-banner-card {
  position: relative;
}

.hero-banner-frame {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.hero-banner-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-placement-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  object-fit: cover;
}

.hero-banner-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(8, 29, 51, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
}

/* Accreditations Strip */
.accreditations-strip {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.accreditation-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #bfdbfe;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.accreditations-logos-marquee {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.acc-logo {
  height: 32px;
  width: auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  object-fit: contain;
  transition: transform var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.acc-logo:hover {
  transform: translateY(-2px);
  background-color: var(--white);
}

/* Pumo Graduation Cap Icon in Form Header */
.pumo-cap-icon-box {
  background-color: var(--white) !important;
  border: 1px solid var(--slate-200);
  padding: 4px;
}

.pumo-cap-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

/* --------------------------------------------------------------------------
   4. Registration Portal Wrapper & Cards
   -------------------------------------------------------------------------- */
.registration-portal-wrapper {
  max-width: 940px;
  margin: -2.75rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

/* Alert Banner */
.alert-banner {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-banner.alert-warning {
  background-color: var(--warning-50);
  border: 1px solid #fde68a;
  color: var(--warning-700);
}

.alert-banner.alert-error {
  background-color: var(--error-50);
  border: 1px solid #fecaca;
  color: var(--error-700);
}

.alert-banner.alert-success {
  background-color: var(--success-50);
  border: 1px solid #a7f3d0;
  color: var(--success-700);
}

.alert-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.alert-message {
  font-size: 0.85rem;
  line-height: 1.45;
}

.alert-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: currentColor;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.alert-close:hover {
  opacity: 1;
}

/* Main Form Card */
.form-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.form-card-header {
  padding: 1.75rem 2rem;
  background: linear-gradient(to right, #fbfcfe, #f4f8fc);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-icon-box {
  width: 50px;
  height: 50px;
  background: var(--primary-100);
  color: var(--primary-700);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
}

.card-subheading {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-top: 0.2rem;
}

/* Honeypot */
.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Form Sections */
.form-section {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--slate-100);
}

.form-section:last-of-type {
  border-bottom: none;
}

.section-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.section-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.825rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.25;
}

.section-desc {
  font-size: 0.825rem;
  color: var(--slate-500);
  margin-top: 0.2rem;
}

/* Form Grids */
.form-grid {
  display: grid;
  gap: 1.25rem 1.25rem;
}

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

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

/* Form Elements */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.required-star {
  color: var(--error-600);
  font-weight: 700;
  margin-left: 0.15rem;
}

.label-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.label-with-action .form-label {
  margin-bottom: 0;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-700);
  cursor: pointer;
  user-select: none;
}

.checkbox-inline input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--primary-600);
  width: 15px;
  height: 15px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--slate-400);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-control {
  width: 100%;
  padding: 0.72rem 0.9rem 0.72rem 2.5rem;
  font-family: inherit;
  font-size: 0.925rem;
  color: var(--slate-800);
  background-color: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control::placeholder {
  color: var(--slate-400);
  font-size: 0.875rem;
}

.form-control:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.12);
  background-color: var(--white);
}

.form-control.is-invalid {
  border-color: var(--error-500) !important;
  background-color: #fff9f9;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.form-control.is-valid {
  border-color: var(--success-500);
}

/* Custom Select Dropdowns */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  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='%2364748b' 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 0.85rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

select.form-control option {
  color: var(--slate-800);
  background-color: var(--white);
  padding: 0.5rem;
}

/* Phone input with Prefix */
.input-with-prefix {
  position: relative;
}

.phone-prefix {
  position: absolute;
  left: 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-600);
  pointer-events: none;
  border-right: 1px solid var(--slate-300);
  padding-right: 0.55rem;
  line-height: 1.2;
}

.form-control.has-prefix {
  padding-left: 3.4rem !important;
}

/* Textarea */
textarea.form-control {
  padding: 0.75rem 0.9rem;
  resize: vertical;
  min-height: 85px;
}

.textarea-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.3rem;
}

.char-count {
  font-size: 0.75rem;
  color: var(--slate-400);
}

/* Helper Hints & Error Texts */
.input-hint {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 0.35rem;
}

.label-helper-text {
  font-size: 0.775rem;
  font-weight: 400;
  color: var(--slate-500);
  margin-left: 0.4rem;
}

.error-text {
  font-size: 0.775rem;
  color: var(--error-600);
  font-weight: 500;
  margin-top: 0.35rem;
  min-height: 1.15rem;
  display: block;
  transition: opacity var(--transition-fast);
}

/* --------------------------------------------------------------------------
   5. Radio Cards & Interactive Branch Pills
   -------------------------------------------------------------------------- */
/* Training Mode Radio Cards */
.radio-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.radio-card {
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  background-color: var(--slate-50);
  transition: all var(--transition-fast);
  display: block;
  position: relative;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.card-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--slate-300);
  display: inline-block;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.radio-card:hover {
  border-color: var(--primary-400);
  background-color: var(--white);
}

.radio-card:has(input[type="radio"]:checked) {
  border-color: var(--primary-600);
  background-color: var(--primary-50);
  box-shadow: 0 0 0 1px var(--primary-600);
}

.radio-card input[type="radio"]:checked + .radio-card-body .card-radio-circle {
  border-color: var(--primary-600);
  background-color: var(--primary-600);
  box-shadow: inset 0 0 0 3px var(--white);
}

.mode-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-900);
}

.mode-desc {
  font-size: 0.8rem;
  color: var(--slate-600);
  line-height: 1.4;
  padding-left: 1.7rem;
}

/* Branch Location Pills */
.branch-pill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.branch-pill-label {
  cursor: pointer;
}

.branch-pill-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.branch-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.6rem;
  background-color: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: all var(--transition-fast);
  text-align: center;
}

.branch-pill:hover {
  border-color: var(--primary-400);
  color: var(--primary-700);
}

.branch-pill-label input[type="radio"]:checked + .branch-pill {
  border-color: var(--primary-700);
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.branch-pill-label input[type="radio"]:checked + .branch-pill svg {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   6. Form Action Buttons & Footers
   -------------------------------------------------------------------------- */
.form-actions-bar {
  padding: 1.5rem 2rem;
  background-color: #f8fafc;
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: none;
  line-height: 1.2;
}

.btn-secondary {
  background-color: var(--white);
  border: 1.5px solid var(--slate-300);
  color: var(--slate-600);
}

.btn-secondary:hover {
  background-color: var(--slate-100);
  border-color: var(--slate-400);
  color: var(--slate-800);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  color: var(--white);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -4px rgba(13, 71, 161, 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-submit .btn-arrow {
  transition: transform var(--transition-fast);
}

.btn-submit:hover:not(:disabled) .btn-arrow {
  transform: translateX(3px);
}

/* Button Spinner */
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.submission-note {
  padding: 0.9rem 2rem;
  background-color: #f1f5f9;
  border-top: 1px dashed var(--slate-200);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.775rem;
  color: var(--slate-500);
}

.submission-note svg {
  color: var(--slate-400);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. Success Screen & Receipt Modal
   -------------------------------------------------------------------------- */
.success-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-header {
  text-align: center;
  margin-bottom: 2rem;
}

.success-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 10px 20px -3px rgba(16, 185, 129, 0.35);
  animation: bounceCheck 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceCheck {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.success-desc {
  font-size: 1rem;
  color: var(--slate-600);
  margin-top: 0.4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Opaque Response & Sheet Verification Callout */
.opaque-verification-banner {
  background-color: var(--primary-50);
  border: 1.5px solid var(--primary-200, #bfdbfe);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
  color: var(--primary-900);
}

.verification-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--primary-800);
}

.opaque-verification-banner p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--slate-700);
}

.opaque-verification-banner code {
  background: rgba(13, 71, 161, 0.1);
  color: var(--primary-800);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-mono);
  font-size: 0.825rem;
}

/* Receipt Card */
.receipt-card {
  background-color: #f8fafc;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.receipt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 1.1rem;
  margin-bottom: 1.2rem;
}

.receipt-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--slate-500);
  display: block;
}

.receipt-student-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-top: 0.15rem;
}

.receipt-ref-box {
  text-align: right;
}

.receipt-ref {
  display: inline-block;
  background-color: var(--white);
  border: 1px solid var(--slate-300);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-700);
  margin-top: 0.25rem;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.receipt-item {
  display: flex;
  flex-direction: column;
}

.item-label {
  font-size: 0.775rem;
  color: var(--slate-500);
  font-weight: 600;
}

.item-val {
  font-size: 0.95rem;
  color: var(--slate-800);
  font-weight: 700;
  margin-top: 0.15rem;
}

/* Success Actions */
.success-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-outline-sheet {
  background-color: var(--white);
  border: 1.5px solid var(--primary-600);
  color: var(--primary-700);
}

.btn-outline-sheet:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-700);
  color: var(--primary-800);
}

/* --------------------------------------------------------------------------
   8. Branches Section
   -------------------------------------------------------------------------- */
.branches-section {
  max-width: 1140px;
  margin: 4.5rem auto 1rem;
  padding: 0 1.5rem;
}

.section-header-centered {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.centered-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
}

.centered-subtitle {
  font-size: 0.95rem;
  color: var(--slate-600);
}

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

.branch-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-400);
}

.branch-card-img-wrap {
  position: relative;
  width: 100%;
  height: 165px;
  overflow: hidden;
  background-color: var(--slate-800);
}

.branch-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.branch-card:hover .branch-card-media {
  transform: scale(1.08);
}

.branch-card-badge {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  background-color: rgba(8, 29, 51, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  margin-bottom: 0;
}

.branch-card-content {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.branch-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.branch-card-address {
  font-size: 0.85rem;
  color: var(--slate-600);
  line-height: 1.45;
  margin-bottom: 1.1rem;
  flex: 1;
}

.branch-features {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--primary-700);
  border-top: 1px solid var(--slate-100);
  padding-top: 0.8rem;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.app-footer {
  background-color: #081d33;
  color: var(--slate-300);
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 2.5rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.footer-brand-link:hover {
  opacity: 0.9;
}

.footer-cap-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.footer-brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.footer-brand-title .brand-highlight {
  color: #38bdf8;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--slate-400);
  margin-top: 0.9rem;
  max-width: 380px;
  line-height: 1.55;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links span {
  font-size: 0.85rem;
  color: var(--slate-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
}

.footer-bottom-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--slate-500);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.privacy-note {
  font-size: 0.75rem;
  color: var(--slate-400);
}

/* --------------------------------------------------------------------------
   11. API Diagnostics & Setup Modal
   -------------------------------------------------------------------------- */
.api-diag-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--slate-100);
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.api-diag-btn:hover {
  background-color: var(--white);
  border-color: var(--primary-600);
  color: var(--primary-700);
  box-shadow: var(--shadow-sm);
}

.diag-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.diag-indicator.status-ok {
  background-color: var(--success-500);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.diag-indicator.status-warning {
  background-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.diag-indicator.status-error {
  background-color: var(--error-500);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

/* Modal Window */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.25rem 1.75rem;
  background: linear-gradient(to right, #fbfcfe, #f4f8fc);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--primary-900);
}

.modal-header-title h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--slate-400);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--slate-900);
  background-color: var(--slate-100);
}

.modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.modal-footer {
  padding: 1rem 1.75rem;
  background-color: #f8fafc;
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}

/* Diagnostic Box */
.diagnostic-box {
  background-color: #f8fafc;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
}

.diag-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.diag-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.diag-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.pill-neutral {
  background-color: var(--slate-200);
  color: var(--slate-800);
}

.pill-ok {
  background-color: var(--success-50);
  border: 1px solid #a7f3d0;
  color: var(--success-700);
}

.pill-error {
  background-color: var(--error-50);
  border: 1px solid #fecaca;
  color: var(--error-700);
}

.pill-warning {
  background-color: var(--warning-50);
  border: 1px solid #fde68a;
  color: var(--warning-700);
}

.diag-explanation {
  font-size: 0.85rem;
  color: var(--slate-600);
  line-height: 1.5;
}

/* Config URL Group */
.config-group {
  margin-bottom: 0;
}

.mono-input {
  font-family: var(--font-family-mono);
  font-size: 0.825rem;
  padding-left: 0.9rem !important;
}

.config-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.config-save-hint {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--success-600);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.825rem;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--slate-500);
  cursor: pointer;
  padding: 0.45rem 0.6rem;
  text-decoration: underline;
}

.btn-text:hover {
  color: var(--slate-800);
}

/* 401 Fix Instructions Card */
.fix-instructions-card {
  background-color: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  color: #78350f;
}

.fix-instructions-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 0.4rem;
}

.fix-instructions-summary {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #78350f;
  margin-bottom: 0.75rem;
}

.steps-list {
  padding-left: 1.3rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #78350f;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.steps-list a {
  color: var(--primary-700);
  font-weight: 600;
}

.steps-list code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-mono);
  font-size: 0.8rem;
}

.steps-list mark {
  background: #fef08a;
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-sm);
}

/* Code Reference Block */
.code-reference-block {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #0f172a;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background-color: #1e293b;
  border-bottom: 1px solid #334155;
}

.code-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-file-badge {
  background-color: var(--primary-700);
  color: var(--white);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-mono);
}

.code-file-desc {
  font-size: 0.75rem;
  color: var(--slate-300);
}

.code-reference-block .btn-outline {
  background: transparent;
  border: 1px solid #475569;
  color: var(--slate-200);
}

.code-reference-block .btn-outline:hover {
  background-color: #334155;
  color: var(--white);
}

.code-pre {
  padding: 1rem;
  max-height: 240px;
  overflow: auto;
  font-family: var(--font-family-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #e2e8f0;
}

@media (max-width: 992px) {
  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col-main {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   12. Floating Desktop-to-Mobile View Switcher & WhatsApp Support
   -------------------------------------------------------------------------- */
.mobile-preview-dock {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
}

.btn-device-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--slate-900), #1e3a8a);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4);
  transition: all var(--transition-normal);
  backdrop-filter: blur(8px);
}

.btn-device-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(13, 71, 161, 0.5);
  border-color: var(--primary-400);
}

.device-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* Floating WhatsApp Quick Support */
.whatsapp-floating-dock {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 998;
}

.btn-whatsapp-float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 10px 25px -4px rgba(37, 211, 102, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
  text-decoration: none;
  animation: floatBounce 3s ease-in-out infinite;
}

.btn-whatsapp-float img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.btn-whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 30px -4px rgba(37, 211, 102, 0.65);
}

@keyframes floatBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* --------------------------------------------------------------------------
   13. Desktop Mobile Simulator Viewport Mode (.mobile-view-mode)
   -------------------------------------------------------------------------- */
body.mobile-view-mode {
  background: #090e17 !important;
  padding: 1.5rem 0 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.mobile-view-mode .whatsapp-floating-dock {
  left: max(1rem, calc(50% - 207px + 1rem));
}

body.mobile-view-mode .app-header,
body.mobile-view-mode .main-content,
body.mobile-view-mode .app-footer {
  width: 100%;
  max-width: 414px; /* Standard flagship smartphone width (iPhone 15/16 Pro Max) */
  margin-left: auto;
  margin-right: auto;
}

body.mobile-view-mode .app-header {
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  border-left: 10px solid #1e293b;
  border-right: 10px solid #1e293b;
  border-top: 10px solid #1e293b;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}

body.mobile-view-mode .app-header::before {
  content: "";
  display: block;
  width: 110px;
  height: 18px;
  background-color: #0f172a;
  border-radius: var(--radius-full);
  margin: -0.25rem auto 0.5rem;
}

body.mobile-view-mode .main-content {
  border-left: 10px solid #1e293b;
  border-right: 10px solid #1e293b;
  background-color: var(--slate-50);
}

body.mobile-view-mode .app-footer {
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  border-left: 10px solid #1e293b;
  border-right: 10px solid #1e293b;
  border-bottom: 10px solid #1e293b;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   14. Native & Simulator Responsive Styles (Mobile Overhaul)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-col-main {
    grid-column: 1 / -1;
  }
}

/* Mobile Screens (<= 768px) and Simulator Mode */
@media (max-width: 768px), (max-width: 1024px) {
  /* Prevent iOS Safari aggressive auto-zoom when focusing inputs */
  .form-control,
  select.form-control,
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="date"],
  textarea.form-control {
    font-size: 16px !important;
    min-height: 48px;
  }
}

@media (max-width: 768px) {
  /* Hide the preview toggle on actual mobile devices */
  .mobile-preview-dock {
    display: none !important;
  }

  /* Compact Announcement Bar on Mobile */
  .top-announcement-bar {
    font-size: 0.7rem;
    padding: 0.3rem 0;
  }

  .top-bar-container {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
    text-align: center;
  }

  .flags-group {
    justify-content: center;
    gap: 0.45rem;
  }

  .top-contact-info {
    display: none;
  }

  /* Compact Mobile Header */
  .app-header {
    padding: 0.65rem 0;
  }

  .header-container {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .brand-official-logo {
    height: 34px;
    max-width: 145px;
  }

  .brand-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
  }

  .brand-logo-icon svg {
    width: 22px;
    height: 22px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-tagline {
    display: none; /* Hide tagline on mobile to keep navbar ultra-clean */
  }

  .header-actions {
    gap: 0.4rem;
  }

  .header-actions .header-link,
  .header-actions .status-pill {
    display: none;
  }

  .api-diag-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  .api-diag-btn span {
    display: none; /* Compact icon-only button on mobile */
  }

  .sheet-badge-link {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  .sheet-badge-link span {
    display: none; /* Compact icon-only button on mobile */
  }

  /* Mobile Hero Section */
  .hero-section {
    padding: 2.25rem 1rem 3.75rem;
  }

  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-banner-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .accreditations-strip {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
  }

  .accreditations-logos-marquee {
    justify-content: center;
  }

  .acc-logo {
    height: 26px;
    padding: 2px 6px;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.4rem;
  }

  .value-props {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .prop-item {
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  /* Registration Form Card on Mobile */
  .registration-portal-wrapper {
    padding: 0 0.85rem;
    margin-top: -2.5rem;
  }

  .form-card {
    border-radius: var(--radius-md);
  }

  .form-card-header {
    padding: 1.15rem 1rem;
    gap: 0.75rem;
  }

  .header-icon-box {
    width: 42px;
    height: 42px;
  }

  .card-heading {
    font-size: 1.15rem;
  }

  .card-subheading {
    font-size: 0.775rem;
    line-height: 1.4;
  }

  .form-section {
    padding: 1.25rem 1rem;
  }

  .section-title-wrap {
    gap: 0.65rem;
    margin-bottom: 1.1rem;
  }

  .section-number {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1rem;
  }

  .section-desc {
    font-size: 0.775rem;
  }

  /* 1-Column Responsive Grids */
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .radio-card-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .radio-card {
    padding: 0.85rem;
  }

  .mode-desc {
    padding-left: 1.5rem;
    font-size: 0.775rem;
  }

  .branch-pill-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .branch-pill {
    padding: 0.65rem 0.4rem;
    font-size: 0.8rem;
  }

  /* Actions Bar */
  .form-actions-bar {
    padding: 1.25rem 1rem;
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
  }

  .submission-note {
    padding: 0.75rem 1rem;
    font-size: 0.725rem;
  }

  /* Success Receipt on Mobile */
  .success-card {
    padding: 1.5rem 1rem;
  }

  .success-icon-badge {
    width: 60px;
    height: 60px;
  }

  .success-icon-badge svg {
    width: 30px;
    height: 30px;
  }

  .success-title {
    font-size: 1.45rem;
  }

  .success-desc {
    font-size: 0.875rem;
  }

  .receipt-card {
    padding: 1.15rem 1rem;
  }

  .receipt-header {
    flex-direction: column;
    gap: 0.6rem;
  }

  .receipt-ref-box {
    text-align: left;
  }

  .receipt-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .success-actions {
    flex-direction: column;
    width: 100%;
  }

  .success-actions .btn {
    width: 100%;
  }

  /* Branches Section on Mobile */
  .branches-section {
    margin: 3rem auto 1rem;
    padding: 0 1rem;
  }

  .centered-title {
    font-size: 1.5rem;
  }

  .centered-subtitle {
    font-size: 0.85rem;
  }

  .branches-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .branch-card {
    padding: 0 !important;
  }

  .branch-card-img-wrap {
    height: 180px;
  }

  .branch-card-content {
    padding: 1.15rem 1rem;
  }

  /* Floating WhatsApp on Mobile */
  .whatsapp-floating-dock {
    bottom: 1rem;
    left: 1rem;
  }

  .btn-whatsapp-float {
    width: 48px;
    height: 48px;
  }

  .btn-whatsapp-float img {
    width: 30px;
    height: 30px;
  }

  /* Modal on Mobile */
  .modal-backdrop {
    padding: 0.5rem;
    align-items: flex-end; /* Mobile bottom sheet style */
  }

  .modal-dialog {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }

  .modal-header {
    padding: 1rem 1.15rem;
  }

  .modal-body {
    padding: 1.15rem 1rem;
    gap: 1.15rem;
  }

  .diag-status-row {
    flex-direction: column;
    align-items: stretch;
  }

  .diag-btn-group {
    flex-direction: column;
  }

  .diag-btn-group .btn {
    width: 100%;
  }

  .config-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .config-actions .btn {
    width: 100%;
  }

  /* Footer on Mobile */
  .footer-container {
    grid-template-columns: 1fr;
    padding: 2.5rem 1rem 1.5rem;
    gap: 1.75rem;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Extra Compact Phones (<= 390px, e.g. iPhone SE, Galaxy A series) */
@media (max-width: 390px) {
  .branch-pill-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .registration-portal-wrapper {
    padding: 0 0.5rem;
  }

  .form-section {
    padding: 1rem 0.75rem;
  }
}

