 :root{
      --blue:#003366;
      --accent:#E3000F;
      --muted:#6b7280;
      --card:#fff;
      --bg:#f4f6fb;
      --radius:16px;
      --maxWidth:1200px;
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0;
      font-family:"Poppins",sans-serif;
      background:var(--bg);
      color:#12202b;
      -webkit-font-smoothing:antialiased;
      -moz-osx-font-smoothing:grayscale;
      display:flex;
      justify-content:center;
      padding:28px;
    }

    /* Main wrapper */
    .page {
      width:100%;
      max-width:var(--maxWidth);
      border-radius:20px;
      overflow:hidden;
      box-shadow: 0 24px 80px rgba(4,14,36,0.08);
      background:linear-gradient(180deg,#fff,#fff);
      display:flex;
      min-height:640px;
    }

    /* LEFT: Hero image & text */
    .hero {
      flex: 1.05;
      min-width:360px;
      position:relative;
      background-image:
        linear-gradient(180deg, rgba(0,0,0,0.24), rgba(0,0,0,0.18)),
        url('../images/bg-image_desktop.png');
      background-size:cover;
      background-position:center;
      color:#fff;
      padding:36px;
      display:flex;
      flex-direction:column;
      justify-content:flex-start;
      gap:14px;
    }

    .hero .brand {
      display:flex;
      gap:12px;
      align-items:center;
    }
    .brand img { width:78px; height:auto; border-radius:8px; background:rgba(255,255,255,0.06); padding:6px; }

    .hero .headline-en {
      font-size:clamp(20px,3.2vw,36px);
      font-weight:700;
      line-height:1.02;
      max-width:760px;
      margin-top:6px;
      text-shadow:0 8px 30px rgba(0,0,0,0.25);
    }
    .hero .headline-ar {
      font-family: "Amiri", serif;
      font-weight:700;
      font-size:clamp(18px,2.6vw,34px);
      direction:rtl;
      margin-top:6px;
      text-shadow:0 8px 30px rgba(0,0,0,0.22);
    }
    .hero .sub {
      font-size:14px;
      max-width:620px;
      opacity:0.95;
      text-shadow:0 6px 20px rgba(0,0,0,0.18);
    }

    /* Floating image of student (bottom-right) */
    .hero .student {
      position:absolute;
      right:18px;
      bottom:18px;
      width:220px;
      border-radius:12px;
      box-shadow: 0 18px 40px rgba(0,0,0,0.32);
      transform: translateZ(0);
    }

    /* RIGHT: Form area */
    .panel {
      flex: 0.95;
      min-width:360px;
      padding:42px 36px;
      display:flex;
      align-items:center;
      justify-content:center;
      background:linear-gradient(180deg,#ffffff,#fbfdff);
	  height:inherit;
	  overflow-y:scroll;
    }

    .form-card {
      width:100%;
      max-width:480px;
      border-radius:14px;
      background:linear-gradient(180deg,#fffef7,#fff);
      box-shadow: 0 12px 40px rgba(9,30,66,0.06);
      padding:22px;
      position:relative;
	  margin-top:80px;
    }

    /* small step indicator */
    .meta {
      display:flex;
      align-items:center;
      gap:12px;
      margin-bottom:12px;
    }
    .meta .steps {
      display:flex;
      gap:10px;
      align-items:center;
    }
    .dot{
      width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;
      font-weight:600;color:var(--blue);background:#f3f7fb;border:1px solid rgba(0,0,0,0.04)
    }
    .dot.active{
      background:linear-gradient(90deg,var(--blue),#0066cc);
      color:#fff;box-shadow:0 6px 18px rgba(0,86,179,0.12)
    }

    h3.title { margin:10px 0 6px; font-size:18px; color:var(--blue); }
    p.reassure { margin:0 0 14px; color:var(--muted); font-size:13px; }

    form { display:block; }
    .field { margin-bottom:12px; }
    label.small { display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
    input[type="text"], input[type="tel"], input[type="email"], select, textarea {
      width:100%; padding:12px 14px; border-radius:10px; border:1px solid #e6e9ef; font-size:14px;
      background:#fff; transition: box-shadow .18s, border-color .18s;
    }
    input:focus, textarea:focus, select:focus { outline:none; border-color:var(--blue); box-shadow:0 8px 24px rgba(0,86,179,0.06); }
    textarea { min-height:88px; resize:vertical; padding-top:10px; }

    .row { display:flex; gap:10px; }
    .col { flex:1; min-width:0; }

    /* destinations flags */
    .dest-wrap { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
    .dest {
      display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:10px; border:1px solid #eef3fb;
      background:#fbfdff; cursor:pointer; font-size:10px;
    }
    .dest input { display:none; }
    .dest.checked { border-color:var(--blue); background:linear-gradient(90deg,#fff,#f7fbff); box-shadow:0 10px 26px rgba(0,86,179,0.04); }

    .radio-group { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; font-size:18px;}
    
    .radio-group.checked { border-color:var(--blue); background:linear-gradient(90deg,#fff,#f7fbff); box-shadow:0 10px 26px rgba(0,86,179,0.04); }
    .radio { padding:8px 12px; border-radius:10px; border:1px solid #eef3fb; background:#fff; cursor:pointer; display:flex; align-items:center; gap:8px; }
    .radio input{ display:none; }

    .actions { display:flex; gap:12px; margin-top:12px; align-items:center; }
    .btn {
      border:0; padding:12px 18px; border-radius:999px; font-weight:700; cursor:pointer; font-size:15px;
      color:#fff; background:var(--blue); box-shadow:0 12px 36px rgba(0,86,179,0.12);
    }
    .btn.secondary { background:#fff; color:var(--blue); border:1px solid rgba(0,0,0,0.06); box-shadow:none; }

    .muted { color:var(--muted); font-size:13px; margin-top:8px; }

    /* trust row */
    .below {
      margin-top:18px;
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:18px;
      flex-wrap:wrap;
    }
    .feature {
      display:flex; gap:8px; align-items:center; min-width:140px;
    }
    .feature .ico {
      width:56px; height:56px; border-radius:999px; background:var(--blue); display:flex; align-items:center; justify-content:center; color:#fff; font-size:22px;
      box-shadow:0 12px 30px rgba(0,86,179,0.08);
    }
    .feature .txt { font-size:13px; color:var(--muted) }

    .testimonial {
      background:#f6f9ff; border-radius:12px; padding:12px; box-shadow:0 8px 22px rgba(9,30,66,0.03); flex:1;
      display:flex; gap:12px; align-items:center;
    }
    .avatar { width:48px; height:48px; border-radius:50%; object-fit:cover; }
    .quote { font-size:13px; color:var(--muted) }

    /* footer minimal */
    .mini-footer { text-align:center; margin-top:18px; color:var(--muted); font-size:13px; }

    /* responsive */
    /* ============================= */
/* RESPONSIVE FIXES — 2025       */
/* ============================= */

/* Tablet and below */
@media (max-width: 980px) {
  .page {
    flex-direction: column;
    min-height: unset;
    height: auto;
  }

  /* Hero section smaller height for mobile */
  .hero {
    order: 1;
    min-height: 220px;
    height: auto;
    padding: 20px;
    background-position: center top;
    background-size: cover;
  }

  .hero .student {
    display: none;
  }

  /* Right form panel below hero */
  .panel {
    order: 2;
    padding: 24px 18px;
    height: auto;
    min-height: auto;
    overflow: visible; /* ✅ FIX: previously scroll hidden nationality section */
    background: linear-gradient(180deg, #ffffff, #f9fbff);
  }

  .form-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(9, 30, 66, 0.06);
  }

  /* Ensure all form fields are visible and not overlapping */
  .meta {
    flex-wrap: wrap;
    gap: 10px;
    text-align: left;
  }

  .dot {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  /* Step text visible below dots */
  #progressText {
    flex-basis: 100%;
    font-size: 13px;
    text-align: left;
  }

  /* Input spacing */
  input, select, textarea {
    font-size: 15px;
  }

  /* Avoid cramped buttons */
  .actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Mobile (phones) */
@media (max-width: 520px) {
  .page {
    border-radius: 10px;
    padding: 0;
    box-shadow: none;
  }

  .hero {
    padding: 18px 16px;
    min-height: 180px;
    text-align: left;
  }

  .hero .headline-en,
  .hero .headline-ar {
    font-size: 18px;
    line-height: 1.3;
  }

  .brand img {
    width: 52px;
  }

  .form-card {
    padding: 18px;
    border-radius: 12px;
    margin-top: 0;
  }

  /* Ensure select dropdown (nationality) visible and clickable */
  select {
    font-size: 16px;
    padding: 10px 12px;
  }

  /* Step indicators centered */
  .meta {
    justify-content: center;
  }
  #progressText {
    text-align: center;
    margin-top: 4px;
  }

  /* Destinations flags wrap neatly */
  .dest-wrap {
    justify-content: center;
  }

  .radio-group {
    justify-content: center;
  }

  textarea {
    min-height: 80px;
  }
}

/* ✅ Fix: Form hidden from bottom on mobile */
@media (max-width: 980px) {
  html, body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page {
    height: auto !important;
    min-height: auto !important;
    display: block;
  }

  .hero {
    height: auto !important;
    min-height: 180px !important;
  }

  .panel {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    padding-bottom: 60px; /* ensures bottom fields and button visible */
  }

  .form-card {
    height: auto !important;
    overflow: visible !important;
  }
}

	 /* Countries / flags */
    .destinations{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
    .destinations label{
      display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;border:1px solid #eef3fb;background:#fbfdff;cursor:pointer;font-size:14px;
    }
    .destinations input{display:none}
    .destinations label .flag{font-size:18px}
    .destinations input:checked + label{background:linear-gradient(90deg,#fff,#f7fbff);border-color:var(--blue);box-shadow:0 8px 22px rgba(0,86,179,0.06)}

    /* radio group */
    .radio-group{display:flex;gap:8px;flex-wrap:wrap}
    .radio{
      display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:9px;border:1px solid #eef3fb;background:#fff;cursor:pointer;
    }
    .radio input{display:none}
    .radio input:checked + span{font-weight:600;color:var(--blue)}

    /* Scholarship toggle */
    .toggle {display:flex;gap:12px;align-items:center}
    .toggle .pill{padding:8px 12px;border-radius:24px;border:1px solid #eef3fb;background:#fff;cursor:pointer}
    .actions{display:flex;gap:12px;margin-top:12px;align-items:center}
	#school {
	  display: block;
	  width: 100%;
	  padding: 10px 14px;
	  font-size: 16px;
	  line-height: 1.5;
	  color: #212529;
	  background-color: #fff;
	  background-clip: padding-box;
	  border: 1px solid #ced4da;
	  border-radius: 8px;
	  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	}

	#school:focus {
	  border-color: #86b7fe;
	  outline: 0;
	  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
	}
	
	.dest-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 8px;
}

.dest {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease-in-out;
}

.dest:hover {
  background: #e9f5ff;
  border-color: #b6daff;
}

.dest input[type="checkbox"] {
  accent-color: #007bff;
  width: 16px;
  height: 16px;
}

.flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
}

/* Optional — highlight selected country */
.dest input[type="checkbox"]:checked ~ .flag {
  box-shadow: 0 0 0 2px #007bff;
}
.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  background: #f3f4f6;
  color: #333;
  transition: all 0.25s ease;
  border: 1px solid #ddd;
}

.lang-switch a:hover {
  background: #007bff;
  color: #fff;
}

.lang-switch a.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* Small devices */
@media (max-width: 520px) {
  .lang-switch {
    justify-content: center;
    margin-bottom: 14px;
  }
}
/* ✅ Fix hero background for mobile view only */
@media (max-width: 768px) {
  .hero {
    background-size: contain !important; /* show full image */
    background-position: center top !important;
    background-repeat: no-repeat !important;
	background-image:
        linear-gradient(180deg, rgba(0,0,0,0.24), rgba(0,0,0,0.18)),
        url('../images/bg-image_mobile.png');
  }
}
