/* MMYRV Admission pages - shared styles (ApplicationForm + OTP) */
:root {
    --maroon: #4a1220;
    --maroon-2: #6b1d2f;
    --saffron: #f0a21c;
    --saffron-dark: #c97f06;
    --ink: #1d1b26;
    --muted: #6a6878;
    --line: #e3e1ea;
    --bg: #f1f3f8;
    --card: #ffffff;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--maroon-2); }

/* ---------- page shell ---------- */
.shell {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 100vh;
}

/* ---------- left info panel ---------- */
.aside {
    background: linear-gradient(170deg, var(--maroon) 0%, #2e0a14 100%);
    color: #f6eef0;
    padding: 36px 36px 28px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 6px solid var(--saffron);
}

.aside .brand {
    display: block;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.aside .brand img { width: 100%; max-width: 320px; display: block; }

.aside h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 4px;
}

.aside .sub { color: #d9bcc3; font-size: 14px; margin: 0 0 22px; }

.steps { list-style: none; padding: 0; margin: 0 0 30px; position: relative; }

.steps li {
    display: flex;
    gap: 14px;
    padding-bottom: 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: 2px;
    width: 2px;
    background: rgba(240, 162, 28, .45);
}

.steps .n {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--saffron);
    color: var(--maroon);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps strong { color: #fff; }

.help {
    border-top: 1px solid rgba(255, 255, 255, .18);
    padding-top: 20px;
    font-size: 13.5px;
    line-height: 1.6;
}

.help h5 { font-size: 14px; font-weight: 600; margin: 0 0 12px; color: #fff; }
.help p { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; color: #e6d3d8; }
.help p i {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(240, 162, 28, .18);
    color: var(--saffron);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.help p a { padding-top: 5px; word-break: break-word; }
.help a { color: #fff; text-decoration: none; }
.help a:hover { text-decoration: underline; }

/* ---------- right content ---------- */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.topbar .session { font-weight: 600; font-size: 16px; color: var(--maroon); }

.topbar .call {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.topbar .call i { color: var(--saffron-dark); margin-right: 6px; }

.stage {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 24px;
}

.panel {
    width: 100%;
    max-width: 760px;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px -22px rgba(74, 18, 32, .35);
    padding: 34px 38px 38px;
}

.mobile-brand { display: none; text-align: center; margin-bottom: 14px; }
.mobile-brand img { width: 240px; max-width: 80%; }

.panel h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--maroon);
}

.panel .lead { margin: 0 0 24px; color: var(--muted); font-size: 14.5px; }

/* tabs */
.seg.nav-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin: 0 0 26px;
    border: 0;
    background: #eeedf3;
    border-radius: 10px;
}

.seg.nav-tabs > li { float: none; flex: 1; margin: 0; }

.seg.nav-tabs > li > a {
    display: block;
    text-align: center;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 500;
    font-size: 14.5px;
    background: transparent;
}

.seg.nav-tabs > li.active > a,
.seg.nav-tabs > li.active > a:hover,
.seg.nav-tabs > li.active > a:focus {
    background: #fff;
    color: var(--maroon);
    border: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

/* form */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.fgrid .full { grid-column: 1 / -1; }

.form-group { margin: 0; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ink);
    background: #fbfbfd;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}

.form-control:focus {
    outline: none;
    background: #fff;
    border-color: var(--saffron-dark);
    box-shadow: 0 0 0 3px rgba(240, 162, 28, .25);
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--maroon-2); flex: 0 0 auto; }
.consent label { font-weight: 400; margin: 0; color: var(--muted); }

.actions { text-align: center; margin-top: 26px; }

.button {
    border: 0;
    cursor: pointer;
    min-width: 200px;
    padding: 13px 34px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: background .15s, transform .1s;
}

.button:active { transform: translateY(1px); }
.button.orange { background: var(--saffron); color: var(--maroon); }
.button.orange:hover { background: #ffb43a; }
.button.green { background: var(--maroon-2); color: #fff; }
.button.green:hover { background: var(--maroon); }

.msg { text-align: center; color: #c0182b; font-size: 14px; margin: 14px 0 0; }

.footer-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 40px;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-bar ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.footer-bar a { color: var(--muted); text-decoration: none; }
.footer-bar a:hover { color: var(--maroon); text-decoration: underline; }

/* mobile-only copy of the info block */
.aside-mobile { display: none; }

@media (max-width: 960px) {
    .shell { display: block; }
    .aside { display: none; }
    .mobile-brand { display: block; }
    .aside-mobile {
        display: block;
        background: linear-gradient(170deg, var(--maroon), #2e0a14);
        color: #f6eef0;
        padding: 28px 22px;
        border-top: 5px solid var(--saffron);
    }
    .aside-mobile h2 { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
    .aside-mobile .sub { color: #d9bcc3; font-size: 13.5px; margin: 0 0 18px; }
    .topbar { padding: 12px 18px; }
    .stage { padding: 20px 14px; }
    .panel { padding: 24px 18px 28px; }
    .footer-bar { padding: 14px 18px; }
}

@media (max-width: 600px) {
    .fgrid { grid-template-columns: 1fr; }
    .panel h1 { font-size: 22px; }
    .button { width: 100%; }
}

/* OTP page extras */
.otp-wrap { max-width: 420px; margin: 0 auto; }
.otp-wrap .form-control { text-align: center; letter-spacing: 12px; font-size: 22px; font-weight: 600; height: 56px; }
.otp-wrap .form-control::placeholder { letter-spacing: normal; font-size: 14.5px; font-weight: 400; }
.otp-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.otp-actions form { margin: 0; }
.button.ghost { background: transparent; color: var(--maroon-2); border: 1.5px solid var(--maroon-2); }
.button.ghost:hover { background: var(--maroon-2); color: #fff; }
.campus { margin-top: 22px; }
.campus .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--saffron); color: var(--maroon); text-decoration: none; }
.campus a.button:hover { background: #ffb43a; color: var(--maroon); }
@media (max-width: 600px) { .otp-actions form { width: 100%; } }
