/* Стили для формы мастер-класса */
.masterclass-form-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.masterclass-form-container {
    max-width: 1200px;
    padding-top: 40px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
}

.masterclass-header {
    background: linear-gradient(135deg, #1189BF 0%, #0d6b97 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.masterclass-title {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.masterclass-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
}

.masterclass-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.masterclass-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    border-left: 5px solid #FDBD24;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 10px 0;
    color: #555;
    font-size: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.info-list li:last-child {
    border-bottom: none;
}

.form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.form-title {
    font-size: 28px;
    color: #1189BF;
    margin-bottom: 10px;
    text-align: center;
}

.form-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.masterclass-form {
    max-width: 500px;
    margin: 0 auto;
}

.masterclass-form .form-group {
    margin-bottom: 25px;
}

.masterclass-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.masterclass-form .required {
    color: #e74c3c;
}

.masterclass-form .form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.masterclass-form .form-control:focus {
    outline: none;
    border-color: #1189BF;
    background: white;
}

.masterclass-form .form-control.error {
    border-color: #e74c3c;
    background: #fff5f5;
}

.masterclass-form select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.masterclass-form .form-checkbox {
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.masterclass-form .form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.masterclass-form .form-checkbox label {
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.masterclass-form .privacy-note {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.masterclass-submit-btn {
    width: 100%;
    padding: 18px;
    background: #FDBD24;
    color: #333;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(253, 189, 36, 0.3);
}

.masterclass-submit-btn:hover {
    background: #ffa726;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 189, 36, 0.4);
}

.masterclass-submit-btn:active {
    transform: translateY(0);
}

.form-success-message {
    text-align: center;
    padding: 40px 20px;
    background: #f0fff4;
    border-radius: 20px;
    border: 2px solid #2ecc71;
}

.form-success-message .success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.form-success-message h3 {
    color: #27ae60;
    font-size: 24px;
    margin-bottom: 15px;
}

.form-success-message p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 992px) {
    .masterclass-content {
        grid-template-columns: 1fr;
    }
    
    .masterclass-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .masterclass-form-section {
        padding: 30px 0;
    }
    
    .masterclass-header {
        padding: 30px 20px;
    }
    
    .masterclass-title {
        font-size: 24px;
    }
    
    .masterclass-subtitle {
        font-size: 16px;
    }
    
    .masterclass-content {
        padding: 20px;
        gap: 20px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .form-wrapper {
        padding: 20px;
    }
    
    .form-title {
        font-size: 22px;
    }
}

/* Стили для ссылки на политику конфиденциальности */
.privacy-link {
    color: #1189BF;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #FDBD24;
    text-decoration-style: solid;
}

.privacy-link:visited {
    color: #8e44ad;
}

/* Стили для модального окна успеха */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000; /* Очень высокий z-index */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalAppear 0.3s ease;
    margin: auto;
}

.modal-success {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    margin: 20px;
    text-align: center;
    position: relative;
    animation: slideInUp 0.4s ease;
}

.modal-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

.modal-success-title {
    color: #1189BF;
    font-size: 28px;
    margin-bottom: 15px;
}

.modal-success-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-success-details {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: left;
    border-left: 4px solid #FDBD24;
}

.modal-success-details p {
    margin: 8px 0;
    color: #333;
}

.modal-success-btn {
    background: #1189BF;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    width: 100%;
}

.modal-success-btn:hover {
    background: #FDBD24;
    color: #1e1e1e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(253,189,36,0.3);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Кнопка закрытия крестик */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #1189BF;
    transform: rotate(90deg);
}

/* Обновите позиционирование для модального контента */
.modal-content {
    position: relative;
}