/* =========================================================
   REGISTRATION PAGE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f6f9fc;
    color: #14213d;

    font-size: 16px;
    line-height: 1.5;
}


/* =========================================================
   PAGE
========================================================= */

.registration-page {
    width: 100%;
    min-height: 100vh;

    padding: 55px 24px 65px;
}

.registration-container {
    width: min(1000px, 100%);

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.registration-header {
    max-width: 720px;

    margin: 0 auto 34px;

    text-align: center;
}


/* =========================================================
   JOIN US PILL
========================================================= */

.registration-eyebrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 8px 15px;

    margin-bottom: 15px;

    border: 1px solid rgba(23, 73, 168, 0.12);

    border-radius: 999px;

    background: rgba(23, 73, 168, 0.06);

    color: #1749a8;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #079447;

    box-shadow:
        0 0 0 4px rgba(7, 148, 71, 0.09);
}


/* =========================================================
   HEADER TITLE
========================================================= */

.registration-header h1 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(40px, 5vw, 56px);

    line-height: 1.04;

    font-weight: 500;

    letter-spacing: -0.035em;

    color: #14213d;
}

.registration-header h1 span {
    color: #079447;
}

.registration-header p {
    max-width: 650px;

    margin: 16px auto 0;

    color: #667386;

    font-size: 16px;

    line-height: 1.6;
}


/* =========================================================
   FORM CARD
========================================================= */

.registration-form {
    width: 100%;

    padding: 30px 34px;

    background: #ffffff;

    border: 1px solid rgba(20, 33, 61, 0.07);

    border-radius: 20px;

    box-shadow:
        0 14px 45px rgba(20, 33, 61, 0.06);
}


/* =========================================================
   FORM SECTION
========================================================= */

.form-section {
    padding-bottom: 27px;

    margin-bottom: 27px;

    border-bottom:
        1px solid rgba(20, 33, 61, 0.08);
}

.form-section:last-of-type {
    margin-bottom: 0;

    padding-bottom: 0;

    border-bottom: none;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 19px;
}

.section-heading h2 {
    margin: 0;

    color: #14213d;

    font-size: 18px;

    font-weight: 700;

    line-height: 1.25;
}

.section-heading p {
    margin-top: 2px;

    color: #7a8594;

    font-size: 12px;

    line-height: 1.3;
}


/* =========================================================
   FORM GRID
========================================================= */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 18px;

    row-gap: 16px;
}

.form-group {
    min-width: 0;
}

.full-width {
    grid-column: 1 / -1;
}


/* =========================================================
   LABEL
========================================================= */

.form-group label {
    display: block;

    margin-bottom: 6px;

    color: #263653;

    font-size: 16px;

    font-weight: 600;

    line-height: 1.3;
}

.form-group label > span {
    color: #d63b3b;

    margin-left: 2px;
}

.form-group label small {
    display: inline;

    margin-left: 5px;

    color: #8993a2;

    font-size: 12px;

    font-weight: 400;
}


/* =========================================================
   INPUTS
========================================================= */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid #d9e0e8;

    border-radius: 9px;

    background: #fbfcfe;

    color: #14213d;

    font-family: inherit;

    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input,
.form-group select {
    height: 46px;

    padding: 0 13px;
}

.form-group textarea {
    min-height: 92px;

    padding: 11px 13px;

    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ba5b2;

    font-size: 15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1749a8;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(23, 73, 168, 0.06);
}


/* =========================================================
   FILE INPUT
========================================================= */

.form-group input[type="file"] {
    height: auto;

    min-height: 46px;

    padding: 9px 12px;

    cursor: pointer;
}

.input-note {
    display: block;

    margin-top: 5px;

    color: #8993a2;

    font-size: 12px;
}


/* =========================================================
   PHOTO SECTION
========================================================= */

.photo-section .form-group {
    width: 100%;
}


/* =========================================================
   DECLARATION
========================================================= */

.declaration-box {
    display: flex;

    flex-direction: column;

    gap: 12px;

    padding: 16px 18px;

    border-radius: 12px;

    background: #f7fafc;

    border: 1px solid rgba(20, 33, 61, 0.06);
}

.check-row {
    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 10px;

    cursor: pointer;
}

.check-row input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.custom-check {
    position: relative;

    width: 19px;
    height: 19px;

    flex: 0 0 auto;

    margin-top: 2px;

    border: 1px solid #cbd4df;

    border-radius: 4px;

    background: #ffffff;
}

.check-row input:checked + .custom-check {
    background: #079447;

    border-color: #079447;
}

.check-row input:checked + .custom-check::after {
    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 5px;
    height: 9px;

    border:
        solid #ffffff;

    border-width:
        0 2px 2px 0;

    transform: rotate(45deg);
}

