/* ==========================================================
   St. Theresa's Girls School - Online Admission
   Professional theme v2 (navy / blue) - shared by all masters
   ========================================================== */
:root {
    --navy: #0f2a4a;
    --navy-2: #163b66;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f1f5f9;
    --card: #ffffff;
    --ok: #16a34a;
    --danger: #dc2626;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
}

/* ---------- Base ---------- */
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg) !important;
    background-image: none !important;
    color: var(--ink);
    font-family: "Segoe UI", Inter, Roboto, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
html * { font-family: "Segoe UI", Inter, Roboto, Arial, sans-serif; font-size: 10.5pt; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 600; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); }

/* ---------- Top brand bar ---------- */
header { background: transparent !important; box-shadow: none; border: 0; }
.site-top { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.site-top-in {
    max-width: 1100px; margin: 0 auto; padding: 18px 20px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.crest {
    width: 76px; height: 76px; flex: none; border-radius: 50%;
    background: #fff url("Images/admission_header.jpg") -52px -10px / auto 100px no-repeat;
    box-shadow: 0 0 0 3px rgba(255,255,255,.35);
}
.site-name { flex: 1 1 320px; min-width: 0; }
.site-name h1 { color: #fff; font-size: 20pt; font-weight: 700; margin: 0; letter-spacing: .01em; }
.site-name p { color: #cbd9ee; font-size: 9.5pt; margin: 2px 0 0; }
.session-badge {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius); padding: 8px 16px; text-align: right; line-height: 1.25;
}
.session-badge small { display: block; color: #9fc0ea; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .1em; }
.session-badge b { color: #fff; font-size: 13pt; font-weight: 600; }

/* ---------- Navigation ---------- */
nav {
    background: #fff !important;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(15,23,42,.05) !important;
    margin-bottom: 26px !important;
    position: sticky; top: 0; z-index: 50;
}
nav > div { max-width: 1100px !important; padding: 0 12px; }
.nav a {
    padding: 15px 20px !important;
    color: var(--navy) !important;
    font-size: 10.5pt !important;
    font-weight: 600;
    text-shadow: none !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s, background .15s;
}
.nav a:hover, .nav a:focus {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
    border-bottom-color: var(--primary);
}
.nav li li a { background: #fff; border-top: 1px solid var(--line); border-bottom: 0; }
.toggleMenu { background: var(--navy) !important; color: #fff !important; }
.blink {
    background: var(--primary); color: #fff !important;
    padding: 5px 14px; border-radius: 999px; font-weight: 600;
    -webkit-animation: none !important; animation: pulse 2s ease-in-out infinite !important;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,99,235,.45); } 50% { box-shadow: 0 0 0 7px rgba(37,99,235,0); } }

/* ---------- Layout / cards ---------- */
.container { max-width: 1100px !important; padding: 0 16px; }
.panelbox, .box, .myform, .mytable, .forms-sign-up2, .queryform {
    background: var(--card) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow);
    max-width: 100%;
}
.box { width: 100% !important; max-width: 1000px; margin: 14px auto !important; }
.myform, .mytable { width: 100% !important; max-width: 1000px; }
.myform th, .mytable th {
    background: var(--navy) !important; color: #fff !important;
    padding: 11px 14px !important; border-radius: 0 !important; font-weight: 600;
}
.popupRegister {
    border-top: 5px solid var(--primary) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 24px 60px rgba(15,23,42,.35) !important;
}
.title { color: var(--navy) !important; font-family: inherit !important; }

/* ---------- Tables / grids ---------- */
table { border-collapse: collapse; }
.grid, table.GridView, .table {
    background: #fff !important; border: 1px solid var(--line) !important;
    color: var(--ink) !important; font-weight: normal !important;
}
th { background: var(--navy); color: #fff; font-weight: 600; text-align: left; padding: 10px 12px; }
td { padding: 7px 10px; }
tr:nth-child(even) > td { background-color: #f8fafc; }
tr:hover > td { background-color: var(--primary-soft); }
.nav tr:hover > td, header tr:hover > td, header tr:nth-child(even) > td { background: transparent; }

/* ---------- Forms ---------- */
input[type=text], input[type=password], input[type=email], input[type=number],
input[type=tel], input[type=date], input[type=file], textarea, select {
    border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 12px;
    background: #fff; color: var(--ink); outline: none;
    transition: border-color .15s, box-shadow .15s;
}
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus,
input[type=number]:focus, input[type=tel]:focus, input[type=date]:focus,
textarea:focus, select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.18) !important;
}
input:disabled, select:disabled, textarea:disabled, input[readonly] { background: #f1f5f9; color: var(--muted); }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }
label { color: var(--ink); }

input[type=submit], input[type=button], button, .btn, a.button {
    background: var(--primary) !important; color: #fff !important;
    border: 0 !important; border-radius: 8px !important;
    padding: 10px 22px; font-weight: 600; cursor: pointer;
    box-shadow: 0 1px 2px rgba(15,23,42,.2);
    transition: background .15s, transform .1s;
}
input[type=submit]:hover, input[type=button]:hover, button:hover, .btn:hover, a.button:hover {
    background: var(--primary-dark) !important; text-decoration: none;
}
input[type=submit]:active, input[type=button]:active, button:active { transform: translateY(1px); }
input[type=submit]:disabled, input[type=button]:disabled, button:disabled { background: #94a3b8 !important; cursor: not-allowed; }

span[style*="color:Red"], span[style*="color:red"], .error { color: var(--danger) !important; }

/* ---------- Footer ---------- */
footer {
    position: static !important; height: auto !important; width: 100% !important;
    margin-top: 40px; background: var(--navy) !important; padding: 16px 10px !important;
}
footer p, footer * { color: #b8c7dd !important; font-size: 9.5pt !important; }
footer a { color: #fff !important; }

/* ---------- Login page ---------- */
.logindivform {
    background: #fff !important; border-radius: 14px !important;
    border-top: 5px solid var(--primary);
    box-shadow: 0 16px 40px rgba(15,23,42,.15) !important; padding: 30px !important;
}
.form-style-1 input[type=text], .form-style-1 input[type=password] { width: 100%; }
.example_c { background: var(--primary) !important; letter-spacing: .08em; }
.example_c:hover { background: var(--primary-dark) !important; }

/* ---------- Responsive ---------- */
@media only screen and (max-width: 750px) {
    .site-top-in { padding: 14px; }
    .site-name h1 { font-size: 14pt; }
    .session-badge { text-align: left; width: 100%; }
    .toggleMenu { display: block !important; }
    nav { position: static; }
    .container { padding: 0 10px; }
    .box, .myform, .mytable { width: 100% !important; }
    .panelbox { padding: 18px; }
}

/* ---------- Print ---------- */
@media print {
    header, nav, footer { display: none !important; }
    body { background: #fff !important; }
    .box, .panelbox { box-shadow: none; border: 0 !important; }
}

/* ---------- Multi-step / standalone form pages ---------- */
.myform tr:nth-child(even) > td, .myform tr:hover > td { background-color: transparent; }
.myform td, .myform th { height: auto; }
#msform fieldset { border-radius: var(--radius) !important; box-shadow: var(--shadow) !important; border: 1px solid var(--line) !important; }

#progressbar li.active:before, #progressbar li.active:after { background: var(--primary) !important; }
.Head { border-bottom-color: var(--primary) !important; font-family: inherit !important; color: var(--navy) !important; }
.hider .popupRegister h2 { color: var(--navy) !important; }

/* ---------- RegStudents: popup ---------- */
html, body { overflow-x: hidden; }
.hider { background: rgba(15, 23, 42, .65) !important; }
.hider #boxshadow16.popupRegister {
    position: absolute !important;
    left: 50% !important; top: 50% !important;
    transform: translate(-50%, -50%);
    width: min(780px, 94vw) !important; height: auto !important; max-height: 92vh;
    margin: 0 !important; padding: 22px 24px !important;
    display: flex; flex-direction: column;
}
.hider #boxshadow16 > h2 { margin: 0 0 12px !important; font-size: 14pt !important; text-align: left; }
.hider #boxshadow16 > h2 b { font-size: 14pt !important; color: var(--navy); }
.hider #popInstruct { height: auto !important; max-height: calc(92vh - 190px); overflow-y: auto !important; overflow-x: hidden !important; flex: 1 1 auto; }
.hider #popInstruct .forms-sign-up2 { background: transparent !important; box-shadow: none !important; border: 0 !important; margin: 0; }
.hider #popInstruct table.grid { width: 100% !important; table-layout: fixed; }
.hider #popInstruct th { background: var(--navy) !important; }
.hider #popInstruct th h3 { color: #fff !important; float: none !important; margin: 0; font-size: 11pt !important; }
.hider #popInstruct td { word-wrap: break-word; overflow-wrap: anywhere; font-weight: normal !important; line-height: 1.6; }
.hider #popInstruct li { margin-bottom: 4px; }
.hider #boxshadow16 > table { flex: none; }
.hider #boxshadow16 #btnClose { width: auto !important; min-width: 160px; }
.hider #popupMsgAlert.popupRegister {
    position: absolute !important; left: 50% !important; top: 50% !important;
    transform: translate(-50%, -50%); width: min(380px, 92vw) !important; height: auto !important;
    margin: 0 !important; padding: 24px !important;
}
.hider #lblMsgAlert { color: var(--navy) !important; font-family: inherit !important; font-size: 11pt !important; }

/* ---------- RegStudents: form ---------- */
#msform { width: min(980px, 96%) !important; margin: 0 auto 30px !important; text-align: left !important; }
#progressbar { max-width: 980px; margin: 0 auto 22px !important; padding: 0; }
#progressbar li { color: var(--navy) !important; font-size: 9.5pt !important; letter-spacing: .04em; }
#progressbar li:before { width: 34px !important; line-height: 34px !important; background: #cbd5e1 !important; color: #fff !important; }
#progressbar li:after { background: #cbd5e1 !important; top: 16px !important; height: 3px !important; }
#msform fieldset { width: 100% !important; padding: 26px 30px !important; font-weight: normal !important; background: #fff !important; }
#msform .myform { background: transparent !important; box-shadow: none !important; border: 0 !important; width: 100% !important; max-width: none; }
#msform .myform td { font-size: 10.5pt !important; padding: 6px 8px !important; color: #334155; font-weight: 600; vertical-align: middle; }
#msform .myform td[style*="color: red"], #msform .myform td[style*="color:red"] { color: var(--danger) !important; width: 14px; padding-right: 0 !important; }
#msform input[type=text], #msform select, #msform .dropSelect {
    width: 100% !important; height: 40px; margin: 2px 0 !important;
    border: 1px solid #cbd5e1 !important; border-radius: 8px !important; font-size: 10.5pt !important;
    font-weight: normal; color: var(--ink);
}
#msform textarea { width: 100% !important; border: 1px solid #cbd5e1 !important; border-radius: 8px !important; min-height: 70px; font-weight: normal; }
#msform input[type=text]:focus, #msform select:focus, #msform textarea:focus { border-color: var(--primary) !important; }
#msform select#vDay, #msform select#vMonth, #msform select#vYear { width: 31% !important; display: inline-block; }
#msform input[type=radio], #msform input[type=checkbox] { width: auto !important; height: auto; margin: 0 4px 0 8px; }
#msform .action-button { padding: 10px 28px !important; min-width: 110px; font-size: 10.5pt !important; border-radius: 8px !important; margin: 14px 6px 4px !important; }
#msform footer { width: 100% !important; margin-top: 24px; border-radius: var(--radius); }
@media only screen and (max-width: 750px) {
    #msform fieldset { padding: 16px 12px !important; }
    #msform .myform, #msform .myform tbody, #msform .myform tr, #msform .myform td { display: block; width: 100% !important; }
}

/* ---------- RegStudents: step indicator ---------- */
#progressbar { display: flex; counter-reset: step; overflow: visible !important; margin: 0 auto 26px !important; }
#progressbar li {
    flex: 1 1 0; float: none !important; width: auto !important; text-align: center !important;
    position: relative; list-style: none; font-weight: 600 !important; text-transform: none !important;
    font-size: 10.5pt !important; letter-spacing: 0; color: var(--muted) !important; padding: 0 6px;
}
#progressbar li:before {
    content: counter(step); counter-increment: step;
    display: flex !important; align-items: center; justify-content: center;
    width: 38px !important; height: 38px; line-height: 1 !important; margin: 0 auto 8px !important;
    border-radius: 50% !important; font-size: 11pt !important; font-weight: 700;
    background: #fff !important; color: var(--muted) !important; border: 2px solid #cbd5e1;
    position: relative; z-index: 2;
}
#progressbar li:after {
    content: '' !important; position: absolute; left: -50% !important; top: 18px !important;
    width: 100% !important; height: 3px !important; background: #cbd5e1 !important; z-index: 1 !important;
}
#progressbar li:first-child:after { content: none !important; }
#progressbar li.active { color: var(--navy) !important; }
#progressbar li.active:before { background: var(--primary) !important; border-color: var(--primary); color: #fff !important; box-shadow: 0 0 0 5px rgba(37,99,235,.15); }
#progressbar li.active:after { background: var(--primary) !important; }
