/* ===================================================================
   UP RERA Member Application Portal — Design System v3
   Authority-grade government form: trustworthy, clean, bilingual-first
   Palette: Deep Navy + Warm White + Saffron accent (tricolour nod)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
    /* Brand */
    --navy-950:  #0a1628;
    --navy-900:  #0f2144;
    --navy-800:  #173272;
    --navy-700:  #1e4094;
    --navy-600:  #2554b8;
    --navy-500:  #3b6fd4;
    --navy-200:  #a8c0f0;
    --navy-100:  #d4e2fb;
    --navy-50:   #eef3fd;

    --saffron-600: #c45c00;
    --saffron-500: #e06e00;
    --saffron-400: #f08a2a;
    --saffron-100: #fdf0e0;
    --saffron-50:  #fff8f0;

    --green-700:  #166534;
    --green-600:  #16a34a;
    --green-100:  #dcfce7;

    --rose-600:  #dc2626;
    --rose-100:  #fee2e2;

    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;

    /* Surface */
    --bg-page:   #eef2f7;
    --bg-card:   #ffffff;
    --bg-field:  #fafbfd;

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

    /* Radius */
    --r-sm:  6px;
    --r-md:  10px;
    --r-lg:  14px;
    --r-xl:  20px;

    /* Shadow */
    --shadow-card: 0 1px 3px rgba(15,33,68,0.06), 0 4px 16px rgba(15,33,68,0.04);
    --shadow-lift: 0 4px 24px rgba(15,33,68,0.10), 0 1px 4px rgba(15,33,68,0.06);
    --shadow-field: 0 1px 2px rgba(15,33,68,0.04);

    /* Transitions */
    --ease: cubic-bezier(.4,0,.2,1);
    --t-fast: 150ms;
    --t-mid:  250ms;

    /* Section accent — single color system, differentiated by strip */
    --sec-accent: var(--navy-800);
    --sec-strip:  3px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ──────────────────────────────────────────────────────── */
html { font-size: 15px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: var(--slate-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--navy-200); color: var(--navy-950); }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); color: var(--navy-900); }

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--slate-100); }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-500); }

/* ── Navbar ────────────────────────────────────────────────────── */
.navbar {
    background: var(--navy-950) !important;
    padding: 0;
    border-bottom: 3px solid var(--saffron-500);
    box-shadow: 0 2px 12px rgba(10,22,40,0.35);
    position: sticky;
    top: 0;
    z-index: 200;
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 58px;
}
.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.2px;
    text-decoration: none;
}
.navbar-brand .brand-icon {
    width: 34px;
    height: 34px;
    background: var(--saffron-500);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #fff;
    flex-shrink: 0;
}
.navbar-brand .brand-sep {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    margin: 0 4px;
}
.navbar-brand .brand-sub {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    display: block;
    letter-spacing: 0.3px;
    line-height: 1.2;
}
.navbar-brand .brand-name {
    font-size: 1rem;
    color: #fff;
    display: block;
}
.navbar .nav-actions { display: flex; align-items: center; gap: 10px; }
.navbar .btn-nav-ghost {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.85);
    border-radius: var(--r-sm);
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--t-fast) var(--ease);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.navbar .btn-nav-ghost:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}
.navbar .btn-nav-accent {
    background: var(--saffron-500);
    border: none;
    color: #fff;
    border-radius: var(--r-sm);
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--t-fast) var(--ease);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.navbar .btn-nav-accent:hover { background: var(--saffron-600); color: #fff; }
.navbar .user-chip {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 99px;
    padding: 4px 12px 4px 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
}
.navbar .user-chip-dot {
    width: 22px; height: 22px;
    background: var(--navy-600);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; color: #fff;
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
    background: var(--navy-950) !important;
    border-top: 3px solid var(--saffron-500);
    padding: 1.1rem 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    margin-top: 3rem;
}

/* ── Page Shell ─────────────────────────────────────────────────── */
.container-fluid.py-3 {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
}

/* ── A4 Form Wrapper ────────────────────────────────────────────── */
.a4-form-wrapper {
    max-width: 1240px;
    margin: 0 auto;
}

/* ── Page Header ────────────────────────────────────────────────── */
.page-header {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-card);
    padding: 16px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--navy-800);
    border-radius: var(--r-sm) 0 0 var(--r-sm);
}
.page-header h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--navy-900);
    margin: 0;
    line-height: 1.25;
}
.page-header h4 .sub {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--slate-500);
    display: block;
    margin-top: 3px;
}
.page-header p { color: var(--slate-500); font-size: 0.82rem; margin: 4px 0 0; }

