/* ========================================
   CM Punjab Asaan Karobar Card — Stylesheet
   Government Mint/Green Theme, Fully Responsive
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-primary: #116936;
    --green-dark: #0b4b25;
    --green-light: #2e7d32;
    --green-mint: #e8f5e9;
    --green-mint-border: #a5d6a7;
    --green-gradient: linear-gradient(135deg, #2e7d32, #116936);
    --green-gradient-h: linear-gradient(90deg, #1e7e34, #116936);
    --gold: #ef6c00;
    --gold-light: #ffa726;
    --warning-bg: #fff3e0;
    --warning-border: #ffe0b2;
    --danger-red: #c62828;
    --danger-bg: #ffebee;
    --white: #ffffff;
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --text-dark: #1e293b;
    --text-mid: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #cbd5e1;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.35;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.urdu-text {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    direction: rtl;
    text-align: right;
    line-height: 2.2;
}

/* ---------- Header ---------- */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-crest {
    height: 52px;
    width: auto;
}

.logo-divider {
    width: 1.5px;
    height: 36px;
    background: var(--border);
}

.logo-program-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--green-primary);
    letter-spacing: 0.5px;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.logo-program-title span {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-desktop li a {
    text-decoration: none;
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-desktop li a:hover {
    background: var(--green-mint);
    color: var(--green-primary);
}

.nav-desktop li a.active {
    background: var(--green-primary);
    color: var(--white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header-login {
    background: var(--gold);
    color: var(--white);
    border: none;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(239, 108, 0, 0.2);
}

.btn-header-login:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-light);
    background: var(--white);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 77px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
    animation: slideDown 0.25s ease-out;
    border-top: 1px solid var(--border-light);
}

.mobile-nav.show {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav ul li a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-nav ul li a:hover {
    background: var(--green-mint);
    color: var(--green-primary);
}

.mobile-nav ul li a.active {
    background: var(--green-primary);
    color: var(--white);
}

/* ---------- Main Container ---------- */
.main-content {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    padding: 14px 16px;
    flex: 1;
}

/* ---------- Hero Section ---------- */
.hero-card {
    background: linear-gradient(135deg, #ffffff 60%, #f1f9f3 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
}

.hero-text {
    flex: 1.2;
}

.hero-subtitle {
    font-size: 11px;
    font-weight: 800;
    color: var(--green-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-subtitle::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--green-primary);
}

.hero-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--green-primary);
    line-height: 1.15;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.hero-title span {
    color: var(--gold);
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 0px;
}

.hero-message-box {
    background: var(--green-mint);
    border-left: 3px solid var(--green-primary);
    padding: 10px 14px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 14px;
}

.hero-message-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 3px;
}

.hero-message-body {
    font-size: 11.5px;
    color: var(--text-mid);
    line-height: 1.4;
}

/* CM Clean Circle Portrait & Card Visual */
.hero-visuals {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cm-photo-circle-container {
    width: 135px;
    height: 135px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--green-primary);
    box-shadow: 0 6px 18px rgba(17,105,54,0.25);
    background: #ffffff;
}

.cm-portrait-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 16%;
    transform: scale(1.35);
}

.card-visual-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.official-card-img {
    max-width: 270px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: transform 0.25s ease;
}

.official-card-img:hover {
    transform: scale(1.03);
}

.hero-message-body {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
    font-style: italic;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-register {
    background: var(--green-gradient);
    color: var(--white);
    border: none;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(17, 105, 54, 0.3);
}

.btn-hero-register:hover {
    box-shadow: 0 6px 16px rgba(17, 105, 54, 0.4);
    transform: translateY(-2px);
}

.btn-hero-login {
    background: transparent;
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-login:hover {
    background: var(--green-mint);
    transform: translateY(-1px);
}

.hero-visuals {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.cm-photo-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--green-primary), var(--gold));
    box-shadow: var(--shadow-md);
}

.cm-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}

.cm-label {
    background: var(--green-dark);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.5px;
}

