/* Стили для чекбокса согласия */
.consent-checkbox {
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.consent-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.consent-checkbox label {
    line-height: 1.4;
    color: #333;
}

.privacy-link {
    color: #686de0;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #5a5fb8;
    text-decoration: none;
}

/* Стили для модального окна */
.modal {
    font-family: Roboto-Regular;
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

.modal.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #ffffff;
    margin: calc(5% + 50px) auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #686de0 0%, #4834d4 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(85vh - 100px);
}

.close {
    color: rgba(255, 255, 255, 0.8);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover,
.close:focus {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.modal-body p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
    font-size: 14px;
}

.modal-body h3 {
    color: #686de0;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 18px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #555;
}

.consent-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

/* Стили для кнопки отправки */
button[type="submit"]:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .modal-content {
        margin: calc(10% + 50px) auto;
        width: 95%;
        max-height: 80vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .consent-checkbox {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: calc(5% + 50px) auto;
        width: 98%;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 15px;
    }
}