/* ── Unique ID Badge ────────────────────────────────────────────── */
.unique-id-badge {
    background: var(--navy-950);
    color: #fff;
    padding: 8px 18px 8px 10px;
    border-radius: 99px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--saffron-500);
}
.unique-id-badge i {
    width: 26px; height: 26px;
    background: var(--saffron-500);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
}

/* ── Status Badge ───────────────────────────────────────────────── */
.status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 12px; border-radius: 99px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.4px;
    text-transform: uppercase;
}
.status-badge.draft  { background: var(--saffron-100); color: var(--saffron-600); }
.status-badge.submitted { background: var(--green-100);  color: var(--green-700); }

/* ── Info Banner ────────────────────────────────────────────────── */
.alert {
    border-radius: var(--r-md);
    border: 1px solid transparent;
    font-size: 0.85rem;
    padding: 14px 18px;
}
.alert-info {
    background: var(--navy-50);
    border-color: var(--navy-100);
    color: var(--navy-800);
    border-left: 4px solid var(--navy-600);
}
.alert-success {
    background: var(--green-100);
    border-color: #86efac;
    color: var(--green-700);
    border-left: 4px solid var(--green-600);
}
.alert-danger {
    background: var(--rose-100);
    border-color: #fca5a5;
    color: var(--rose-600);
    border-left: 4px solid var(--rose-600);
}
.alert-warning {
    background: var(--saffron-50);
    border-color: #fed7aa;
    color: var(--saffron-600);
    border-left: 4px solid var(--saffron-500);
}

/* ── Submitted Notice ───────────────────────────────────────────── */
.submitted-notice {
    background: var(--green-100);
    border: 1px solid #86efac;
    border-radius: var(--r-md);
    padding: 14px 20px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
    margin-bottom: 20px;
}
.submitted-notice i { color: var(--green-600); font-size: 1.2rem; }

/* ── Section Cards ─────────────────────────────────────────────── */
.section-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow var(--t-mid) var(--ease);
}
.section-card:hover { box-shadow: var(--shadow-lift); }

/* Unified single-color header — all sections same navy, differentiated by number badge */
.section-card .section-header {
    background: var(--navy-900);
    color: #fff;
    padding: 0;
    display: flex;
    align-items: stretch;
    min-height: 52px;
}
.section-card .section-header .sec-num {
    background: var(--saffron-500);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    width: 52px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.section-card .section-header .sec-title {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.1px;
    line-height: 1.3;
}
.section-card .section-header .sec-title i {
    color: var(--navy-200);
    font-size: 0.9rem;
    opacity: 0.8;
}
.section-card .section-header .sec-title .sec-hindi {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.82rem;
}

/* Override old section color classes — all become unified navy */
.section-card .section-header.sec-personal,
.section-card .section-header.sec-education,
.section-card .section-header.sec-specialisation,
.section-card .section-header.sec-occupation,
.section-card .section-header.sec-achievements,
.section-card .section-header.sec-work,
.section-card .section-header.sec-secretary,
.section-card .section-header.sec-lastpost {
    background: var(--navy-900);
}

.section-body { padding: 24px 28px; }

/* ── Form Labels ────────────────────────────────────────────────── */
.form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate-700);
    letter-spacing: 0.2px;
    margin-bottom: 5px;
    line-height: 1.4;
    display: block;
}
.required { color: var(--rose-600); font-weight: 700; }