/* Card Mockup Graphic styling */
.card-mockup {
    width: 280px;
    height: 170px;
    background: linear-gradient(135deg, #116936 0%, #083b1e 100%);
    border-radius: 12px;
    padding: 16px;
    color: var(--white);
    position: relative;
    box-shadow: 0 10px 25px rgba(11, 75, 37, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: var(--transition);
}

.card-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.card-mockup::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.card-logo-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.card-logo-gov {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
}

.card-logo-bop {
    height: 16px;
    width: auto;
    filter: brightness(0) invert(1);
}

.card-chip {
    width: 32px;
    height: 24px;
    background: linear-gradient(135deg, #f0c05a, #d4a84a);
    border-radius: 4px;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.4);
}

.card-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-program {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.card-number {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    position: absolute;
    bottom: 16px;
    right: 16px;
    letter-spacing: 1px;
}

/* ---------- Notification Alert Banner ---------- */
.notice-alert-banner {
    background: var(--danger-bg);
    border: 1px solid rgba(198, 40, 40, 0.2);
    border-left: 4px solid var(--danger-red);
    border-radius: var(--radius);
    padding: 6px 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.notice-icon {
    font-size: 14px;
    color: var(--danger-red);
    line-height: 1;
}

.notice-text {
    flex: 1;
}

.notice-text-en {
    font-size: 10.5px;
    font-weight: 700;
    color: #851c1c;
    margin-bottom: 2px;
    line-height: 1.3;
}

.notice-text-ur {
    font-size: 11px;
    font-weight: 700;
    color: #851c1c;
    margin-top: 2px;
    line-height: 1.3;
}

/* ---------- Stats Cards Grid ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: var(--radius);
    background: var(--green-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-primary);
    font-size: 24px;
}

.stat-card.accent .stat-icon-wrapper {
    background: var(--warning-bg);
    color: var(--gold);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-label-ur {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

/* ---------- Main Form Card / Panels ---------- */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 12px;
}

.form-header-bar {
    background: var(--green-gradient-h);
    padding: 8px 12px;
    text-align: center;
    color: var(--white);
}

.form-header-bar h1 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 1px;
}

.form-header-bar p {
    font-size: 10px;
    opacity: 0.85;
}

.info-alert-box {
    background: var(--green-mint);
    border: 1px solid var(--green-mint-border);
    padding: 8px 12px;
    margin: 8px 12px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.info-alert-text-en {
    flex: 1;
    font-size: 11px;
    color: var(--green-dark);
    line-height: 1.4;
}

.info-alert-text-ur {
    flex: 1;
    font-size: 11px;
    color: var(--green-dark);
    line-height: 1.6;
}

.info-alert-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-alert-logo img {
    height: 32px;
    width: auto;
}

/* Action Buttons Row */
.form-buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 12px 10px;
    border-bottom: 1px solid var(--border-light);
}

.btn-form-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-form-action.primary {
    background: var(--green-primary);
    color: var(--white);
}

.btn-form-action.primary:hover {
    background: var(--green-dark);
}

.btn-form-action.warning {
    background: var(--gold);
    color: var(--white);
}

.btn-form-action.warning:hover {
    background: var(--gold-light);
}

.btn-form-action.secondary {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--border);
}

.btn-form-action.secondary:hover {
    background: var(--border-light);
}

/* ---------- Form Fields Styling ---------- */
.form-body-section {
    padding: 10px 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px 14px;
    margin-bottom: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-label-ur {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-weight: 400;
    font-size: 10.5px;
    color: var(--text-light);
    direction: rtl;
}

.required-asterisk {
    color: var(--danger-red);
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(17, 105, 54, 0.12);
}

.form-input.error {
    border-color: var(--danger-red);
    background-color: var(--danger-bg);
}

.form-input::placeholder {
    color: var(--text-muted);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-input-phone-group {
    display: flex;
    gap: 8px;
}

.phone-select-code {
    width: 90px;
    flex-shrink: 0;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.field-error-message {
    color: var(--danger-red);
    font-size: 11.5px;
    font-weight: 600;
    margin-top: 4px;
    display: none;
}

.field-error-message.show {
    display: block;
}

.form-submit-row {
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border-light);
    padding: 24px;
    background: #fafafa;
}

.btn-form-submit {
    background: var(--green-primary);
    color: var(--white);
    border: none;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 64px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(17, 105, 54, 0.15);
}

.btn-form-submit:hover {
    background: var(--green-dark);
    box-shadow: 0 6px 12px rgba(17, 105, 54, 0.25);
    transform: translateY(-1px);
}

/* ---------- Application Wizard Multi-step Styling ---------- */
.wizard-steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    border-bottom: 1px solid var(--border-light);
    background: #f8fafc;
    gap: 10px;
}

.wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.wizard-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 3px;
    background: var(--border-light);
    z-index: 1;
}

.wizard-step-item.active:not(:last-child)::after,
.wizard-step-item.completed:not(:last-child)::after {
    background: var(--green-primary);
}

.wizard-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    z-index: 2;
    transition: var(--transition);
}

