/* ==========================================================================
   Online Admission – Institutional Theme (v2)
   Navy + crimson, clean white surfaces. Loaded after weaver.css/master.css.
   ========================================================================== */

:root {
    --navy: #14325c;
    --navy-700: #0f2745;
    --navy-500: #1f4a82;
    --navy-50: #eef3fa;
    --crimson: #b3202a;
    --crimson-700: #8f1a22;
    --gold: #f2c14e;
    --ink: #1b2430;
    --text: #2b3645;
    --muted: #6b7788;
    --line: #dde3ec;
    --bg: #f3f5f9;
    --card: #fff;
    --radius: 8px;
    --shadow-sm: 0 1px 2px rgba(20, 50, 92, .06);
    --shadow: 0 6px 24px -10px rgba(20, 50, 92, .25);
    --font: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
html { background: var(--bg); overflow-x: hidden; }
html body, html body *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not(.glyphicon) { font-family: var(--font); }
html body {
    background: var(--bg) !important;
    background-image: none !important;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body > form#form2 { min-height: 100vh; display: flex; flex-direction: column; }
body > form#form2 > footer { margin-top: auto; }
a { color: var(--navy-500); text-decoration: none; }
a:hover { color: var(--crimson); }
img { max-width: 100%; }

/* ---------- Header: banner, session strip, nav ---------- */
header, header.site-header {
    width: 100%;
    max-width: 100%;
    background: #7eb3f7 !important;   /* same blue as the banner artwork, so edges blend */
    border: 0;
}
.site-header .brand { max-width: 1200px; margin: 0 auto; padding: 0; }
.site-header .brand img.headerImg { display: block; width: 100%; height: auto; border-radius: 0; }
.site-header .session-band, .mainlable {
    background: var(--navy-700);
    color: var(--gold) !important;
    text-align: center;
    letter-spacing: .14em;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    padding: 9px 16px;
    width: 100%;
    border-radius: 0;
    margin: 0;
}
.divRes { max-width: 100%; }

nav {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(20, 50, 92, .06);
    margin-bottom: 26px;
    position: sticky;
    top: 0;
    z-index: 50;
}
nav > div { padding: 0 16px; }
.toggleMenu { background: transparent !important; color: var(--navy) !important; padding: 12px 4px !important; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.nav { padding: 0 !important; text-align: center; }
.nav > li { float: none !important; display: inline-block; }
.nav a {
    padding: 15px 20px !important;
    color: var(--navy) !important;
    font-size: 14px !important;
    font-weight: 600;
    text-shadow: none !important;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s, background .15s;
}
.nav > li > a { display: inline-block !important; }
.nav a:hover { background: var(--navy-50) !important; color: var(--navy) !important; border-bottom-color: var(--navy); }
.nav li li a { background: #fff !important; border-bottom: 1px solid var(--line); }

/* "Register Online" call-to-action: solid crimson, no blinking */
.blink {
    -webkit-animation: none !important;
    animation: none !important;
    background: var(--crimson);
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none !important;
    opacity: 1;
}
.nav a:hover .blink { background: var(--crimson-700); }

/* ---------- Footer ---------- */
footer {
    position: static !important;
    height: auto !important;
    width: 100% !important;
    background: var(--navy-700) !important;
    border-top: 4px solid var(--crimson);
    padding: 16px !important;
    margin-top: 40px;
    text-align: center;
}
footer p { font-size: 13px !important; color: #aebbd0 !important; text-align: center; margin: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--navy); font-weight: 700 !important; line-height: 1.25; }
.title { color: var(--navy) !important; font-size: 20px !important; font-weight: 700 !important; }
.welcometext { color: var(--text); font-size: 15px; }
.welcometext h1, .panelbox h2 {
    color: var(--navy) !important;
    font-size: 26px !important;
    text-align: center;
    padding-bottom: 8px;
    position: relative;
}
.panelbox h2:after { content: ""; display: block; width: 56px; height: 3px; background: var(--crimson); margin: 10px auto 0; }
.panelbox { padding: 26px 16px; }

/* ---------- Form controls ---------- */
input[type=text], input[type=password], input[type=email], input[type=number], input[type=tel],
input[type=date], input:not([type]), select, textarea, .textform, .dropSelect, .form-control, .input-text {
    border: 1px solid #c3ccd9 !important;
    border-radius: 6px !important;
    background-color: #fff;
    color: var(--ink);
    padding: 8px 12px !important;
    height: auto !important;
    min-height: 42px;
    line-height: 1.4 !important;
    font-size: 15px !important;
    outline: none !important;
    box-shadow: inset 0 1px 2px rgba(20, 50, 92, .05);
    transition: border-color .15s, box-shadow .15s !important;
    max-width: 100%;
}
select, select.textform, select.dropSelect { padding-right: 30px !important; text-overflow: ellipsis; }
textarea { min-height: 84px; }
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus,
input[type=tel]:focus, input[type=date]:focus, select:focus, textarea:focus, .textform:focus,
.dropSelect:focus, .form-control:focus, .input-text:focus {
    border-color: var(--navy-500) !important;
    box-shadow: 0 0 0 3px rgba(31, 74, 130, .18) !important;
}
input:disabled, select:disabled, textarea:disabled { background: #eef1f6; color: var(--muted); cursor: not-allowed; }
input::placeholder, textarea::placeholder { color: #9aa6b6; }
input[type=checkbox], input[type=radio] { accent-color: var(--navy-500); width: 17px; height: 17px; min-height: 0; vertical-align: middle; box-shadow: none; }
label { color: var(--navy); font-size: 13px; font-weight: 600; }

/* ---------- Buttons ---------- */
input[type=button], input[type=submit], button, .btn, .button, .mybutton, .example_b, .example_c, .action-button, .login {
    display: inline-block;
    background: var(--navy) !important;
    background-image: none !important;
    color: #fff !important;
    border: 0 none !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase;
    text-shadow: none !important;
    padding: 11px 26px !important;
    height: auto !important;
    min-height: 42px;
    cursor: pointer;
    transition: background .15s !important;
}
input[type=button]:hover, input[type=submit]:hover, button:hover, .btn:hover, .button:hover, .mybutton:hover,
.example_b:hover, .example_c:hover, .action-button:hover, .action-button:focus {
    background: var(--crimson) !important;
    color: #fff !important;
    letter-spacing: .06em !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}
#msform .action-button { width: auto !important; min-width: 120px; margin: 8px 4px !important; }
#msform .action-button.previous, .btn-previous { background: #7a8699 !important; }
#msform .action-button.previous:hover { background: #5d6a7d !important; }
.btn { width: auto !important; }

/* ---------- Tables ---------- */
table { border-collapse: collapse; }
td, th { font-size: 14px; }
.mytable, #tbdata {
    width: 100%; max-width: 100%;
    background: #fff;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-sm);
}
.mytable th, #tbdata th, .grid th {
    background: var(--navy) !important;
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 12px;
    padding: 12px 10px !important;
    border-radius: 0 !important;
}
.mytable td, #tbdata td { padding: 10px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; }
#tbdata tr:nth-child(even) { background: #f7f9fc !important; }
#tbdata tr:hover { background: var(--navy-50) !important; }

/* Registration form tables */
.myform {
    width: 100% !important;
    max-width: 880px;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.myform th, .myform h1 {
    background: var(--navy-50) !important;
    color: var(--navy) !important;
    font-size: 14px !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 11px 14px !important;
    margin-top: 10px;
    border: 0 !important;
    border-left: 4px solid var(--crimson) !important;
    border-radius: 0 !important;
    text-align: left !important;
}
.myform td { color: var(--text); }
.myform label { color: var(--navy) !important; font-size: 13px !important; padding-top: 6px; }
.myform td, .myform th { padding: 6px 14px; }

/* ---------- Login ---------- */
.logindivform {
    background: #fff !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    border: 1px solid var(--line);
    border-top: 4px solid var(--crimson);
    color: var(--text) !important;
    padding: 26px 24px !important;
}
.form-style-1 td { padding-top: 14px !important; }
.form-style-1 input[type=text], .form-style-1 input[type=password] { width: 100%; }
.example_c { width: 100% !important; }

/* ---------- Home: admission status card ---------- */
.div {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--crimson) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    width: 100% !important;
    max-width: 620px;
    height: auto !important;
    padding: 14px 12px 4px;
    margin: 24px auto !important;
}
.tab1 {
    width: 100% !important;
    max-width: 520px;
    height: auto !important;
    margin: 12px auto !important;
    padding: 22px 22px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--ink) !important;
}
.tab1 td { padding: 8px 4px; color: var(--ink) !important; }
.tab1 td[style*="text-align:center"] { font-size: 17px; font-weight: 700 !important; color: var(--navy) !important; padding-bottom: 14px; }
#txtMobNo { width: 100% !important; }

/* ---------- Registration wizard ---------- */
#msform { width: calc(100% - 32px) !important; max-width: 960px; margin: 6px auto 24px !important; }
#msform fieldset {
    width: 100% !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    border: 1px solid var(--line) !important;
    border-top: 4px solid var(--navy) !important;
    padding: 18px !important;
    font-weight: normal !important;
}
/* avoid a card inside a card */
#msform fieldset .myform { max-width: 100%; border: 0 !important; box-shadow: none; background: transparent !important; overflow: visible; }
#progressbar { margin: 0 auto 26px !important; padding: 0; max-width: 720px; }
#progressbar li { color: var(--muted) !important; font-size: 11px !important; letter-spacing: .06em; font-weight: 700 !important; }
#progressbar li:before { width: 34px !important; line-height: 34px !important; background: #dde3ec !important; color: var(--muted) !important; font-weight: 700; margin-bottom: 8px !important; }
#progressbar li:after { background: #dde3ec !important; height: 3px !important; top: 15px !important; }
#progressbar li.active { color: var(--navy) !important; }
#progressbar li.active:before, #progressbar li.active:after { background: var(--navy) !important; color: #fff !important; }
.fs-title { color: var(--navy) !important; }

/* page title above the stepper */
.reg-title { text-align: center; margin-bottom: 22px; }
.reg-title h2 { font-size: 26px; color: var(--navy); margin: 0; }
.reg-title h2:after { content: ""; display: block; width: 56px; height: 3px; background: var(--crimson); margin: 10px auto 0; }
.reg-title p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

/* fixed-width columns (42% / 7% spacer / 29%) -> responsive grid */
#msform .row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0 28px;
    margin: 0 !important;
}
#msform .row > div { width: auto !important; min-width: 0; padding: 0 !important; text-align: left; }
#msform .row > div:not([class]) { display: none; }          /* old spacer columns */
#msform .row .row { margin-top: 4px !important; }
#msform .myform label { display: block; margin: 12px 0 2px; }
#msform .myform .textform, #msform .myform input[type=text], #msform .myform textarea { width: 100% !important; margin: 4px 0 6px; }
#msform .myform textarea { min-height: 84px; resize: vertical; }
#msform .myform h1 { margin: 6px 0 4px; }
#msform .myform td { height: auto; }
#vReason td, #vReason label { font-size: 14px; }
#vReason label { display: inline; margin: 0 0 0 6px; font-weight: 500; color: var(--text); }
#vReason td { padding: 7px 4px !important; }
#msform fieldset > .myform > tbody > tr:last-child > td { text-align: right !important; padding: 12px 6px 4px !important; }
.row { margin-right: 0 !important; }
.popupRegister, #boxshadow16 {
    border-radius: var(--radius) !important;
    border-top: 5px solid var(--crimson) !important;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5) !important;
}
.popupRegister h2 { color: var(--navy) !important; }
.hider { background: rgba(15, 39, 69, .7) !important; }
.forms-sign-up2 { background: var(--bg) !important; border-radius: var(--radius); }
.grid { background: #fff8e6 !important; border: 1px solid #f0dca0 !important; border-radius: 6px; color: var(--ink) !important; font-size: 13px !important; }
.grid th { text-align: left !important; }
.grid th h3, .grid th h3[style] { color: #fff !important; float: none !important; margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
#instruct li, #instruct1 li { color: var(--text) !important; font-size: 14px !important; }

/* ---------- Misc ---------- */
.progress { background: #dde3ec; border-radius: 999px; overflow: hidden; }
.progress-bar { background: var(--navy); }
.imgWrap img { border-radius: 6px; box-shadow: var(--shadow-sm); }

@media print {
    header, nav, footer { display: none !important; }
    body { background: #fff !important; }
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 767px) {
    .site-header .session-band, .mainlable { font-size: 11px !important; letter-spacing: .08em; padding: 8px 10px !important; }
    nav { margin-bottom: 16px; }
    .nav { text-align: left; }
    .nav > li { display: block; }
    .nav > li > a { display: block !important; border-bottom: 1px solid var(--line); }
    .panelbox { padding: 16px 8px; }
    .welcometext h1, .panelbox h2 { font-size: 21px !important; }
    #msform fieldset { padding: 10px !important; }
    #progressbar li { font-size: 9px !important; }
    .tab1 { padding: 14px 8px !important; }
    .popupRegister, #boxshadow16 { width: 94% !important; left: 3% !important; }
}