/* ── Form Controls ─────────────────────────────────────────────── */
.form-control, .form-select {
    background: var(--bg-field);
    border: 1.5px solid var(--slate-300);
    border-radius: var(--r-md);
    padding: 9px 13px;
    font-size: 0.87rem;
    font-family: var(--font-body);
    color: var(--slate-900);
    width: 100%;
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
    box-shadow: var(--shadow-field);
    line-height: 1.5;
}
.form-control:focus, .form-select:focus {
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(59,111,212,0.14), var(--shadow-field);
    outline: none;
    background: #fff;
}
.form-control:hover:not(:focus):not([readonly]):not(:disabled),
.form-select:hover:not(:focus):not(:disabled) {
    border-color: var(--navy-300, #7aa0e8);
}
.form-control[readonly], .form-control:disabled, .form-select:disabled {
    background: var(--slate-100);
    color: var(--slate-500);
    border-color: var(--slate-200);
    cursor: not-allowed;
}
.form-control::placeholder { color: var(--slate-400); font-size: 0.83rem; }
textarea.form-control { resize: vertical; min-height: 70px; }

/* Field group row */
.row.g-3 > * { padding-top: 0; padding-bottom: 0; }
.row.g-3 { row-gap: 16px; }

/* ── Section Divider (between form col and attachment col) ──────── */
.section-divider {
    border-left: 1px solid var(--slate-200);
}
@media (max-width: 991px) {
    .section-divider {
        border-left: none;
        border-top: 1px solid var(--slate-200);
        padding-top: 20px;
        margin-top: 20px;
    }
}

/* ── Attachment Pane (right column) ────────────────────────────── */
.attachment-pane {
    background: var(--slate-50);
    border-radius: var(--r-md);
    border: 1.5px dashed var(--slate-300);
    padding: 16px 18px;
    height: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.attachment-pane:hover {
    border-color: var(--navy-400);
    background: var(--navy-50);
}
.attachment-pane.preview-mode {
    border-style: solid;
    border-color: var(--slate-200);
    background: var(--slate-50);
}

.att-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 4px;
    display: flex; align-items: center; gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.att-title i { color: var(--navy-500); font-size: 0.78rem; }

.label-desc {
    font-size: 0.76rem;
    color: var(--slate-500);
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Upload button inside attachment pane */
.attachment-pane .form-control.form-control-sm {
    font-size: 0.78rem;
    padding: 6px 10px;
    background: #fff;
    border-color: var(--slate-300);
}
.attachment-pane .btn.btn-sm.btn-primary {
    background: var(--navy-800);
    border: none;
    border-radius: var(--r-sm);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 7px 12px;
    letter-spacing: 0.2px;
    color: #fff;
    transition: background var(--t-fast) var(--ease);
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.attachment-pane .btn.btn-sm.btn-primary:hover { background: var(--navy-700); }

/* ── File Help Text ─────────────────────────────────────────────── */
.file-help {
    font-size: 0.71rem;
    color: var(--slate-400);
    margin-top: 5px;
    display: flex; align-items: center; gap: 4px;
    line-height: 1.4;
}
.file-help i { font-size: 0.68rem; }
.file-help::after {
    content: none !important;
    display: none !important;
}

/* ── File Chips ─────────────────────────────────────────────────── */
.uploaded-files-area {
    margin-top: 10px;
    display: flex; flex-wrap: wrap; gap: 5px;
}
.file-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-sm);
    padding: 5px 10px;
    font-size: 0.76rem; font-weight: 500;
    color: var(--navy-800);
    transition: all var(--t-fast) var(--ease);
    text-decoration: none;
    box-shadow: var(--shadow-field);
}
.file-chip:hover {
    background: var(--navy-50);
    border-color: var(--navy-200);
    color: var(--navy-700);
    transform: translateY(-1px);
}
.file-chip .file-icon { color: var(--rose-600); font-size: 0.8rem; }
.file-chip .btn-del-att {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 7px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.file-chip .btn-del-att:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

/* ── No-files message ───────────────────────────────────────────── */
.no-files-msg {
    font-size: 0.75rem;
    color: var(--slate-400);
    font-style: italic;
    padding: 3px 0;
}

/* ── Photo Upload ───────────────────────────────────────────────── */
.photo-upload-container {
    cursor: pointer;
    display: inline-block;
    transition: transform var(--t-mid) var(--ease);
}
.photo-upload-container:hover { transform: translateY(-2px); }
.photo-frame {
    position: relative;
    width: 130px; height: 160px;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 2px solid var(--slate-200);
    box-shadow: 0 4px 16px rgba(15,33,68,0.08);
    background: var(--slate-100);
    transition: border-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.photo-upload-container:hover .photo-frame {
    border-color: var(--navy-500);
    box-shadow: 0 8px 24px rgba(30,64,148,0.16);
}
.photo-img { width: 100%; height: 100%; object-fit: cover; }
.upload-overlay {
    position: absolute; bottom: 7px; right: 7px;
    width: 28px; height: 28px; border-radius: 50%;
    background: #fff; border: 1.5px solid var(--slate-200);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all var(--t-fast) var(--ease);
}
.photo-upload-container:hover .upload-overlay {
    background: var(--navy-700); border-color: var(--navy-700);
}
.upload-overlay i { font-size: 12px; color: var(--slate-500); transition: color var(--t-fast) var(--ease); }
.photo-upload-container:hover .upload-overlay i { color: #fff; }
.photo-label { text-align: center; margin-top: 10px; }
.photo-label .fw-semibold { font-size: 0.8rem; color: var(--navy-700); }
.photo-label .text-muted.small { font-size: 0.72rem; color: var(--slate-400); }

/* ── Signature Upload ───────────────────────────────────────────── */
.signature-upload-container {
    cursor: pointer; display: inline-block;
    width: 100%; max-width: 240px;
    transition: transform var(--t-mid) var(--ease);
}
.signature-upload-container:hover { transform: translateY(-2px); }
.signature-frame {
    position: relative; width: 100%; height: 70px;
    border-radius: var(--r-sm); overflow: hidden;
    border: 2px dashed var(--slate-300);
    background: var(--slate-50);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t-mid) var(--ease);
}
.signature-upload-container:hover .signature-frame {
    border-style: solid; border-color: var(--navy-500); background: var(--navy-50);
}
.signature-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.signature-upload-container .upload-overlay { bottom: 4px; right: 4px; width: 24px; height: 24px; }
.signature-upload-container:hover .upload-overlay {
    background: var(--navy-700); border-color: var(--navy-700);
}
.signature-upload-container:hover .upload-overlay i { color: #fff; }
.signature-label { text-align: center; margin-top: 8px; }
.signature-label .fw-semibold { font-size: 0.78rem; color: var(--navy-700); }
.signature-label .text-muted.small { font-size: 0.7rem; color: var(--slate-400); }

/* Disable hover effects on submitted form */
.submitted-form .photo-upload-container,
.submitted-form .signature-upload-container { cursor: default !important; transform: none !important; }
.submitted-form .photo-upload-container:hover .photo-frame,
.submitted-form .signature-upload-container:hover .signature-frame {
    border-color: var(--slate-200) !important; box-shadow: 0 4px 16px rgba(15,33,68,0.08) !important;
    background: var(--slate-100) !important; border-style: dashed !important;
}
.submitted-form .upload-overlay { display: none !important; }

/* ── Education Table ────────────────────────────────────────────── */
#tblEducation {
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    font-size: 0.82rem;
}
#tblEducation thead { background: var(--navy-900); }
#tblEducation th {
    background: var(--navy-900) !important;
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.71rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border: none !important;
}
#tblEducation td {
    padding: 7px 8px;
    border-color: var(--slate-100) !important;
    vertical-align: middle;
}
#tblEducation tr:nth-child(even) td { background: var(--slate-50); }
#tblEducation input.form-control {
    border-radius: var(--r-sm);
    font-size: 0.8rem;
    padding: 5px 8px;
    border-color: var(--slate-200);
}
#tblEducation input.form-control:focus { border-color: var(--navy-500); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 9px 20px;
    border: none;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    display: inline-flex; align-items: center; gap: 6px;
    letter-spacing: 0.1px;
    line-height: 1.4;
}
.btn-lg {
    padding: 12px 28px;
    font-size: 0.92rem;
    border-radius: var(--r-lg);
}
.btn-sm {
    padding: 6px 13px;
    font-size: 0.78rem;
    border-radius: var(--r-sm);
}
.btn-primary {
    background: var(--navy-800);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15,33,68,0.18);
}
.btn-primary:hover {
    background: var(--navy-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15,33,68,0.24);
    color: #fff;
}
.btn-secondary {
    background: var(--slate-700);
    color: #fff;
    box-shadow: 0 2px 8px rgba(51,65,85,0.15);
}
.btn-secondary:hover {
    background: var(--slate-900);
    transform: translateY(-1px);
    color: #fff;
}
.btn-success {
    background: var(--green-600);
    color: #fff;
    box-shadow: 0 2px 8px rgba(22,163,74,0.2);
}
.btn-success:hover { background: var(--green-700); transform: translateY(-1px); color: #fff; }
.btn-warning {
    background: var(--saffron-500);
    color: #fff;
    box-shadow: 0 2px 8px rgba(224,110,0,0.2);
}
.btn-warning:hover { background: var(--saffron-600); transform: translateY(-1px); color: #fff; }
.btn-danger {
    background: var(--rose-600);
    color: #fff;
}
.btn-danger:hover { opacity: 0.88; color: #fff; }
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--navy-700);
    color: var(--navy-700);
}
.btn-outline-primary:hover {
    background: var(--navy-700);
    color: #fff;
}

/* ── Action Buttons Row ─────────────────────────────────────────── */
.action-buttons {
    display: flex; gap: 12px;
    margin: 20px 0 40px;
    flex-wrap: wrap;
}
@media (max-width: 576px) {
    .action-buttons { flex-direction: column; }
    .action-buttons .btn { width: 100%; justify-content: center; }
}

/* ── Declaration Card ────────────────────────────────────────────── */
.declaration-card {
    border: 2px solid var(--saffron-400);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.declaration-card .section-body {
    background: linear-gradient(135deg, var(--saffron-50) 0%, #fff 60%);
}
.form-section-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--saffron-600);
    border-bottom: 2px solid #fde68a;
    padding-bottom: 10px;
    margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}
.form-section-title i { color: var(--saffron-500); }

/* ── Section title for inline use ───────────────────────────────── */
.form-section-title {
    font-size: 0.92rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--navy-800);
    border-bottom: 1.5px solid var(--navy-100);
    padding-bottom: 9px;
    margin-bottom: 16px;
}

