/* Основной контейнер */
.feedback-widget {
 
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.feedback-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Информационный блок */
.feedback-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.feedback-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.feedback-info-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.feedback-info-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    animation: pulse 2s ease-in-out infinite;
}

.feedback-info-icon i {
    font-size: 32px;
    color: #fff;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.feedback-info-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feedback-info-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    opacity: 0.95;
}

.feedback-info-time {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.time-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.time-item i {
    margin-right: 10px;
    font-size: 16px;
}

.time-schedule {
    font-size: 18px;
    font-weight: 600;
  
}

.feedback-info-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.feature-item i {
    margin-right: 12px;
    font-size: 18px;
    color: #4ecdc4;
}

/* Обертка формы */
.feedback-form-wrapper {
    padding: 40px;
    background: #fff;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.feedback-form {
    width: 100%;
}

/* Заголовок формы */
.feedback-title {
    margin: 0 0 30px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.feedback-title i {
    color: #667eea;
    font-size: 22px;
}

/* Поля формы */
.feedback-fields {
    margin-bottom: 30px;
}

.feedback-widget .form-group {
    margin-bottom: 25px;
    position: relative;
}

.feedback-widget .form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
    gap: 8px;
}

.feedback-widget .form-group label i {
    color: #667eea;
    font-size: 16px;
}

.feedback-widget .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.feedback-widget .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.feedback-widget .form-control::placeholder {
    color: #aaa;
    opacity: 1;
}

.feedback-widget textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Кастомный чекбокс */
.feedback-widget .checkbox-label {
    font-weight: normal !important;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    padding-left: 35px;
}

.feedback-widget .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.feedback-widget .checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.feedback-widget .checkbox-label:hover input ~ .checkmark {
    border-color: #667eea;
}

.feedback-widget .checkbox-label input:checked ~ .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.feedback-widget .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.feedback-widget .checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.feedback-widget .checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.feedback-widget .checkbox-label a:hover {
    text-decoration: underline;
}

/* Обязательные поля */
.feedback-widget .required {
    color: #e74c3c;
    font-weight: 600;
}

/* Кнопка */
.feedback-widget .btn {
    width: 100%;
    padding: 18px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.feedback-widget .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.feedback-widget .btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.feedback-widget .btn-primary:active {
    transform: translateY(-1px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.feedback-widget .btn-primary:hover .btn-shine {
    left: 100%;
}

.feedback-widget .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Результат отправки */
.feedback-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.feedback-success {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
}

.feedback-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
}

/* Мобильная версия */
@media (max-width: 991px) {
    .feedback-widget {
        margin: 15px;
        border-radius: 16px;
    }
    
    .feedback-info {
        min-height: auto;
        text-align: center;
    }
    
    .feedback-info-content {
        padding: 30px 25px;
    }
    
    .feedback-info-icon {
        margin: 0 auto 20px;
    }
    
    .feedback-info-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .feedback-info-text {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .feedback-info-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .feature-item {
        flex: 1;
        min-width: 140px;
        justify-content: center;
        padding: 10px;
        font-size: 13px;
    }
    
    .feedback-form-wrapper {
        padding: 30px 25px;
        min-height: auto;
    }
    
    .feedback-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .feedback-widget .form-control {
        padding: 16px 18px;
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    .feedback-widget .btn {
        padding: 20px 30px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .feedback-widget {
        margin: 10px;
        border-radius: 12px;
    }
    
    .feedback-info-content {
        padding: 25px 20px;
    }
    
    .feedback-form-wrapper {
        padding: 25px 20px;
    }
    
    .feedback-info-features {
        flex-direction: column;
    }
    
    .feature-item {
        min-width: auto;
    }
} 