.wizard-step-item.active .wizard-step-circle {
    border-color: var(--green-primary);
    background: var(--green-primary);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(17, 105, 54, 0.15);
}

.wizard-step-item.completed .wizard-step-circle {
    border-color: var(--green-primary);
    background: var(--green-primary);
    color: var(--white);
}

.wizard-step-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-light);
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
}

.wizard-step-item.active .wizard-step-label {
    color: var(--green-primary);
}

.wizard-step-label-ur {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Noto Nastaliq Urdu', serif;
    margin-top: 2px;
    text-align: center;
}

.wizard-step-panel {
    display: none;
}

.wizard-step-panel.active {
    display: block;
}

.wizard-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding: 20px 24px;
    background: #fafafa;
}

.btn-wizard-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-wizard-nav.prev {
    background: var(--white);
    color: var(--text-dark);
    border-color: var(--border);
}

.btn-wizard-nav.prev:hover {
    background: var(--border-light);
}

.btn-wizard-nav.next {
    background: var(--green-primary);
    color: var(--white);
}

.btn-wizard-nav.next:hover {
    background: var(--green-dark);
}

.btn-wizard-nav.submit {
    background: var(--green-gradient);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(17, 105, 54, 0.15);
}

.btn-wizard-nav.submit:hover {
    box-shadow: 0 6px 12px rgba(17, 105, 54, 0.25);
    transform: translateY(-1px);
}

/* Document Upload Table */
.upload-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 20px;
}

.upload-table th,
.upload-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.upload-table th {
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
}

.upload-table td {
    font-size: 13.5px;
}

.upload-input-file {
    font-size: 12.5px;
}

/* Checkbox Declaration styling */
.declaration-wrapper {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-top: 20px;
}

.declaration-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 600;
}

.declaration-checkbox-label input {
    margin-top: 3px;
}

/* ---------- FAQ Section ---------- */
.faq-section {
    margin-top: 32px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--green-primary);
    text-align: center;
    margin-bottom: 24px;
}

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

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 18px 24px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--green-mint-border);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 18px;
    color: var(--green-primary);
    font-weight: 700;
    transition: var(--transition);
}

.faq-item.open .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
    margin-top: 10px;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ---------- Partners Banner ---------- */
.partners-banner {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 32px;
    text-align: center;
}

.partners-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.partners-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-logo-img {
    height: 48px;
    width: auto;
    opacity: 0.85;
    transition: var(--transition);
}

.partner-logo-img:hover {
    opacity: 1;
}

/* Support Help Card */
.support-helpline-card {
    background: var(--green-mint);
    border: 1px solid var(--green-mint-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.support-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--green-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--green-primary);
    letter-spacing: 0.5px;
}

/* ---------- Modals System ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-light);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    background: var(--green-gradient-h);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fafafa;
    flex-shrink: 0;
}

.btn-modal-action {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-modal-action.primary {
    background: var(--green-primary);
    color: var(--white);
}

.btn-modal-action.primary:hover {
    background: var(--green-dark);
}

.btn-modal-action.secondary {
    background: var(--white);
    color: var(--text-dark);
    border-color: var(--border);
}

.btn-modal-action.secondary:hover {
    background: var(--border-light);
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    width: calc(100% - 48px);
}

.toast {
    background: var(--white);
    color: var(--text-dark);
    border-radius: var(--radius);
    padding: 14px 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 600;
    border-left: 5px solid var(--green-primary);
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.toast.success { border-color: var(--green-primary); }
.toast.error { border-color: var(--danger-red); }
.toast.info { border-color: var(--gold); }

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    padding: 2px;
}

/* Loading Spinner Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 4000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border-light);
    border-top-color: var(--green-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--green-primary);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--text-dark);
    color: var(--white);
    border-top: 4px solid var(--green-primary);
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

.footer a {
    color: var(--green-mint-border);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVENESS (MOBILE PRIORITY LAYOUTS)
   ======================================== */

