:root {
    --navy: #0b1f3a;
    --navy-dark: #071527;
    --navy-light: #16305a;
    --gold: #c9a227;
    --gold-light: #e0c565;
    --bg: #f4f6fa;
    --card: #ffffff;
    --text: #1c2733;
    --muted: #64748b;
    --border: #e2e6ed;
    --error: #c0392b;
    --success: #1e7e34;
    --radius: 10px;
    --shadow: 0 4px 18px rgba(11, 31, 58, 0.08);
    --font-head: 'Sora', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    font-family: var(--font-body);
    color: var(--text);
}

.page-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

/* ---------- Header / Letterhead ---------- */
.site-header {
    background: white;
    color: #fff;
    padding: 22px 28px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-header .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: var(--gold);
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
}

.site-header h1 {
    font-family: var(--font-head);
    font-size: 18px;
    margin: 0;
    letter-spacing: 0.3px;
	color: black;
}

.site-header p {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: black;
}

.batch-tag {
   background: rgb(250 104 19);
    border: 1px solid #fa6813;
    color: white;;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Progress Steps ---------- */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.step .dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.25s ease;
}

.step.active .dot {
      background: #013194;
    border-color: #013194;
    color: #fff;
}

.step.done .dot {
    background: #fa6813;
    border-color: #fa6813;
    color: var(--navy-dark);
}

.step span.label {
    font-size: 11px;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 600;
    max-width: 80px;
}

.step.active span.label { color: #013194; }

/* ---------- Card / Form ---------- */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    border: 1px solid var(--border);
}

.form-section { display: none; }
.form-section.active { display: block; animation: fadeIn 0.3s ease; }

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

.section-title {
    font-family: var(--font-head);
    font-size: 17px;
   color: #013194;
    margin: 0 0 4px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fa6813;
    display: inline-block;
}

.section-sub {
    color: var(--muted);
    font-size: 13px;
    margin: 6px 0 22px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.grid .full { grid-column: 1 / -1; }

@media (max-width: 640px) {
    .grid { grid-template-columns: 1fr; }
    .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }

label {
    font-size: 13px;
    font-weight: 600;
    color: #013194;
}

label .opt { color: var(--muted); font-weight: 400; font-size: 11.5px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    padding: 11px 13px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text);
    background: #fbfcfe;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea { resize: vertical; min-height: 70px; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.1);
    background: #fff;
}

input:invalid:not(:placeholder-shown) { border-color: var(--error); }

.error-msg {
    font-size: 12px;
    color: var(--error);
    min-height: 14px;
}

.radio-group, .checkbox-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
}

.declaration-box {
    background: #f8f9fc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.checkbox-row label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn-row {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 12px;
}

.btn {
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.btn-primary {
    background: #013194;
    color: #fff;
}
.btn-primary:hover { background: var(--navy-light); }

.btn-gold {
    background: var(--gold);
    color: var(--navy-dark);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--muted);
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Success Page ---------- */
.success-card {
    text-align: center;
    padding: 48px 32px;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f5ea;
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 30px;
}

.app-id-box {
    display: inline-block;
    background: var(--navy);
    color: var(--gold-light);
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 14px 26px;
    border-radius: 8px;
    margin: 18px 0;
}

/* ---------- Admin ---------- */
.admin-shell { max-width: 1180px; margin: 0 auto; padding: 24px 16px 60px; }

.login-card {
    max-width: 380px;
    margin: 80px auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px;
    border: 1px solid var(--border);
}

.login-card h2 {
    font-family: var(--font-head);
    color: var(--navy);
    margin-top: 0;
}

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.alert-error { background: #fdecea; color: var(--error); border: 1px solid #f3c1bb; }
.alert-success { background: #e8f5ea; color: var(--success); border: 1px solid #b9e0c1; }

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #013194;
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.admin-topbar h1 { font-family: var(--font-head); font-size: 16px; margin: 0; }

.admin-topbar a { color: #f8894e; text-decoration: none; font-size: 13px; font-weight: 600; }

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.toolbar input[type="text"] {
    flex: 1;
    min-width: 220px;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 13.5px;
}

table.data-table th {
    background: #013194;
    color: #fff;
    text-align: left;
    padding: 12px 14px;
    font-weight: 600;
}

table.data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
}

table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #f8f9fc; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.badge-fresher { background: #eaf1ff; color: #2554c7; }
.badge-exp { background: #fff3e0; color: #b5690a; }

.pill-link {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    font-size: 12.5px;
}
.pill-link:hover { text-decoration: underline; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-grid .full { grid-column: 1 / -1; }

.detail-item .k { font-size: 11.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: 0.4px; }
.detail-item .v { font-size: 14px; color: var(--text); margin-top: 2px; }

.section-heading {
    font-family: var(--font-head);
    color: var(--navy);
    font-size: 14px;
    margin: 22px 0 4px;
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}
