/* ============================================================
   SECTION C
   ============================================================ */

.section-c {
    width: 100%;
}


.section-c .subsection-heading h3,
.section-c .question-text > label,
.section-c .submission-date-label {
    color: var(--kyc-navy);
}


.section-c .subsection-number {
    background: var(--kyc-blue-grey-soft);
    color: var(--kyc-navy);
}


.section-c .employment-status-options,
.section-c .conditional-section,
.section-c .pep-question {
    border-color: var(--kyc-line);
    background: #f8fbfe;
}


.section-c .radio-card,
.section-c .checkbox-card {
    border-color: var(--kyc-blue-grey);
}


.section-c .radio-card:hover,
.section-c .checkbox-card:hover {
    background: var(--kyc-blue-grey-soft);
}


/* ============================================================
   SUBSECTIONS
   ============================================================ */

.subsection {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

.subsection:first-of-type {
    margin-top: 24px;
    padding-top: 0;
    border-top: 0;
}


.subsection-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}


.subsection-number {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f1f5f9;
    color: #1f2937;

    font-size: 14px;
    font-weight: 700;
}


.subsection-heading h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;
}


.subsection-heading p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}


/* ============================================================
   FORM GRID
   ============================================================ */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}


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


/* ============================================================
   FORM GROUP
   ============================================================ */

.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;
    margin-bottom: 8px;

    color: #1f2937;

    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}


.required {
    color: #b91c1c;
    font-weight: 700;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid #d1d5db;
    border-radius: 7px;

    background: #ffffff;
    color: #111827;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.form-group input,
.form-group select {
    min-height: 46px;
    padding: 10px 12px;
}


.form-group textarea {
    min-height: 100px;
    padding: 11px 12px;
    resize: vertical;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #374151;
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.10);
}


.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}


/* ============================================================
   RADIO GROUP
   ============================================================ */

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}


.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    min-height: 42px;

    color: #1f2937;
    font-size: 15px;
    line-height: 1.4;

    cursor: pointer;
}


.radio-option input {
    width: 18px;
    height: 18px;
    margin: 0;

    flex: 0 0 auto;

    accent-color: #1f2937;
}


/* ============================================================
   EMPLOYMENT STATUS
   ============================================================ */

.employment-status-options {
    padding: 16px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background: #fafafa;
}


/* ============================================================
   EMPLOYMENT RADIO OPTION
   ============================================================ */

.employment-radio-option {
    display: flex;
    align-items: center;

    gap: 9px;

    min-height: 42px;

    margin: 0;

    color: #1f2937;
    font-size: 15px;
    line-height: 1.4;

    cursor: pointer;
}


.form-group .employment-radio-option {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0;
}


/* Radio button */

.employment-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;

    margin: 0;
    padding: 0;

    flex: 0 0 18px;

    accent-color: #1f2937;
}


/* Text */

.employment-radio-option span {
    display: block;

    margin: 0;

    line-height: 1.4;
}


/* ============================================================
   INVESTMENT VALUE SELECT
   ============================================================ */

.investment-value-select {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 40px 10px 12px;

    border: 1px solid var(--kyc-blue-grey);
    border-radius: 7px;

    background: #ffffff;
    color: var(--kyc-ink);
    font: inherit;

    cursor: pointer;
    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}


.investment-value-select:focus {
    border-color: var(--kyc-navy);
    box-shadow: 0 0 0 3px rgba(6, 35, 96, 0.12);
}


/* ============================================================
   BANK DETAILS
   ============================================================ */

.bank-details-section {
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
}


.bank-details-grid {
    align-items: start;
}


.account-type-options {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--kyc-blue-grey);
    border-radius: 7px;
    background: #ffffff;
}


.account-type-options .radio-option {
    min-height: 24px;
}


.bank-statement-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
    gap: 18px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--kyc-line);
}


.bank-statement-upload input[type="file"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px dashed var(--kyc-blue-grey);
    border-radius: 7px;
    background: var(--kyc-blue-grey-soft);
    color: var(--kyc-ink);
    font: inherit;
    cursor: pointer;
}


.bank-statement-upload .upload-box {
    width: min(100%, 520px);
    margin-inline: auto;
}


.bank-statement-upload .upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}


.bank-statement-upload .upload-icon {
    margin-right: auto;
    margin-left: auto;
}


.bank-statement-upload .upload-main-text,
.bank-statement-upload .upload-sub-text {
    display: block;
    width: 100%;
    text-align: center;
}


.bank-statement-note {
    padding: 14px 16px;
    border-left: 4px solid var(--kyc-navy);
    background: var(--kyc-blue-grey-soft);
    color: var(--kyc-ink);
    font-size: 13px;
}


.bank-statement-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--kyc-navy);
}


.bank-statement-note p {
    margin: 0;
}


.statement-sample-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 24px;
    border: 1px dashed var(--kyc-blue-grey);
    border-radius: 7px;
    background: #ffffff;
    color: var(--kyc-navy);
    text-align: center;
}


.statement-sample-placeholder span {
    font-weight: 700;
}


.statement-sample-placeholder small {
    margin-top: 6px;
    color: var(--kyc-muted);
}



/* ============================================================
   CONDITIONAL SECTIONS
   ============================================================ */

.conditional-section {
    margin-top: 22px;
    padding: 22px;

    border: 1px solid #e5e7eb;
    border-radius: 9px;

    background: #fafafa;
}


.conditional-field {
    margin-top: 18px;
}


.hidden {
    display: none !important;
}


