:root{
  --primary: #e50914; /* Netflix red */
  --dark: #111; /* Jet black */
  --light: #ffffff; /* Pure white */
  --muted: #777; /* Soft grey */
  --border: #e5e5e5;
  --shadow: rgba(0,0,0,0.06);
}
*{
  box-sizing: border-box;
  font-family: "Tahoma", Sans-serif;
}
body{
  background: var(--light);
  margin: 0;
  padding: 20px;
  color: var(--dark);
}
.container{
  max-width: 900px;
  margin: 0 auto;
  background: var(--light);
  padding: 30px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px var(--shadow);
}
h1{
  color: var(--primary);
  text-align: center;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}
.wizard .step{
  display:none;
  padding: 12px;
}
.wizard .step.active{
  text-align: center;
  display:block;
}
h2{
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 30px;
}
/* Option Buttons */
.options{
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.option{
  background: var(--light);
  border: 2px solid var(--border);
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  min-width: 180px;
  transition: all .25s ease;
  font-weight: 500;
  color: var(--dark);
  box-shadow: 0 3px 10px var(--shadow);
}
.option:hover{
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.18);
}
.option.selected{
  border-color: var(--primary);
  background: var(--primary);
  color: var(--light);
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.2);
}
/* Grid Layout (Countries) */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
/* Inputs */
input[type="text"],
input[type="tel"],
input[type="date"],
select{
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 15px;
  margin-top: 12px;
  transition: border .25s ease, box-shadow .25s ease;
}
input:focus,
select:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
  outline: none;
}
/* Navigation Buttons */
.nav{
  display:flex;
  gap:12px;
  justify-content:flex-end;
  margin-top:20px;
}
.nav button{
  padding: 12px 22px;
  font-size: 15px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  transition: all .25s ease;
  font-weight: 600;
}
/* Next Button */
.nav .next-btn{
  background: var(--primary);
  color: var(--light);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.25);
}
.nav .next-btn:hover{
  background: #c20812;
}
/* Prev Button */
.nav .prev-btn{
  background:#eee;
  color:#333;
}
.nav .prev-btn:hover{
  background:#ddd;
}
/* Submit Special */
#submit-btn{
  background: #e50914;
  color: var(--light);
}
#submit-btn:hover{
  background: #000;
}
/* Restart */
#restart{
  display: none !important;
  background: var(--light);
  color: var(--primary);
  border: 2px solid var(--primary);
}
#restart:hover{
  background: var(--primary);
  color: var(--light);
}
/* Mobile Adjustments */
@media (max-width:600px){
  .container{padding:18px}
  .option{min-width:130px;font-size:14px}
}
/* Step 1 css */
.country-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.country-card {
  padding: 0;
  background: #fff;
  border-radius: 18px;
  border: 2px solid transparent;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 5px 14px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}
.country-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.country-card.selected {
  border-color: var(--primary);
  box-shadow: 0 8px 22px rgba(229, 9, 20, 0.25);
}
.country-img-wrap {
  width: 100%;
  height: 120px;
  overflow: hidden;
}
.country-big-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.country-info {
  padding: 12px 14px;
  text-align: left;
}
.flag-icon {
  display: none;
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 6px;
}
.country-name {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}
.country-subtext {
  margin: 4px 0 0;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}
/* Tick icon */
.country-card .tick {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
}
.country-card.selected .tick {
  display: flex;
}
.country-card.selected .tick::after {
  content: "✓";
 
}
/* University section - Updated for 2-column grid, responsive */
#university-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}
@media (max-width: 768px) {
  #university-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
/* University Cards - Beautiful Box Style */
.university-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  position: relative;
}
.university-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.university-card.selected {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(229,9,20,0.2);
}
.uni-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.flag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
}
.country-name {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}
.uni-name {
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 12px 0;
}
.uni-details {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  text-align: left;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 4px;
}
.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.label {
  color: var(--dark);
  font-weight: 500;
}
.value {
  color: var(--muted);
  text-align: right;
  font-weight: 500;
}
/* Tick for university */
.university-card .tick {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
}
.university-card.selected .tick {
  display: flex;
}
.university-card.selected .tick::after {
  content: "✓";
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(229, 9, 20, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
} 

.required {
  color: #e50914;
  font-weight: bold;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid #ddd;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.15);
  outline: none;
}

.form-group input.error {
  border-color: #e50914;
  background-color: #fff8f8;
}

.error-msg {
  color: #e50914;
  font-size: 13px;
  margin-top: 6px;
  display: block;
  min-height: 20px;
  font-weight: 500;
}

.uni-details > * {
    margin: 5px 0 !important;  /* or 0 */
}

/* FULL-SCREEN CENTERED PRELOADER - LOOKS PREMIUM */
.preloader-step {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
}
.preloader-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  opacity: 0.9;
}
.preloader-content-centered {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
  animation: fadeInUp 0.8s ease-out;
}
.loader-circle { 
    width: 110px; 
    height: 110px; 
    margin: 0 auto 40px; 
}
.spinner { 
    animation: spin 1.4s linear infinite; 
}
.path {
  stroke: #f6f6f6;
  stroke-dasharray: 187;
  stroke-dashoffset: 0;
  transform-origin: center;
  animation: dash 1.4s ease-in-out infinite;
}
.preloader-title {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.3;
}
.preloader-text {
  font-size: 19px;
  color: #ffffff;
  margin: 0 auto;
  line-height: 1.6;
  max-width: 700px;
}

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash {
  0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 200; stroke-dashoffset: -35px; }
  100% { stroke-dashoffset: -125px; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.date-label{
  text-align: left;
}

/* DYNAMIC PRELOADER BACKGROUNDS */
.preloader-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.40;
  transition: background-image 0.8s ease-in-out;
  z-index: 1;
}

/* Specific backgrounds */
.preloader-bg.personalized    { background-image: url('../assets/preloaders/preloader-img-4.webp'); }
.preloader-bg.universities    { background-image: url('../assets/preloaders/img-3.webp'); }
.preloader-bg.consultation    { background-image: url('../assets/preloaders/bg2.jpg'); }
.preloader-bg.appointment     { background-image: url('../assets/preloaders/bg-3.jpg'); }

/* Optional: Darker overlay for readability */
.preloader-overlay {
  background: rgb(9, 5, 5); 
  opacity: 5.4;
  backdrop-filter: blur(30px);
}

/* University Details Row - Single Horizontal Line */
.uni-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  font-size: 14px;
  gap: 10px;
}

.detail-item {
  flex: 1;
  text-align: center;
  margin: 0;
  padding: 5px;
}

.detail-item strong {
  color: var(--primary);
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.detail-item span {
  display: block;
  font-weight: 500;
  color: #333;
}

/* Ensure single row on mobile - reduce font if needed */
@media (max-width: 600px) {
  .uni-details-row {
    flex-direction: column;
    align-items: start;
    gap: 8px;
    font-size: 13px;
  }
  
  .detail-item {
    text-align: left;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
  }
  
  .detail-item:last-child {
    border-bottom: none;
  }
}

