/* =====================================================
   ASSIGNMENT WORK WEBSITE
   FULL STYLE.CSS
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Tahoma, sans-serif;
    color: #101828;
    overflow-x: hidden;

    background:
        radial-gradient(circle at top left,
            rgba(124, 58, 237, 0.18),
            transparent 30%),
        radial-gradient(circle at top right,
            rgba(37, 99, 235, 0.17),
            transparent 30%),
        radial-gradient(circle at bottom left,
            rgba(14, 165, 233, 0.12),
            transparent 32%),
        linear-gradient(135deg,
            #f4f2ff 0%,
            #f8fbff 45%,
            #eef7ff 100%);
}


/* =====================================================
   PAGE
   ===================================================== */

.page-wrapper {
    position: relative;
    min-height: 100vh;
    padding: 22px 16px 40px;
}

.main-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1000px;

    margin: 0 auto;
}


/* =====================================================
   BACKGROUND DECORATION
   ===================================================== */

.decor {
    position: fixed;
    z-index: -1;

    border-radius: 50%;
    pointer-events: none;
}

.decor-one {
    width: 380px;
    height: 380px;

    left: -180px;
    top: -190px;

    background:
        linear-gradient(135deg,
            rgba(168, 85, 247, 0.18),
            rgba(59, 130, 246, 0.08));
}

.decor-two {
    width: 420px;
    height: 420px;

    right: -220px;
    bottom: -220px;

    background:
        linear-gradient(135deg,
            rgba(59, 130, 246, 0.15),
            rgba(168, 85, 247, 0.16));
}


/* =====================================================
   LANGUAGE
   ===================================================== */

.language-switch {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 8px;

    margin-bottom: 18px;

    direction: ltr;
}

.language-btn {
    min-width: 78px;
    height: 38px;

    padding: 0 14px;

    border: 1px solid #d9ddeb;
    border-radius: 10px;

    background: rgba(255, 255, 255, .95);

    color: #344054;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(16, 24, 40, .07);

    transition: .2s ease;
}

.language-btn:hover {
    transform: translateY(-1px);
}

.language-btn.active {
    color: white;
    border-color: transparent;

    background:
        linear-gradient(135deg,
            #7c3aed,
            #2563eb);
}


/* =====================================================
   TOP 3 PICTURES
   ===================================================== */

.hero-section {
    width: 100%;

    display: grid;

    grid-template-columns:
        135px minmax(0, 1fr) 135px;

    align-items: center;

    gap: 16px;

    margin-bottom: 25px;

    direction: ltr;
}


/* LEFT + RIGHT CIRCLE */

.hero-circle {
    width: 135px;
    height: 135px;

    padding: 4px;

    border: 3px solid #6657ff;
    border-radius: 50%;

    background: white;

    overflow: hidden;

    box-shadow:
        0 10px 25px rgba(75, 70, 200, .20);
}

.hero-circle img {
    display: block;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    object-fit: cover;
    object-position: center;
}


/* =====================================================
   CENTER ASSIGNMENT IMAGE
   FULL IMAGE — NO CROP
   ===================================================== */

.center-banner {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    border: 3px solid #6657ff;
    border-radius: 20px;

    background: white;

    box-shadow:
        0 14px 34px rgba(75, 70, 200, .20);
}

.center-banner img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    object-fit: contain;
    object-position: center;
}


/* =====================================================
   REGISTRATION CARD
   ===================================================== */

.registration-card {
    width: 100%;

    padding: 32px 36px 27px;

    border:
        1px solid rgba(255, 255, 255, .9);

    border-radius: 26px;

    background:
        rgba(255, 255, 255, .96);

    box-shadow:
        0 22px 60px rgba(42, 49, 110, .13);

    backdrop-filter: blur(12px);
}


/* =====================================================
   FORM HEADING
   ===================================================== */

.card-heading {
    text-align: center;

    margin-bottom: 28px;
}

.card-heading h1 {
    margin-bottom: 8px;

    color: #111827;

    font-size: 29px;
    font-weight: 900;

    line-height: 1.4;
}

.card-heading p {
    color: #667085;

    font-size: 13px;

    line-height: 1.8;
}

.heading-line {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 8px;

    margin-top: 13px;
}

.heading-line span {
    width: 45px;
    height: 2px;

    background:
        linear-gradient(90deg,
            #9333ea,
            #2563eb);
}

.heading-line i {
    display: block;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #6847ff;
}


/* =====================================================
   FORM
   ===================================================== */

.form-group {
    width: 100%;

    margin-bottom: 21px;
}

.field-label {
    display: block;

    margin-bottom: 9px;

    color: #344054;

    font-size: 14px;
    font-weight: 800;
}

.required::after {
    content: " *";

    color: #ef4444;
}


/* =====================================================
   MALE FEMALE
   ===================================================== */

.gender-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) minmax(0, 1fr);

    gap: 15px;

    direction: ltr;
}