@media (max-width: 1024px) {
    .hero-inner {
        padding: 30px;
        gap: 30px;
    }
    .hero-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    /* Navbar Hamburger mobile layout */
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-inner {
        flex-direction: column-reverse;
        padding: 10px 12px;
        gap: 8px;
        text-align: center;
    }
    
    .hero-subtitle {
        justify-content: center;
        font-size: 9px;
        margin-bottom: 2px;
    }
    
    .hero-subtitle::before {
        display: none;
    }
    
    .hero-message-box {
        border-left: none;
        border-top: 3px solid var(--green-primary);
        border-radius: 0 0 var(--radius) var(--radius);
        text-align: left;
        padding: 6px 8px !important;
        margin-bottom: 6px !important;
    }
    
    .hero-actions {
        justify-content: center;
        gap: 6px !important;
    }
    
    .hero-visuals {
        gap: 4px !important;
    }
    
    .hero-cm-circle {
        width: 70px !important;
        height: 70px !important;
        border-width: 2px !important;
    }
    
    .official-card-img {
        max-width: 180px !important;
    }
    
    .cm-label {
        font-size: 8px !important;
        padding: 1px 6px !important;
        margin-top: 2px !important;
    }
    
    .card-mockup {
        transform: none !important;
        margin: 0 auto;
    }

    .info-alert-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        padding: 8px 10px;
        margin: 6px 10px;
    }

    .info-alert-text-ur {
        text-align: center;
    }

    .wizard-steps-container {
        padding: 10px;
    }

    .wizard-step-label {
        font-size: 9px;
    }

    .wizard-step-label-ur {
        display: none; /* Hide secondary Urdu label on mobile step bar for spacing */
    }

    .wizard-step-item:not(:last-child)::after {
        top: 14px;
    }
    
/* ===== COMPACT GOVT HIGHLIGHTS BAR ===== */
.govt-highlights-bar {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--green-primary);
    border-radius: var(--radius);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.hl-icon {
    font-size: 16px;
    background: var(--green-mint);
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-text {
    display: flex;
    flex-direction: column;
}

.hl-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--green-dark);
    line-height: 1.1;
}

.hl-sub {
    font-size: 9.5px;
    color: var(--text-light);
    font-weight: 600;
}

.hl-divider {
    width: 1px;
    height: 24px;
    background: var(--border-light);
}

/* ===== PARTNER LOGOS ===== */
.partners-banner {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-top: 14px;
    margin-bottom: 12px;
    text-align: center;
}

.partners-title {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.partners-logos-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.partner-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.partner-img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.partner-logo-box span {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-mid);
}

@media (max-width: 480px) {
    .govt-highlights-bar {
        padding: 6px 8px;
    }
    .hl-title { font-size: 10.5px; }
    .hl-sub { font-size: 8.5px; }
    .hl-icon { font-size: 13px; padding: 4px; }
    .partner-img { height: 32px; width: 32px; }
}
    
    .wizard-step-circle {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .header-inner {
        padding: 6px 10px;
    }

    .logo-crest {
        height: 36px;
    }

    .logo-program-title {
        font-size: 12px !important;
    }

    .btn-header-login {
        padding: 4px 10px;
        font-size: 11px;
    }

    .main-content {
        padding: 6px 8px;
    }

    .hero-card {
        border-radius: var(--radius);
        margin-bottom: 6px !important;
    }

    .hero-inner {
        padding: 8px 10px;
        gap: 6px;
    }

    .hero-title {
        font-size: 15px !important;
        margin-bottom: 4px !important;
    }
    
    .hero-title span {
        font-size: 9.5px !important;
    }

    .card-mockup {
        width: 240px;
        height: 145px;
        padding: 12px;
    }

    .card-logo-gov {
        height: 18px;
    }

    .card-chip {
        width: 24px;
        height: 18px;
        margin-bottom: 8px;
    }

    .card-name {
        font-size: 12px;
    }

    .btn-hero-register,
    .btn-hero-login {
        width: 100%;
        justify-content: center;
    }

    .form-buttons-row {
        flex-direction: column;
        width: 100%;
        padding: 0 10px 8px;
    }

    .btn-form-action {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .form-body-section {
        padding: 16px;
    }

    .wizard-controls-row {
        flex-direction: column-reverse;
        gap: 12px;
        padding: 16px;
    }

    .btn-wizard-nav {
        width: 100%;
        justify-content: center;
    }

    .toast-container {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
    }
}
