.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Защитный отступ */
    box-sizing: border-box;
    overflow: auto;
}

.popup-content {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin: auto;
}

.popup-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}
.getaq{
    display: flex;
    width: 800px;
    padding: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    border-radius: 20px;
    align-items: flex-start;
    background: var(--Main-white, #FFF);

    box-sizing: border-box;

    /* Shadow Sing in */
    box-shadow: 4px 6px 15px 0px rgba(0, 0, 0, 0.25);
}

.inputs{
    display: flex;
    width: 100%;
    align-self: stretch;
    align-items: center;
    align-content: center;
    gap: 32px;
    align-self: stretch;
    flex-direction: column;
}

.header-getaq{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 8px;
}

.header-text{
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    margin: 0px;
    gap: 8px;
    color: #191919;
}

.text-main{
    color: var(--Text-dark, #191919);
}

.chevron {
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.contactbox {
    display: flex;
    gap: 32px;
    flex-direction: column;
    width: 100%;
}

.horizontal {
    display: flex;
    gap: 32px;
    width: 100%;

}

.button-custom {
    padding: 24px 32px;
}

.input-error {
    border: 1px solid #EF3E3E;
}

.input-error::placeholder {
    color: #EF3E3E;
}

select.input-error {
    color: #EF3E3E;
}

.cross {
    cursor: pointer;
    width: 25px;
    height: 25px;
}

@media (max-width: 768px) {
    .popup-content {
        max-width: 95%;
    }
    .getaq {
        padding: 20px;
    }
    .horizontal{
        gap:16px;
        flex-direction: column;
    }
    .inputs{
        gap:16px;
    }
    .cross {
        width: 12px;
        height: 12px;
    }
}
@media (max-width: 1280px) {
    .getaq{
        width: 100%;
    }
}
.custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
    font-family: inherit;
}

.select-header {
    box-shadow: rgba(0, 0, 0, 0.25) 2px 4px 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    background: rgb(255, 255, 255);
    padding: 12px 16px;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 8px;
    transition: 0.3s;
}

.select-header:hover {
    box-shadow: rgba(0, 0, 0, 0.3) 2px 4px 12px;
}

.arrow {
    transition: transform 0.3s;
}

.custom-select.active .arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.25) 2px 4px 10px;
    margin-top: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    z-index: 10;
}

.custom-select.active .dropdown-options {
    max-height: 300px;
    overflow-y: auto;
}

.option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.option:hover {
    background-color: #f5f5f5;
}

.text {
    font-size: 16px;
    color: #333;
}

.selected-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Стили для ошибки валидации */
.custom-select.error .select-header {
    border: 1px solid red !important;
}