.check-text {
    color: #5e6979;

    font-size: 15px;

    line-height: 1.55;
}

.check-text a {
    color: #1749a8;

    font-weight: 600;

    text-decoration: none;
}

.check-text a:hover {
    color: #079447;

    text-decoration: underline;
}


/* =========================================================
   SUBMIT AREA
========================================================= */

.form-submit {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-top: 22px;
}

.form-submit p {
    margin: 0;

    color: #7a8594;

    font-size: 13px;

    line-height: 1.4;
}

.submit-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    flex: 0 0 auto;

    min-width: 200px;

    height: 48px;

    padding: 0 20px;

    border: none;

    border-radius: 9px;

    background: #1749a8;

    color: #ffffff;

    font-family: inherit;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.submit-button:hover {
    background: #079447;

    transform: translateY(-2px);

    box-shadow:
        0 10px 22px rgba(7, 148, 71, 0.16);
}

.button-arrow {
    font-size: 19px;

    line-height: 1;

    transition:
        transform 0.25s ease;
}

.submit-button:hover .button-arrow {
    transform: translateX(4px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .registration-page {
        padding: 48px 18px 60px;
    }

    .registration-form {
        padding: 27px;
    }

    .form-grid {
        grid-template-columns: 1fr;

        row-gap: 15px;
    }

    .full-width {
        grid-column: auto;
    }


    /* -----------------------------------------
       SUBMIT — SAME HORIZONTAL LAYOUT
    ----------------------------------------- */

    .form-submit {
        display: flex;

        align-items: center;

        justify-content: space-between;

        flex-direction: row;

        gap: 15px;
    }

    .form-submit p {
        flex: 1;

        margin: 0;

        font-size: 13px;
    }

    .submit-button {
        flex: 0 0 auto;

        width: auto;

        min-width: 200px;

        background: #1749a8;

        color: #ffffff;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

    .registration-page {
        padding: 38px 14px 50px;
    }

    .registration-header {
        margin-bottom: 27px;
    }

    .registration-eyebrow {
        padding: 7px 13px;

        margin-bottom: 13px;

        font-size: 10px;
    }

    .registration-header h1 {
        font-size: 38px;
    }

    .registration-header p {
        margin-top: 13px;

        font-size: 15px;

        line-height: 1.55;
    }

    .registration-form {
        padding: 22px 16px;

        border-radius: 16px;
    }

    .form-section {
        padding-bottom: 24px;

        margin-bottom: 24px;
    }

    .section-heading {
        margin-bottom: 17px;

        gap: 10px;
    }

    .section-heading h2 {
        font-size: 17px;
    }

    .section-heading p {
        font-size: 13px;
    }

    .form-grid {
        row-gap: 14px;
    }

    .form-group label {
        font-size: 16px;
    }

    .form-group label small {
        display: block;

        margin: 2px 0 0;

        font-size: 13px;
    }

    .form-group input,
    .form-group select {
        height: 45px;

        padding: 0 12px;

        font-size: 16px;
    }

    .form-group textarea {
        min-height: 90px;

        font-size: 16px;
    }


    /* -----------------------------------------
       DECLARATION
    ----------------------------------------- */

    .declaration-box {
        padding: 14px;

        gap: 11px;
    }

    .check-text {
        font-size: 14px;

        line-height: 1.55;
    }


    /* -----------------------------------------
       SUBMIT
       SAME AS DESKTOP
    ----------------------------------------- */

    .form-submit {
        display: flex;

        align-items: center;

        justify-content: space-between;

        flex-direction: row;

        gap: 12px;

        padding-top: 19px;
    }

    .form-submit p {
        flex: 1;

        margin: 0;

        font-size: 12px;

        line-height: 1.4;
    }

    .submit-button {
        flex: 0 0 auto;

        width: auto;

        min-width: 180px;

        height: 48px;

        padding: 0 16px;

        background: #1749a8;

        color: #ffffff;

        font-size: 15px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .registration-page {
        padding-left: 11px;

        padding-right: 11px;
    }

    .registration-form {
        padding: 20px 14px;
    }

    .registration-header h1 {
        font-size: 35px;
    }

    .form-group label {
        font-size: 16px;
    }


    /* -----------------------------------------
       SUBMIT — KEEP HORIZONTAL
    ----------------------------------------- */

    .form-submit {
        display: flex;

        flex-direction: row;

        align-items: center;

        justify-content: space-between;

        gap: 8px;
    }

    .form-submit p {
        flex: 1;

        font-size: 11px;

        line-height: 1.35;
    }

    .submit-button {
        flex: 0 0 auto;

        min-width: 160px;

        height: 46px;

        padding: 0 12px;

        background: #1749a8;

        color: #ffffff;

        font-size: 13px;
    }

}