@import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #123d70;
    --primary-dark: #0b294d;
    --accent: #e6a23c;
    --background: #f3f6fb;
    --surface: #ffffff;
    --text: #243449;
    --muted: #718096;
    --border: #e1e8f0;
    --success: #16865b;
    --danger: #c0392b;
    --shadow: 0 12px 35px rgba(22, 50, 84, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: 'Hind', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

button, input, textarea, select {
    font: inherit;
}

/* HEADER */

.site-header {
    background: linear-gradient(110deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 17px 24px;
    box-shadow: 0 5px 20px rgba(10, 35, 65, .16);
}

.header-inner {
    max-width: 1120px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: white;
    text-decoration: none;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-family: Inter, sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: white;
    background: rgba(255,255,255,.12);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-family: Inter, sans-serif;
    font-size: 17px;
    letter-spacing: .5px;
}

.brand-text span {
    font-size: 14px;
    color: #d9e8f9;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 30px;
    padding: 7px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #64df9d;
    border-radius: 50%;
}

/* HERO */

.hero {
    max-width: 1120px;
    margin: 35px auto 25px;
    padding: 38px 35px;
    border-radius: 20px;
    color: white;
    background:
        radial-gradient(circle at 90% 10%, rgba(255,255,255,.15), transparent 30%),
        linear-gradient(115deg, #123d70, #2266a6);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero .eyebrow {
    display: inline-block;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #f5ca83;
    margin-bottom: 8px;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: clamp(27px, 4vw, 39px);
    line-height: 1.3;
}

.hero p {
    margin: 0;
    color: #e0edfb;
    font-size: 17px;
}

/* FORM CARD */

.form-card {
    max-width: 1120px;
    margin: 0 auto 45px;
    padding: 35px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* SECTION HEADING */

.section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0 25px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.section-heading > span {
    flex-shrink: 0;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: var(--primary);
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.section-heading h2 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 23px;
    line-height: 1.35;
}

.section-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* INPUT GRID */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-grid > label,
.upload-grid > label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #34465c;
    font-size: 15px;
    font-weight: 600;
}

.form-grid > label.full {
    grid-column: 1 / -1;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    min-height: 47px;
    padding: 11px 14px;
    border: 1px solid #d8e1ec;
    border-radius: 9px;
    background: #fbfcfe;
    color: var(--text);
    outline: none;
    transition: .2s ease;
}

textarea {
    resize: vertical;
    min-height: 95px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #3278bb;
    background: white;
    box-shadow: 0 0 0 3px rgba(50,120,187,.12);
}

input::placeholder,
textarea::placeholder {
    color: #a0acbb;
}

/* QUESTIONS */

.question-block {
    margin-top: 25px;
    padding: 18px 20px;
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.question-block h3 {
    margin: 0 0 13px;
    font-size: 17px;
    color: var(--primary-dark);
}

.radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 28px;
    cursor: pointer;
    font-weight: 500;
}

input[type="radio"],
input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* CATEGORY CARDS */

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.category-item {
    border: 1px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
    background: white;
    transition: .2s ease;
}

.category-item:has(.category-check input:checked) {
    border-color: #4384c0;
    box-shadow: 0 4px 16px rgba(35, 92, 150, .09);
}

.category-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px;
    cursor: pointer;
    font-weight: 600;
    color: #34465c;
}

.category-check input {
    flex-shrink: 0;
}

.category-item:has(.category-check input:checked) .category-check {
    color: var(--primary);
    background: #f1f7fd;
}

.category-detail {
    padding: 17px;
    border-top: 1px solid var(--border);
    background: #fbfcfe;
}

.category-form-title {
    margin: 0 0 15px;
    font-size: 17px;
    color: var(--primary);
}

.category-fields {
    gap: 15px;
}

/* UPLOADS */

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.upload-grid > label {
    padding: 17px;
    border: 1px dashed #bdcad9;
    border-radius: 12px;
    background: #fafcff;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    background: white;
    font-size: 13px;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    padding: 8px 12px;
    margin-right: 10px;
    border: 0;
    border-radius: 6px;
    color: white;
    background: var(--primary);
    cursor: pointer;
}

/* DECLARATION */

.consent {
    margin: 28px 0;
    padding: 17px;
    background: #f5f8fc;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}

.consent input {
    flex-shrink: 0;
    margin-top: 5px;
}

/* SUBMIT */

.submit-btn {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(110deg, #123d70, #2869a8);
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.submit-btn:hover {
    background: linear-gradient(110deg, #0b294d, #174e85);
    transform: translateY(-1px);
}

.submit-btn span {
    margin-left: 8px;
}

.form-note {
    margin: 13px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* ALERT */

.alert {
    max-width: 1120px;
    margin: 20px auto;
    padding: 14px 18px;
    border-radius: 10px;
}

.alert.error {
    color: #9b2c2c;
    background: #fff0f0;
    border: 1px solid #f3c4c4;
}

/* FOOTER */

.site-footer {
    padding: 25px 20px;
    color: white;
    background: #0b294d;
}

.footer-inner {
    max-width: 1120px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-brand strong {
    font-family: Inter, sans-serif;
    font-size: 15px;
}

.footer-brand p {
    margin: 3px 0 0;
    color: #cbd9e8;
    font-size: 13px;
}

.footer-copy {
    color: #cbd9e8;
    font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .site-header {
        padding: 13px 16px;
    }

    .header-inner {
        align-items: flex-start;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-text span {
        font-size: 12px;
    }

    .header-badge {
        padding: 6px 10px;
        font-size: 11px;
    }

    .hero {
        margin: 20px 14px;
        padding: 27px 22px;
        border-radius: 15px;
    }

    .hero p {
        font-size: 15px;
    }

    .form-card {
        margin: 0 14px 30px;
        padding: 22px 17px;
        border-radius: 15px;
    }

    .form-grid,
    .category-grid,
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 20px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .header-badge {
        font-size: 10px;
    }

    .brand {
        gap: 8px;
    }

    .brand-text strong {
        font-size: 11px;
    }

    .brand-text span {
        font-size: 10px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .form-card {
        padding: 19px 13px;
    }
}

/* HEADER FINAL FIX */

.site-header {
    display: block !important;
    width: 100% !important;
    min-height: 88px;
    padding: 16px 24px !important;
    margin: 0 !important;
    background: linear-gradient(110deg, #0b294d, #164e80) !important;
    color: #ffffff !important;
    border-bottom: none !important;
}

.site-header .header-inner {
    max-width: 1120px;
    min-height: 56px;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px;
}

.site-header .brand {
    display: flex !important;
    align-items: center !important;
    gap: 13px;
    color: #ffffff !important;
    text-decoration: none !important;
}

.site-header .brand-logo {
    width: 52px;
    height: 52px;
    display: grid !important;
    place-items: center;
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 13px;
    color: #ffffff !important;
    background: rgba(255,255,255,.12) !important;
    font-size: 21px;
    font-weight: 800;
}

.site-header .brand-text {
    display: flex !important;
    flex-direction: column !important;
    color: #ffffff !important;
}

.site-header .brand-text strong {
    color: #ffffff !important;
    font-size: 17px;
    text-decoration: none !important;
}

.site-header .brand-text span {
    color: #d9e8f9 !important;
    font-size: 14px;
}

.site-header .header-badge {
    display: flex !important;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 30px;
    background: rgba(255,255,255,.12) !important;
    color: white !important;
    white-space: nowrap;
}

.site-header .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64df9d;
}

@media(max-width:600px) {
    .site-header {
        padding: 13px 15px !important;
    }

    .site-header .brand-logo {
        width: 43px;
        height: 43px;
    }

    .site-header .brand-text strong {
        font-size: 12px;
    }

    .site-header .brand-text span {
        font-size: 11px;
    }

    .site-header .header-badge {
        padding: 6px 9px;
        font-size: 11px;
    }
}

/* Category-wise upload visibility */

[hidden] {
    display: none !important;
}

.category-document {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 17px;
    border: 1px dashed #bdcad9;
    border-radius: 12px;
    background: #f7faff;
    color: #123d70;
    font-weight: 600;
}

.category-document[hidden] {
    display: none !important;
}

.address-same {
    grid-column: 1 / -1;
    padding: 14px;
    background: #f1f7fd;
    border: 1px solid #d8e7f5;
    border-radius: 10px;
}

.address-same label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.address-same {
    grid-column: 1 / -1;
    padding: 14px;
    background: #f1f7fd;
    border: 1px solid #d8e7f5;
    border-radius: 10px;
}

.address-same label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.category-document {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 17px;
    border: 1px dashed #bdcad9;
    border-radius: 12px;
    background: #f7faff;
    color: #123d70;
    font-weight: 600;
}

.category-document[hidden] {
    display: none !important;
}

