/* Попап с формой номера телефона */
.phone-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.phone-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.phone-popup {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone-popup-overlay.active .phone-popup {
    transform: scale(1);
}

.phone-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-size: 18px;
    color: #666;
}

.phone-popup-close:hover {
    background: #e0e0e0;
    color: #333;
}

.phone-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #29220B;
    text-align: center;
    margin-bottom: 16px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.phone-popup-description {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

.phone-popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.phone-popup-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    transition: border-color 0.3s ease;
    background: #fff;
}

.phone-popup-input:focus {
    outline: none;
    border-color: #f8d971;
    box-shadow: 0 0 0 3px rgba(248, 217, 113, 0.2);
}

.phone-popup-input::placeholder {
    color: #999;
}

.phone-popup-button {
    background: #f8d971;
    color: #29220B;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Montserrat', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phone-popup-button:hover {
    background: #ffe699;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 217, 113, 0.4);
}

.phone-popup-button:active {
    transform: translateY(0);
}

.phone-popup-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.phone-popup-privacy {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.4;
}

.phone-popup-privacy a {
    color: #f8d971;
    text-decoration: none;
}

.phone-popup-privacy a:hover {
    text-decoration: underline;
}

/* Анимация загрузки для кнопки */
.phone-popup-button.loading {
    position: relative;
    color: transparent;
}

.phone-popup-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #29220B;
    border-radius: 50%;
    animation: popup-spin 1s linear infinite;
}

@keyframes popup-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптив */
@media (max-width: 768px) {
    .phone-popup {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .phone-popup-title {
        font-size: 24px;
    }
    
    .phone-popup-description {
        font-size: 14px;
    }
    
    .phone-popup-input,
    .phone-popup-button {
        padding: 14px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .phone-popup {
        padding: 25px 15px;
    }
    
    .phone-popup-title {
        font-size: 22px;
    }
} 