.modal-overlay.modal_active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-overlay.modal_active .registration-modal {
    transform: scale(1) !important;
    opacity: 1 !important;
}

.modal-overlay.modal_active .registration-modal-one {
    transform: scale(1) !important;
    opacity: 1 !important;
}

/* Մոդալի ֆոնը */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;
}



/* Հիմնական պատուհանը */
.registration-modal {
    background: white !important;
    width: 95%;
    max-width: 95%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--secondary-color) !important;
    padding: 40px;
    transform: scale(0.5);
    opacity: 0;
}

.registration-modal-one {
    border: 0 !important;
    background: var(--background-color) !important;
    width: 95%;
    max-width: 95%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    padding: 40px;
    transform: scale(0.5);
    opacity: 0;
}

.modal-container {
    display: flex;
    gap: 40px;
}

/* Ձախ կողմի ոճավորում */
.modal-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-logo {
    width: 100%;
}

.modal-logo img {
    width: 150px;
    margin-bottom: 30px;
}

.modal-illustration {
    position: relative;
    width: 100%;
}

.modal-illustration img {
    width: 100%;
}

.message-bubble {
    position: absolute;
    top: 20%;
    right: 10%;
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Աջ կողմի (Form) ոճավորում */
.modal-right {
    flex: 1.2;
}

.modal-right h2 {
    color: var(--secondary-color);
    font-size: calc(26px + 1vw);
    margin-bottom: 10px;
}

.modal-desc {
    color: var(--secondary-color);
    font-size: calc(4px + 1vw);
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.registration-modal .input-group input,
.registration-modal .input-group select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}


.registration-modal-one .input-group input,
.registration-modal-one .input-group select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    background: var(--background-color);
}

/* Radio կոճակների ոճավորում */
.radio-group {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.radio-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Գրանցվել կոճակը */
.submit-btn {
    width: 100%;
    background-color: #93c669;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: calc(10px + 1vw);
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(147, 198, 105, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: calc(20px + 1vw);
    padding: 5px 15px;
    cursor: pointer;
}



#modal_gift {
    align-items: start !important;
    overflow: auto !important;
}

.modal-overlay.modal_active .gift-modal {
    transform: scale(1) !important;
    opacity: 1 !important;
}


/* Մոդալ պատուհանի հիմքը */
.gift-modal {
    background-color: #f5f1e8;
    width: 95%;
    max-width: 95%;
    border-radius: 25px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.5);
    opacity: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-logo img {
    height: 40px;
    object-fit: contain;
}

/* Տեքստային մաս */
.modal-titles {
    text-align: center;
    margin-bottom: 30px;
}

.modal-titles h2 {
    color: var(--secondary-color);
    font-size: calc(14px + 1vw);
    margin-bottom: 10px;
}

.modal-titles p {
    color: var(--secondary-color);
    font-size: calc(12px + 1vw);
    opacity: 0.8;
}

/* Դասավորությունը */
.modal-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.form-side {
    flex: 1;
}

.form-side h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: calc(6px + 1vw);
}

.image-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Input-ների ոճավորումը */
.input-box {
    position: relative;
    margin-bottom: 15px;
    align-content: center;
}

.input-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    opacity: 0.5;
}

.input-box input,
.input-box textarea {
    width: 100%;
    padding: 10px 15px 10px 45px;
    border: 1px solid #c9c0b3;
    border-radius: 12px;
    background: transparent;
    color: var(--secondary-color);
    font-size: calc(4px + 1vw);
    outline: none;
}

.input-box textarea {
    height: 80px;
    resize: none;
}

/* Կանաչ կոճակը */
.submit-green-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: calc(5px + 1vw);
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(147, 198, 105, 0.3);
}

/* Իլյուստրացիայի մասը */
.laptop-icon {
    width: 250px;
    margin-bottom: 20px;
}

.laptop-icon img,
.student-illustration img {
    width: 100%;
}

.student-illustration {
    width: 100%;
    max-width: 350px;
}




/* Հիմնական պատուհանը */

.modal-overlay.modal_active .course-selection-modal {
    transform: scale(1) !important;
    opacity: 1 !important;
}

.course-selection-modal {
    background-color: #f0f0f0;
    /* Մոխրագույն երանգը, ինչպես նկարում */
    width: 95%;
    max-width: 95%;
    max-height: 100%;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: auto;
    position: relative;
    transform: scale(0.5);
    opacity: 0;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 5px 12px;
    font-size: 20px;
    cursor: pointer;
    position: sticky;
    left: 100%;
    top: 10px;
}

.modal-header-logo img {
    height: 50px;
    margin-bottom: 20px;
}

/* Բովանդակության դասավորությունը */
.modal-main-content {
    display: flex;
    gap: 50px;
    justify-content: center;
}

/* Ձախ կողմի դեղին JS բլոկը */
.tech-large-view {
    width: 40%;
    height: 100%;
    border-radius: 40px;
    display: flex;
    align-items: start;
}

.tech-large-view img {
    width: 100%;
    height: auto;
}

/* Աջ կողմի ցանցը (3 սյունակ, 2 տող) */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 2fr);
    gap: 20px;
    width: 100%;
}

.course-mini-card {
    background: #e6e6e6;
    padding: 20px;
    height: fit-content;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.course-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.course-brand img {
    width: 25px;
}

.course-brand h4 {
    margin: 0;
    color: #7a553a;
    font-size: 16px;
}

.divider {
    height: 2px;
    background-color: #93c669;
    /* Կանաչ բաժանարար գիծը */
    width: 60%;
    margin: 10px auto;
}

.duration {
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Գրանցվել կոճակը */
.reg-btn-small {
    background-color: #93c669;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(147, 198, 105, 0.3);
}

/* Ռեսպոնզիվ տարբերակ */

/* ------------------------------------------------------------------------------------ */

@media (max-width: 900px) {
    .modal-main-content {
        flex-direction: column;
        align-items: center;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-selection-modal {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .modal-left {
        display: none;
    }

    .modal-right h2 {
        color: var(--secondary-color);
        font-size: calc(20px + 1vw);
        margin-bottom: 10px;
    }

    .modal-desc {
        color: var(--secondary-color);
        font-size: calc(6px + 1vw);
        margin-bottom: 25px;
    }

    .modal-content-wrapper {
        flex-direction: column;
    }

    .form-side {
        width: 100%;
    }

    .image-side {
        display: none;
        /* Հեռախոսների վրա նկարը թաքցնում ենք՝ տեղ խնայելու համար */
    }

    .gift-modal {
        padding: 20px;
    }

    #modal_gift .modal-content-wrapper {
        flex-direction: column-reverse;
    }

    .modal-titles {
        margin-bottom: 20px;
    }

    .modal-titles h2 {
        font-size: calc(12px + 1vw);
    }

    .modal-titles p {
        font-size: calc(9px + 1vw);
    }

    .submit-green-btn {
        font-size: calc(7px + 1vw);
    }

    #modal_course {
        align-items: start !important;
        overflow: auto !important;
    }
}


@media (max-height: 520px) {
    .modal-overlay {
        align-items: start;
        overflow: auto;
    }

    .input-box input,
    .input-box textarea {
        width: 100%;
        padding: 10px 15px 10px 45px;
        border: 1px solid #c9c0b3;
        border-radius: 12px;
        background: transparent;
        color: var(--secondary-color);
        font-size: calc(6px + 1vw);
        outline: none;
    }

}