.popup-mail .main_text {
    font-size: 32px;
    font-weight: bold;
}

.popup-mail .dop_text{
    font-size: 16px;
    margin-top: 12px;
}

.popup-mail .price{
    position: relative;
    display: inline-block;
}

.popup-mail .price::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(247, 143, 33, 1);
    transform: rotate(-15deg);
    transform-origin: center;
    z-index: 1;
}

.popup-mail .price span {
    position: relative;
    z-index: 2;
}

.popup-mail .highlight{
    background-color: #FFA500;
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
}

/* Стили для попапа */
.popup-mail {
    line-height: normal;
    box-sizing: content-box;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: black;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 6000;

    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.popup-mail.popup-show {
    display: flex;
    opacity: 1;
}

.popup-mail .popup-content {
    box-sizing: content-box;
    background-color: #C1DAE6;
    padding: 50px;
    border-radius: 8px;
    width: 60vw;
    text-align: center;
    position: relative;

    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.popup-mail .end-popup-content{
    box-sizing: content-box;
    background-color: #C1DAE6;
    padding: 50px;
    border-radius: 8px;
    width: 37vw;
    text-align: center;
    position: relative;
    font-size: 32px;

    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.popup-mail .end_popup_title {
    margin-top: 2vw;
}

.popup-mail .end_popup_subtitle {
    margin-top: 2vw;
}

.popup-mail.popup-show .popup-content {
    transform: scale(1);
}

.popup-mail.popup-show .end-popup-content {
    transform: scale(1);
}

.popup-mail .close-btn {
    position: absolute;
    top: 50px;
    right: 50px;
    font-size: 20px;
    cursor: pointer;
    width: 25px;
    height: 25px;
}

/* Стили для формы */
.popup-mail .form-container {
    width: 100%;
}

.popup-mail .input-container{
    display: flex;
    flex-direction: row;
}

.popup-mail .checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-left: 70px;
    margin-right: 70px;
    text-align: left;
    font-size: 12px;
    width: 556px;
}

.popup-mail .email-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.popup-mail .email-input {
    box-sizing: content-box;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    width: 270px;
}

.popup-mail .submit-btn {
    box-sizing: content-box;
    padding: 8px 12px;
    background-color: #2AAE89;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 270px;
    transition: all 0.3s ease;
}

.popup-mail .submit-btn:hover {
    background-color: white;
    box-sizing: content-box;
    color: #2AAE89;
    border: solid 1px #2AAE89;
}

.popup-mail .checkbox-container input {
    margin-right: 5px;
}


/*Стили для карточек*/
.popup-mail .toggle-btn {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
}

/* Стиль кнопки, когда список открыт */
.popup-mail .toggle-btn.open {
    background-color: rgba(51, 51, 51, 0.2);
    border: 0;
}

.popup-mail .arrow-icon {
    width: 12px;
    height: 6px;
    transition: transform 0.3s;
}


.popup-mail .webinar-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

.popup-mail .webinar-cards {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.popup-mail .webinar-card {
    box-sizing: content-box;
    display: flex;
    background-color: white;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    width: 30%;
}

.popup-mail .webinar-card.selected {
    border-color: #28a745;
}

.popup-mail .webinar-card-name {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 10px;
}

.popup-mail .webinar-card-desc {
    margin-bottom: 10px;
    font-size: 18px;
}

.popup-mail .webinars-list {
    transition: max-height 0.5s ease-out;
}

/* Стили для информации об эксперте */
.popup-mail .expert-info {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
}

.popup-mail .expert-photo {
    width: 4vw;
    height: 4vw;
    border-radius: 50%;
    margin-right: 10px;
}

.popup-mail .expert-details {
    display: flex;
    flex-direction: column;
}

.popup-mail .expert-name {
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

.popup-mail .expert-position {
    margin-top: 10px;
    font-size: 10px;
    color: #666;
}

@media screen and (max-width: 1300px) and (min-width: 600px) {
    .popup-mail .main_text {
        font-size: 2.46vw;
        color: black;
    }

    .popup-mail .dop_text {
        font-size: 1.23vw; 
        margin-top: 0.92vw; 
    }

    .popup-mail .popup-content {
        padding: 3.84vw;
    }

    .popup-mail .close-btn {
        top: 3.84vw;
        right: 3.84vw;
        font-size: 1.53vw;
        width: 1.92vw;
        height: 1.92vw;
    }

    .popup-mail .email-input {
        box-sizing: content-box;
        padding: 0.61vw;
        font-size: 1.23vw;
        margin-right: 0.77vw;
        width: 17.55vw;
    }

    .popup-mail .submit-btn {
        box-sizing: content-box;
        padding: 0.61vw 0.92vw;
        font-size: 1.23vw;
        width: 17.55vw;
    }

    .popup-mail .webinar-cards {
        gap: 0.77vw;
        margin-top: 2.46vw;
        margin-bottom: 2.46vw;
    }

    .popup-mail .webinar-card {
        padding: 1.3vw;
    }

    .popup-mail .webinar-card-name {
        font-size: 1.08vw;
        margin-top: 0.77vw;
        margin-bottom: 0.77vw;
    }

    .popup-mail .webinar-card-desc {
        margin-bottom: 0.77vw;
        font-size: 1.38vw;
    }

    .popup-mail .expert-photo {
        margin-right: 0.77vw; 
    }

    .popup-mail .expert-name {
        font-size: 1.23vw; 
    }

    .popup-mail .expert-position {
        margin-top: 1.23vw; 
        font-size: 0.77vw; 
        color: #666;
    }

    .popup-mail .checkbox-container {
        margin-top: 0.77vw;
        font-size: 0.8vw;
        margin-left: 5.38vw;
        margin-right: 5.38vw;
        width: 36.14vw;
    }
}

@media screen and (max-width: 600px) {
    .popup-mail .main_text {
        font-size: 24px;
        font-weight: bold;
        margin: 0;
        text-align: left;
    }

    .popup-mail .dop_text{
        font-size: 16px;
        text-align: left;
        margin-top: 12px;
    }

    .popup-mail .close-btn {
        top: 20px;
        right: 20px;
        width: 15px;
        height: 15px;
    }
    
    /* Стили для попапа */
    .popup-mail {
        overflow: auto;
    }

    .popup-mail .popup-content {
        max-height: 70vh;
        overflow-y: auto;
    }

    .popup-mail .end-popup-content{
        font-size: 4.56vw;
    }

    .popup-mail .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 20px;
        cursor: pointer;
    }
    
    /* Стили для формы */
    .popup-mail .input-container{
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .popup-mail .checkbox-container {
        display: flex;
        align-items: center;
        margin-top: 10px;
        text-align: left;
        font-size: 12px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .popup-mail .email-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 0;
    }

    .popup-mail .email-input {
        box-sizing: content-box;
        font-size: 16px;
        width: 100%;
    }

    .popup-mail .submit-btn {
        box-sizing: content-box;
        font-size: 16px;
        width: 100%;
        margin-top: 16px;
    }

    .popup-mail .checkbox-container input {
        margin-right: 5px;
    }
    
    /*Стили для карточек*/
    .popup-mail .toggle-btn {
        display: flex;
        border-bottom: 1px solid black;
        border-radius: 0;
        background-color: #f0f8ff00;
    }

    .popup-mail .webinars-list.webinar-show {
        display: flex;
        border-bottom: 1px solid black;
        padding-bottom: 16px;
    }

    .popup-mail .webinar-icon {
        width: 16px;
        height: 16px;
        margin-right: 5px;
        vertical-align: middle;
    }

    .popup-mail .webinar-cards {
        flex-direction: column;
        margin-bottom: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.5s ease-in-out;
    }

    .popup-mail .webinar-cards.webinar-show {
        max-height: 2000px;
        margin-bottom: 15px;
    }

    .popup-mail .webinar-card {
        width: 100%;
        box-sizing: border-box;
    }

    .popup-mail .webinar-card.selected {
        border-color: #28a745;
    }

    .popup-mail .webinar-card-name {
        display: flex;
        align-items: center;
        font-size: 14px;
        margin-top: 10px;
    }

    .popup-mail .webinar-card-desc {
        margin-bottom: 16px;
        font-size: 16px;
    }
    
    /* Стили для информации об эксперте */
    .popup-mail .expert-info {
        display: flex;
        align-items: center;
        margin-top: auto;
    }

    .popup-mail .expert-photo {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin-right: 10px;
    }

    .popup-mail .expert-details {
        display: flex;
        flex-direction: column;
    }

    .popup-mail .expert-name {
        font-weight: bold;
        font-size: 16px;
        margin: 0;
    }

    .popup-mail .expert-position {
        margin-top: 16px;
        font-size: 10px;
        color: #666;
    }
}