:root {
    --primary: #3e4095;
    --primary-dark: #2e3070;
    --primary-light: #5a5ca8;
    --primary-pale: rgba(62, 64, 149, 0.08);
    --accent: #00AFEF;
    --accent-dark: #0095cc;
    --accent-light: #33c0f4;
    --accent-pale: rgba(0, 175, 239, 0.1);
    --bg: #f6f8fc;
    --white: #ffffff;
    --text-dark: #13143a;
    --text-body: #3d3f58;
    --text-muted: #7174a0;
    --border: #e2e4f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(62, 64, 149, 0.06);
    --shadow-md: 0 4px 20px rgba(62, 64, 149, 0.1);
    --shadow-lg: 0 8px 40px rgba(62, 64, 149, 0.14);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── FORM CARD ── */
.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.form-card-header {
    background: var(--primary);
    padding: 1.4rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hdr-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.form-card-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.form-card-header p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.progress-wrap {
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

.progress-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.progress-track {
    width: 110px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
    width: 0;
    transition: width 0.4s ease;
}

.form-card-body {
    padding: 1.75rem 2rem 2.25rem;
}

/* ── SECTION DIVIDER ── */
.sec-div {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.6rem 0 1.15rem;
}

.sec-div .sd-icon {
    width: 26px;
    height: 26px;
    background: var(--primary-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.72rem;
    flex-shrink: 0;
}

.sec-div span {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    white-space: nowrap;
}

.sec-div::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── INPUTS ── */
.form-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.38rem;
}

.form-label .req {
    color: #d9344a;
    margin-left: 2px;
}

.form-control,
.form-select {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dark);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.62rem 1rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--accent-pale);
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #d9344a;
}

.invalid-feedback {
    font-size: 0.7rem;
    color: #d9344a;
}

textarea.form-control {
    resize: vertical;
    min-height: 108px;
}

.iw {
    position: relative;
}

.iw .ii {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
    pointer-events: none;
}

.iw .form-control,
.iw .form-select {
    padding-left: 2.35rem;
}

/* ── FILE DROP ── */
.file-drop {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    background: var(--bg);
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
}

.file-drop:hover,
.file-drop.over {
    border-color: var(--accent);
    background: var(--accent-pale);
}

.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.drop-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    color: var(--primary);
    font-size: 1.25rem;
    transition: background .2s, color .2s, transform .2s;
}

.file-drop:hover .drop-circle {
    background: var(--accent-pale);
    color: var(--accent-dark);
    transform: translateY(-2px);
}

.file-drop h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.file-drop p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
}

.file-drop .br {
    color: var(--accent-dark);
    font-weight: 600;
}

.file-prev {
    display: none;
    margin-top: 0.65rem;
    background: var(--accent-pale);
    border: 1px solid rgba(0, 175, 239, 0.25);
    border-radius: var(--radius-md);
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    color: var(--accent-dark);
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.file-prev.show {
    display: flex;
}

.file-prev .rm {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.78rem;
    padding: 0;
}

.file-prev .rm:hover {
    color: #d9344a;
}

.char-ctr {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.28rem;
}

/* ── CONSENT ── */
.form-check-input {
    border-color: var(--border);
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--primary-pale);
}

.form-check-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ── SUBMIT ── */
.btn-submit {
    width: 100%;
    background: var(--primary);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.8rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: background .2s, transform .15s, box-shadow .2s;
    letter-spacing: 0.01em;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.btn-submit.loading .btn-lbl {
    display: none;
}

.btn-submit.loading .btn-spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── SUCCESS ── */
.success-state {
    display: none;
    text-align: center;
    padding: 3.5rem 2rem;
}

.success-state.show {
    display: block;
}

.succ-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--accent-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.4rem;
    font-size: 1.9rem;
    color: var(--accent-dark);
    animation: popIn .5s cubic-bezier(.175, .885, .32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-state h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.success-state p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── SIDEBAR ── */
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.sb-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 1.4rem 1.75rem;
}

.sb-header h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.2rem;
}

.sb-header p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.sb-body {
    padding: 0.5rem 1.75rem 1.5rem;
}

.perk {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--border);
}

.perk:last-of-type {
    border-bottom: none;
}

.p-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: var(--primary-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.88rem;
    transition: background .2s, color .2s;
}

.perk:hover .p-icon {
    background: var(--accent-pale);
    color: var(--accent-dark);
}

.p-text h6 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.18rem;
}

.p-text p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

.contact-box {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    margin-top: 1rem;
}

.contact-box p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.contact-box p:last-child {
    margin: 0;
}

.contact-box i {
    color: var(--accent);
    width: 13px;
}

.contact-box a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.contact-box a:hover {
    color: var(--accent-dark);
}

@media (max-width: 767px) {
    body {
        padding: 1rem 0 2rem;
    }

    .form-card-body {
        padding: 1.25rem;
    }

    .form-card-header {
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .progress-wrap {
        margin-left: 0;
    }
}