.gender-option {
    position: relative;

    min-width: 0;
}

.gender-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.gender-option label {
    width: 100%;
    min-height: 75px;

    display: grid;

    grid-template-columns:
        54px minmax(0, 1fr) 20px;

    align-items: center;

    gap: 10px;

    padding: 7px 15px;

    border: 1.5px solid #d7ddea;
    border-radius: 13px;

    background: white;

    cursor: pointer;

    transition: .2s ease;
}

.gender-option label:hover {
    border-color: #8aa2ff;

    background: #fafbff;
}


/* MALE / FEMALE PERSON */

.full-person {
    width: 50px;
    height: 60px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 10px;

    font-size: 39px;

    line-height: 1;

    overflow: hidden;
}

.male-person {
    background:
        linear-gradient(135deg,
            #e7f1ff,
            #f5f9ff);
}

.female-person {
    background:
        linear-gradient(135deg,
            #ffe9f3,
            #fff6fa);
}

.gender-text {
    color: #344054;

    font-size: 15px;
    font-weight: 800;

    white-space: nowrap;
}

.radio-mark {
    width: 18px;
    height: 18px;

    border: 1.6px solid #98a2b3;
    border-radius: 50%;
}

.gender-option input:checked+label {
    border-color: #4f7cff;

    background: #f5f8ff;

    box-shadow:
        0 0 0 3px rgba(79, 124, 255, .08);
}

.gender-option input:checked+label .radio-mark {
    border: 5px solid #2563eb;
}


/* =====================================================
   INPUTS
   ===================================================== */

.input-wrapper,
.select-wrapper {
    position: relative;

    width: 100%;
}

.input-wrapper input,
.select-wrapper select {
    width: 100%;
    height: 54px;

    padding:
        0 50px 0 15px;

    border: 1.5px solid #d7ddea;
    border-radius: 11px;

    outline: none;

    background: white;

    color: #101828;

    font-family:
        Arial,
        Tahoma,
        sans-serif;

    font-size: 14px;

    transition: .2s ease;
}

.input-wrapper input:focus,
.select-wrapper select:focus {
    border-color: #6b63ff;

    box-shadow:
        0 0 0 4px rgba(107, 99, 255, .08);
}

.input-wrapper input::placeholder {
    color: #98a2b3;
}

.input-icon,
.select-icon {
    position: absolute;

    right: 16px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 18px;

    pointer-events: none;
}

.field-help {
    margin-top: 6px;

    direction: ltr;

    text-align: left;

    color: #98a2b3;

    font-size: 11px;
}


/* =====================================================
   WORK DETAILS
   SAME STYLE AS ATTACHED PICTURE
   ===================================================== */

.work-details {
    width: 100%;

    margin:
        26px 0 25px;

    padding:
        38px 28px 40px;

    text-align: center;

    background:
        linear-gradient(135deg,
            #fff8e8 0%,
            #ffedc2 100%);

    border: 2px solid #e5e7eb;

    border-radius: 25px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .07);
}

.work-title {
    margin:
        0 0 26px;

    color: #172554;

    font-size: 34px;
    font-weight: 900;

    line-height: 1.3;

    direction: ltr;

    text-align: center;
}

.work-text {
    max-width: 850px;

    margin: 0 auto;

    color: #475569;

    font-size: 23px;
    font-weight: 500;

    line-height: 2.1;

    direction: rtl;

    text-align: center;
}


/* =====================================================
   REGISTER BUTTON
   ===================================================== */

.register-button {
    position: relative;

    width: 100%;
    min-height: 57px;

    display: flex;

    justify-content: center;
    align-items: center;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(105deg,
            #8d26ef,
            #6848ff,
            #1478ed);

    color: white;

    font-size: 16px;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 11px 26px rgba(92, 70, 255, .25);

    transition: .2s ease;
}

.register-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 30px rgba(92, 70, 255, .30);
}

.register-button:disabled {
    opacity: .75;

    cursor: not-allowed;

    transform: none;
}

.button-arrow {
    position: absolute;

    left: 18px;

    font-size: 22px;
}

.button-loader {
    display: none;

    width: 21px;
    height: 21px;

    margin: auto;

    border:
        3px solid rgba(255, 255, 255, .35);

    border-top-color: white;

    border-radius: 50%;

    animation:
        spin .7s linear infinite;
}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* =====================================================
   ERRORS
   ===================================================== */

.error-message {
    margin-top: 8px;

    padding: 9px 11px;

    border: 1px solid #fecdd3;
    border-radius: 8px;

    background: #fff1f2;

    color: #dc2626;

    font-size: 12px;

    line-height: 1.5;
}


/* =====================================================
   SECURITY NOTE
   ===================================================== */

.security-note {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 6px;

    margin-top: 17px;

    color: #98a2b3;

    font-size: 11px;
}


/* =====================================================
   SUCCESS BOX
   ===================================================== */

.success-box {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;

    padding: 14px;

    border: 1px solid #abefc6;
    border-radius: 14px;

    background: #ecfdf3;

    color: #067647;
}

.success-box p {
    margin-top: 3px;

    font-size: 13px;
}

.success-icon {
    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background: #12b76a;

    color: white;

    font-weight: 900;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 800px) {

    .hero-section {
        grid-template-columns:
            105px minmax(0, 1fr) 105px;

        gap: 10px;
    }

    .hero-circle {
        width: 105px;
        height: 105px;
    }

    .center-banner {
        width: 100%;
    }

    .center-banner img {
        width: 100%;
        height: auto;
    }

    .work-title {
        font-size: 29px;
    }

    .work-text {
        font-size: 19px;
    }

}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 650px) {

    .page-wrapper {
        padding:
            13px 8px 25px;
    }

    .main-container {
        max-width: 100%;
    }


    /* LANGUAGE */

    .language-switch {
        margin-bottom: 12px;
    }

    .language-btn {
        min-width: 70px;
        height: 35px;

        font-size: 12px;
    }


    /* TOP 3 IMAGES */

    .hero-section {
        grid-template-columns:
            58px minmax(0, 1fr) 58px;

        gap: 5px;

        margin-bottom: 18px;
    }

    .hero-circle {
        width: 58px;
        height: 58px;

        padding: 2px;

        border-width: 2px;
    }

    .center-banner {
        width: 100%;
        height: auto;

        border-width: 2px;
        border-radius: 10px;
    }

    .center-banner img {
        display: block;

        width: 100%;
        height: auto;

        max-width: 100%;

        object-fit: contain;
        object-position: center;
    }


    /* CARD */

    .registration-card {
        padding:
            23px 13px 20px;

        border-radius: 19px;
    }

    .card-heading {
        margin-bottom: 22px;
    }

    .card-heading h1 {
        font-size: 21px;
    }

    .card-heading p {
        font-size: 11px;
    }


    /* MALE + FEMALE SAME ROW */

    .gender-grid {
        grid-template-columns:
            minmax(0, 1fr) minmax(0, 1fr);

        gap: 7px;
    }

    .gender-option label {
        min-height: 66px;

        grid-template-columns:
            39px minmax(0, 1fr) 14px;

        gap: 5px;

        padding:
            4px 7px;
    }

    .full-person {
        width: 37px;
        height: 52px;

        font-size: 31px;

        border-radius: 8px;
    }

    .gender-text {
        font-size: 11px;
    }

    .radio-mark {
        width: 14px;
        height: 14px;
    }

    .gender-option input:checked+label .radio-mark {
        border-width: 4px;
    }


    /* FORM */

    .form-group {
        margin-bottom: 18px;
    }

    .field-label {
        font-size: 12px;
    }

    .input-wrapper input,
    .select-wrapper select {
        height: 49px;

        padding-right: 43px;

        font-size: 12px;
    }

    .input-icon,
    .select-icon {
        right: 13px;

        font-size: 16px;
    }


    /* WORK DETAILS MOBILE */

    .work-details {
        margin:
            20px 0;

        padding:
            26px 14px 28px;

        border-radius: 18px;
    }

    .work-title {
        margin-bottom: 18px;

        font-size: 25px;
    }

    .work-text {
        font-size: 16px;

        line-height: 2;
    }


    /* REGISTER BUTTON */

    .register-button {
        min-height: 52px;

        font-size: 13px;
    }

}


/* =====================================================
   VERY SMALL MOBILE
   ===================================================== */

@media (max-width: 390px) {

    .page-wrapper {
        padding-left: 6px;
        padding-right: 6px;
    }

    .hero-section {
        grid-template-columns:
            50px minmax(0, 1fr) 50px;

        gap: 4px;
    }

    .hero-circle {
        width: 50px;
        height: 50px;
    }

    .center-banner {
        width: 100%;
        height: auto;
    }

    .center-banner img {
        width: 100%;
        height: auto;
    }

    .registration-card {
        padding-left: 10px;
        padding-right: 10px;
    }


    /* GENDER */

    .gender-grid {
        gap: 5px;
    }

    .gender-option label {
        grid-template-columns:
            32px minmax(0, 1fr) 12px;

        gap: 3px;

        padding:
            4px 5px;
    }

    .full-person {
        width: 31px;
        height: 45px;

        font-size: 26px;
    }

    .gender-text {
        font-size: 10px;
    }

    .radio-mark {
        width: 12px;
        height: 12px;
    }


    /* WORK DETAILS */

    .work-details {
        padding:
            22px 10px 24px;

        border-radius: 16px;
    }

    .work-title {
        margin-bottom: 15px;

        font-size: 22px;
    }

    .work-text {
        font-size: 14px;

        line-height: 1.9;
    }

}