/* =========================================================
   ICC Admissions • Premium Parent-Friendly Grey Theme
   STEP WIZARD + MOBILE PROGRESS BAR + GREEN CHECKMARKS
   ========================================================= */

:root {
  --bg: #f4f5f7;
  --bg-card: #ffffff;
  --bg-panel: #f8f9fa;
  --bg-input: #f1f3f5;
  --bg-input-focus: #e6e8ea;
  --text: #2c2f33;
  --text-soft: #6b7076;
  --accent: #1a73e8; /* Blue active colour */
  --success: #1fa672; /* Green checkmarks */
  --border: #d4d7db;
  --radius: 12px;
  --transition: 0.25s ease;
}

/* RESET ----------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.ibkr-body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* CONTAINER + CARD ------------------------------------------ */
.ibkr-container {
  max-width: 900px;
  margin: auto;
  padding: 25px 15px;
}

.ibkr-card {
  background: var(--bg-card);
  padding: 35px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.3s ease;
}

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

/* TITLE ------------------------------------------------------ */
.ibkr-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
}

.ibkr-subtitle {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-soft);
}

/* GRID ------------------------------------------------------- */
.grid {
  display: grid;
  gap: 22px;
}

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

@media (max-width: 820px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.mobile-grid-1 {
  grid-template-columns: 1fr !important;
}

/* FORM INPUTS ------------------------------------------------ */
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font-size: 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--bg-input-focus);
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.25);
}

/* FILE INPUT ------------------------------------------------- */
input[type="file"] {
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius);
  background: var(--bg-input);
  border: 1px solid var(--border);
}

/* SUBMIT BUTTON --------------------------------------------- */
.ibkr-submit {
  margin-top: 25px;
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.ibkr-submit:hover {
  filter: brightness(95%);
}

/* ============================================================
   STEP WIZARD (DESKTOP)
   ============================================================ */

.stepper-container {
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
}

.stepper-vertical {
  width: 200px;
  border-right: 1px solid var(--border);
  padding-right: 20px;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: var(--transition);
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.83rem;
  transition: var(--transition);
}

/* Active Step */
.stepper-step.active {
  color: var(--accent);
}

.stepper-step.active .step-number {
  border-color: var(--accent);
  background: #e8f1ff;
  color: var(--accent);
}

/* Completed Step */
.stepper-step.completed {
  color: var(--success);
}

.stepper-step.completed .step-number {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.stepper-step.completed .step-number::after {
  content: "✓";
  font-weight: 700;
}

/* ============================================================
   MOBILE STEPPER (HORIZONTAL + PROGRESS)
   ============================================================ */

.mobile-stepper {
  display: none;
  margin-bottom: 20px;
  text-align: center;
}

.mobile-stepper-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.progress-wrapper {
  width: 100%;
  height: 6px;
  background: #d8dde3;
  border-radius: 50px;
  overflow: hidden;
}

.progress-inner {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.4s ease;
}

@media (max-width: 900px) {
  .stepper-container {
    display: block;
  }

  .stepper-vertical {
    display: none;
  }

  .mobile-stepper {
    display: block;
  }
}

/* ============================================================
   STEP CONTAINERS
   ============================================================ */

.form-step {
  display: none;
  animation: fadeStep 0.3s ease;
}

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

.form-step.active {
  display: block;
}

/* NEXT & BACK BUTTONS --------------------------------------- */
.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.step-btn {
  padding: 12px 18px;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.step-btn.next {
  background: var(--accent);
  color: #fff;
}

.step-btn.next:hover {
  filter: brightness(95%);
}

.step-btn.back {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
}

.step-btn.back:hover {
  background: var(--bg-input-focus);
}

/* MOBILE OPTIMIZATION --------------------------------------- */
@media (max-width: 600px) {
  .ibkr-card {
    padding: 25px 18px;
  }
  .ibkr-title {
    font-size: 1.7rem;
  }
  .ibkr-submit {
    padding: 13px;
    font-size: 1rem;
  }
}