/* ── Table generic ──────────────────────────────────────────────── */
.table { border-color: var(--slate-200); font-size: 0.85rem; }
.table thead { background: var(--slate-100); }
.table th {
    font-weight: 700; color: var(--slate-700);
    font-size: 0.74rem; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 10px 14px;
    border-bottom: 2px solid var(--slate-200);
}
.table td { color: var(--slate-700); padding: 9px 14px; vertical-align: middle; border-color: var(--slate-100); }
.table-striped > tbody > tr:nth-of-type(odd) > * { background: var(--slate-50); }
.table-hover > tbody > tr:hover > * { background: var(--navy-50) !important; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 992px) { .section-body { padding: 18px 20px; } }
@media (max-width: 576px) { .section-body { padding: 14px 16px; } }

/* ── Print ──────────────────────────────────────────────────────── */
@media print {
    .no-print { display: none !important; }
    nav, footer { display: none !important; }
    body { background: #fff; color: #000; font-size: 10pt; }
    .section-card { border: 1px solid #ccc; box-shadow: none; page-break-inside: avoid; margin-bottom: 10px; }
    .section-card .section-header { background: #1a2e5a !important; }
    .section-card .section-header .sec-num { background: #c45c00 !important; }
    .attachment-pane { border: 1px solid #ddd; }
    .action-buttons { display: none; }
    .signature-upload-container { border: none !important; background: transparent !important; box-shadow: none !important; }
    .signature-frame { border: none !important; background: transparent !important; width: auto !important; height: auto !important; }
    .signature-img { max-height: 60px !important; max-width: 180px !important; object-fit: contain !important; }
    .upload-overlay { display: none !important; }
    .signature-label .text-muted { display: none !important; }
}

/* ── Micro animations ────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.section-card { animation: fadeUp 0.35s var(--ease) both; }
.section-card:nth-child(1) { animation-delay: 0.04s; }
.section-card:nth-child(2) { animation-delay: 0.08s; }
.section-card:nth-child(3) { animation-delay: 0.12s; }
.section-card:nth-child(4) { animation-delay: 0.16s; }
.section-card:nth-child(5) { animation-delay: 0.20s; }
.section-card:nth-child(6) { animation-delay: 0.24s; }
.section-card:nth-child(7) { animation-delay: 0.28s; }
.section-card:nth-child(8) { animation-delay: 0.32s; }
.section-card:nth-child(9) { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
    .section-card { animation: none; }
    .btn, .form-control, .form-select, .attachment-pane, .photo-upload-container { transition: none; }
}

/* ── Technical Support Badge & Pill Styles ────────────────────────── */
.tech-support-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    padding: 7px 18px;
    border-radius: 99px;
    font-size: 0.84rem;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    margin-top: 10px;
}

.tech-support-badge:hover {
    background: #1e293b !important;
    border-color: rgba(245, 158, 11, 0.8) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.35);
    color: #ffffff !important;
}

.tech-support-badge .icon-pulse {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
    animation: supportPulse 2s infinite;
}

.tech-support-badge .phone-link {
    font-weight: 700;
    color: #fbbf24 !important;
    text-decoration: none !important;
    letter-spacing: 0.5px;
}

.tech-support-badge:hover .phone-link {
    color: #fef08a !important;
    text-decoration: underline !important;
}

@keyframes supportPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

