/* ==========================================================
   IDAT — Student Registration wizard
   ========================================================== */
.idat-reg-shell {
    /* Header is position:fixed at ~106px tall (30px+30px padding + 46px
       logo) on every breakpoint — cleared here directly with a fixed value
       rather than relying on the theme's JS-timed margin, which isn't
       reliably applied at every viewport width. */
    position: relative;
    background: linear-gradient(180deg, #0E2340 0%, #12294B 260px, #F5F6F8 260px, #F5F6F8 100%);
    padding-top: 170px !important;
    padding-bottom: 90px;
    min-height: 100vh;
}
.idat-reg-bg {
    position: absolute; top: 0; left: 0; right: 0; height: 260px;
    background-image: url('../images/vertical-line-bg-small.svg');
    background-position: center top; opacity: .25; pointer-events: none;
}

.idat-reg-container { position: relative; max-width: 860px; }

/* ---------- progress stepper ---------- */
.idat-reg-progress-wrap { margin-top: 24px; margin-bottom: 34px; }
.idat-reg-progress {
    display: flex; align-items: flex-start; justify-content: space-between;
    max-width: 640px; margin: 0 auto; position: relative;
}
.idat-reg-progress::before {
    content: ""; position: absolute; top: 17px; left: 6%; right: 6%; height: 2px;
    background: rgba(255,255,255,.18); z-index: 0;
}
.idat-reg-step-dot {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
    flex: 1;
}
.idat-reg-step-dot .num {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.6);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; font-family: var(--alt-font, inherit);
    transition: all .3s ease;
}
.idat-reg-step-dot .lbl { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.idat-reg-step-dot.done .num { background: #C9A227; border-color: #C9A227; color: #0E2340; }
.idat-reg-step-dot.active .num { border-color: #C9A227; color: #fff; box-shadow: 0 0 0 5px rgba(201,162,39,.18); }
.idat-reg-step-dot.active .lbl { color: #fff; }

/* ---------- panels ---------- */
.idat-reg-panel { display: none; }
.idat-reg-panel.active { display: block; animation: idatRegIn .4s ease; }
@keyframes idatRegIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.idat-reg-card {
    background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(14,35,64,.14);
    padding: 46px 50px; margin-bottom: 22px;
}
.idat-reg-welcome { padding: 60px 50px; }
.idat-reg-crest { height: 78px; margin: 0 auto 24px; display: block; }

/* ---------- form fields ---------- */
.idat-reg-card label {
    display: block; font-size: 13px; font-weight: 600; color: #0E2340; margin-bottom: 6px;
}
.idat-reg-card label em { font-style: normal; font-weight: 400; color: #8a8f98; }
.idat-reg-card input[type=text], .idat-reg-card input[type=email], .idat-reg-card input[type=tel],
.idat-reg-card input[type=date], .idat-reg-card select, .idat-reg-card textarea {
    width: 100%; min-height: 48px; padding: 12px 15px; border: 1px solid #e2e4e8; border-radius: 6px;
    font-size: 14px; font-family: inherit; color: #1F2937; background: #fff;
}
.idat-reg-card input:focus, .idat-reg-card select:focus, .idat-reg-card textarea:focus {
    outline: none; border-color: #C9A227; box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}
.idat-reg-card input.idat-invalid, .idat-reg-card select.idat-invalid, .idat-reg-card textarea.idat-invalid {
    border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
.idat-reg-card .row > div { margin-bottom: 4px; }
.idat-reg-check-inline { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: #6B7280; margin-top: 8px; }
.idat-reg-check-inline input { width: auto; min-height: auto; }

/* ---------- file uploads ---------- */
.idat-reg-upload-grid { margin-top: 6px; }
.idat-reg-file { position: relative; }
.idat-reg-file input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.idat-reg-file-label {
    display: flex; align-items: center; gap: 10px; min-height: 52px;
    border: 1.5px dashed #d5d9e0; border-radius: 8px; padding: 12px 16px;
    font-size: 13px; color: #6B7280; background: #FAFBFC; transition: border-color .2s ease, background .2s ease;
}
.idat-reg-file-label i { font-size: 18px; color: #C9A227; }
.idat-reg-file input[type=file]:focus + .idat-reg-file-label,
.idat-reg-file:hover .idat-reg-file-label { border-color: #C9A227; background: #FFFBF0; }
.idat-reg-file.has-file .idat-reg-file-label { border-style: solid; border-color: #1E8E5A; background: #F1FAF5; color: #1E8E5A; }
.idat-reg-file.has-file .idat-reg-file-label i { color: #1E8E5A; }

/* ---------- terms box ---------- */
.idat-reg-terms-box {
    max-height: 320px; overflow-y: auto; border: 1px solid #e2e4e8; border-radius: 8px;
    padding: 22px 24px; font-size: 13.5px; line-height: 1.7; color: #444; background: #FAFBFC;
    margin-bottom: 22px;
}
.idat-reg-terms-box p { margin-bottom: 12px; }
.idat-reg-terms-box strong { color: #0E2340; }
.idat-reg-terms-check {
    display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
    background: #FFFBF0; border: 1px solid rgba(201,162,39,.4); border-radius: 8px; padding: 16px 18px;
}
.idat-reg-terms-check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.idat-reg-terms-check span { font-size: 13.5px; line-height: 1.6; color: #333; }

/* ---------- nav buttons (docked inside the active card via JS) ---------- */
.idat-reg-nav {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 38px; padding-top: 26px; border-top: 1px solid #ECEEF1;
}
.idat-reg-nav-msg { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: #C0392B; }
.idat-reg-nav-msg.success { color: #1E8E5A; }
.btn-outline-dark-gray { background: transparent; border: 1.5px solid #d5d9e0; color: #0E2340; }
.btn-outline-dark-gray:hover { border-color: #0E2340; }

/* ---------- thank you ---------- */
.idat-reg-thanks { padding: 60px 50px; }
.idat-reg-check-badge {
    width: 84px; height: 84px; border-radius: 50%; background: #C9A227; color: #0E2340;
    display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 26px;
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
    .idat-reg-shell { padding-top: 120px !important; padding-bottom: 60px; }
    .idat-reg-card, .idat-reg-welcome, .idat-reg-thanks { padding: 32px 24px; }
    .idat-reg-crest { height: 62px; }
    .idat-reg-step-dot .lbl { display: none; }
    .idat-reg-nav { flex-wrap: wrap; }
    .idat-reg-nav-msg { order: 3; width: 100%; }
    .idat-reg-nav .btn { flex: 1; min-width: 130px; justify-content: center; }
}
@media (max-width: 480px) {
    .idat-reg-step-dot .num { width: 30px; height: 30px; font-size: 12px; }
}