/* ============================================================
   RADIO CARDS
   ============================================================ */

.radio-card-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}


.radio-card {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 54px;
    padding: 13px 15px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background: #ffffff;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}


.radio-card:hover {
    background: #f9fafb;
}


.radio-card input {
    width: 18px;
    height: 18px;
    margin: 0;

    flex: 0 0 auto;

    accent-color: #1f2937;
}


.radio-card span {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.4;
}


/* ============================================================
   CHECKBOX CARDS
   ============================================================ */

.checkbox-card-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}


.checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    min-height: 54px;
    padding: 13px 15px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background: #ffffff;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}


.checkbox-card:hover {
    background: #f9fafb;
}


.checkbox-card input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;

    flex: 0 0 auto;

    accent-color: #1f2937;
}


.checkbox-card span {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.45;
}


/* ============================================================
   PEP
   ============================================================ */

.pep-section {
    margin-top: 36px;
}


.pep-question {
    margin-top: 22px;
    padding: 20px;

    border: 1px solid #e5e7eb;
    border-radius: 9px;

    background: #ffffff;
}


.pep-question:first-of-type {
    margin-top: 0;
}


.question-text > label {
    display: block;

    color: #111827;

    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
}


.question-help {
    margin: 10px 0 18px;

    color: #6b7280;

    font-size: 13px;
    line-height: 1.6;
}


.pep-question > .radio-group {
    margin-top: 14px;
}


.pep-question .conditional-field {
    margin-top: 18px;
    margin-bottom: 0;
}


/* ================================================================
   UPLOAD
================================================================ */

.upload-box {
    position: relative;

    width: 100%;

    border: 1px dashed #aeb9c6;
    border-radius: 6px;

    background: #fafbfc;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}


.upload-box:hover {
    border-color: #17365d;

    background: #f8fafc;
}


.upload-box input[type="file"] {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    overflow: hidden;

    pointer-events: none;
}

/* =========================================
   ACCOUNT TYPE
   Isolated styles
   ========================================= */

.account-type-radio-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    width: 100%;

    margin: 0;
    padding: 5px 12px;

    box-sizing: border-box;

    gap: 8px 24px;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    background: #fafafa;
}

.account-type-radio-option {
    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    min-height: 40px;

    gap: 7px;

    color: #1f2937;
    font-size: 14px;
    line-height: 1.3;

    cursor: pointer;
}

.account-type-radio-option input[type="radio"] {
    width: 16px;
    height: 16px;

    margin: 0;
    padding: 0;

    flex: 0 0 16px;
}

.account-type-radio-option span {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.account-type-label {
    display: block;
    margin: 0 0 8px 0;
    padding: 0;

    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.account-type-required {
    color: #dc2626;
    margin-left: 3px;
}

.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin-bottom: 10px;

    background: #eef2f6;

    border-radius: 50%;

    color: #17365d;

    font-size: 23px;
    font-weight: 700;
}


.upload-main-text {
    color: #293442;

    font-size: 14px;
    font-weight: 700;
}


.upload-sub-text {
    margin-top: 3px;

    color: #7a8490;

    font-size: 12px;
}

/* Mobile */
@media (max-width: 600px) {

    .account-type-radio-group {
        align-items: flex-start;
        flex-direction: column;

        gap: 4px;

        padding: 10px 14px;
    }

    .account-type-radio-option {
        width: 100%;
        min-height: 42px;
    }
}

/* ============================================================
   SERVER DATE
   ============================================================ */

.submission-date {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 36px;
    padding: 16px 18px;

    border-top: 1px solid #d1d5db;

    color: #1f2937;
}


.submission-date-label {
    font-size: 14px;
    font-weight: 700;
}


.submission-date-value {
    font-size: 15px;
    font-weight: 600;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

    .subsection {
        margin-top: 28px;
        padding-top: 24px;
    }


    .subsection-heading {
        gap: 11px;
        margin-bottom: 18px;
    }


    .subsection-number {
        flex-basis: 30px;
        width: 30px;
        height: 30px;

        font-size: 13px;
    }


    .subsection-heading h3 {
        font-size: 17px;
    }


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


    .full-width {
        grid-column: auto;
    }


    .radio-card-group,
    .checkbox-card-group {
        grid-template-columns: 1fr;
    }


    .conditional-section {
        padding: 16px;
    }


    .pep-question {
        padding: 16px;
    }


    .question-text > label {
        font-size: 14px;
    }


    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }


    .radio-option {
        width: 100%;
        min-height: 44px;
    }


    /*
     * 16px prevents automatic zooming on iOS when
     * focusing form controls.
     */

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }


    .submission-date {
        align-items: flex-start;
        gap: 12px;
    }

}


@media (max-width: 480px) {

    .subsection-heading {
        align-items: flex-start;
    }


    .subsection-heading h3 {
        font-size: 16px;
    }


    .radio-card,
    .checkbox-card {
        padding: 12px;
    }


    .radio-card span,
    .checkbox-card span {
        font-size: 14px;
    }

}


@media (max-width: 600px) {

    .bank-statement-upload {
        grid-template-columns: 1fr;
        gap: 14px;
    }


    .bank-statement-upload .upload-box {
        width: 100%;
        max-width: none;
    }


    .bank-statement-upload .upload-label {
        min-height: 125px;
        padding: 20px 14px;
    }


    .bank-statement-note,
    .statement-sample-placeholder {
        width: 100%;
    }


    .statement-sample-placeholder {
        min-height: 150px;
        padding: 20px 14px;
    }

}