/* ============================================================
   СТРАНИЦА ОТЗЫВОВ — СТИЛИ
   ============================================================ */

/* ===== ОБЩИЕ ===== */
.feedback-page {
    max-width: 1100px;
    margin: 130px auto 40px;
    padding: 0 20px 40px;
    min-height: 60vh;
}

/* ===== ЗАГОЛОВОК ===== */
.feedback-header {
    text-align: center;
    margin-bottom: 50px;
}
.feedback-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4em;
    color: #1A1A2E;
    margin-bottom: 10px;
}
.feedback-header h1 i {
    color: #ADD8E6;
    margin-right: 10px;
}
.feedback-header p {
    font-size: 1.05em;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ФОРМА ОТЗЫВА ===== */
.feedback-form-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 35px 40px;
    margin-bottom: 50px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0edf8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.feedback-form-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0edf8;
}
.feedback-form-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #1A1A2E;
}
.feedback-form-header h2 i {
    color: #ADD8E6;
    margin-right: 8px;
}
.feedback-form-header p {
    font-size: 0.9em;
    color: #888;
    margin-top: 4px;
}

/* ===== СЕКЦИИ ===== */
.fb-section {
    margin-bottom: 36px;
}
.fb-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8B6FC4;
    margin-bottom: 4px;
    display: block;
}
.fb-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #1A1A2E;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid #f0edf8;
}

/* ===== ПОЛЯ ===== */
.fb-field {
    margin-bottom: 16px;
}
.fb-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 5px;
}
.fb-field .req {
    color: #d32f2f;
    margin-left: 2px;
}
.fb-field .hint {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #9090B0;
    margin-top: 2px;
}

.fb-field input[type="text"],
.fb-field input[type="email"],
.fb-field select,
.fb-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e4e0f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: #1A1A2E;
    background: #faf8ff;
    transition: border-color 0.2s;
    outline: none;
}
.fb-field input:focus,
.fb-field select:focus,
.fb-field textarea:focus {
    border-color: #8B6FC4;
    background: #fff;
}
.fb-field textarea {
    resize: vertical;
    min-height: 80px;
}

.select-wrap {
    position: relative;
}
.select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #9090B0;
    pointer-events: none;
}

/* ===== СЕТКА 2 КОЛОНКИ (ровные поля) ===== */
.fb-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.fb-grid-2 .fb-field {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}
.fb-grid-2 .fb-field label {
    font-size: 13px;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 5px;
    min-height: 42px; /* ← фиксируем высоту для двух строк */
    display: flex;
    align-items: flex-start;
}
.fb-grid-2 .fb-field input,
.fb-grid-2 .fb-field select {
    width: 100%;
    padding: 10px 14px;
    height: 44px; /* ← фиксируем высоту для полей */
}
@media (max-width: 600px) {
    .fb-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .fb-grid-2 .fb-field label {
        min-height: auto;
    }
    .fb-grid-2 .fb-field input {
        height: auto;
    }
}

/* ===== ЧЕКБОКСЫ / РАДИО ===== */
.fb-check-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fb-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
.fb-check-item input[type="checkbox"],
.fb-check-item input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #8B6FC4;
    flex-shrink: 0;
    cursor: pointer;
}
.fb-check-item span {
    font-size: 14px;
    color: #1A1A2E;
    line-height: 1.5;
}

/* ===== ЗВЁЗДЫ ===== */
.stars-group {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
    justify-content: flex-end;
}
.stars-group input[type="radio"] {
    display: none;
}
.stars-group label {
    font-size: 30px;
    cursor: pointer;
    color: #e4e0f0;
    transition: color 0.15s;
    margin-bottom: 0;
    line-height: 1;
    user-select: none;
}
.stars-group label i {
    font-size: 30px;
}
.stars-group label:hover,
.stars-group label:hover ~ label,
.stars-group input[type="radio"]:checked ~ label {
    color: #F8C8DC;
}

/* ===== ШКАЛА 1-10 ===== */
.fb-scale-wrap {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.fb-scale-wrap input[type="radio"] {
    display: none;
}
.fb-scale-wrap label {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e4e0f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4A4A6A;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s;
    margin-bottom: 0;
}
.fb-scale-wrap label:hover {
    border-color: #8B6FC4;
    color: #8B6FC4;
}
.fb-scale-wrap input[type="radio"]:checked + label {
    background: #8B6FC4;
    border-color: #8B6FC4;
    color: #fff;
}
.fb-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}
.fb-scale-labels span {
    font-size: 10px;
    color: #9090B0;
}

/* ===== СОГЛАСИЕ ===== */
.consent-field {
    margin: 20px 0 10px;
}
.consent-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
}
.consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #ADD8E6;
    flex-shrink: 0;
    cursor: pointer;
}
.consent-label span {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* ===== РАЗДЕЛИТЕЛЬ ===== */
.fb-divider {
    height: 0.5px;
    background: #f0edf8;
    margin: 32px 0;
}

/* ===== КНОПКА ===== */
.fb-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8B6FC4, #C9456A);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.fb-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(139,111,196,0.3);
}
.fb-submit-btn:active {
    transform: scale(0.98);
}
.fb-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== УСПЕХ ===== */
.feedback-success {
    text-align: center;
    padding: 40px 20px;
    display: none;
}
.feedback-success .success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #4CAF50;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.feedback-success h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3em;
    color: #1A1A2E;
    margin-bottom: 6px;
}
.feedback-success p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
}

/* ===== ГАЛЕРЕЯ ОТЗЫВОВ ===== */
.reviews-gallery {
    max-width: 1100px;
    margin: 0 auto;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0edf8;
}
.reviews-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #1A1A2E;
}
.reviews-header h2 i {
    color: #ADD8E6;
    margin-right: 8px;
}

.reviews-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}
.reviews-sort span {
    font-size: 13px;
    color: #888;
}
.sort-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #9090B0;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 16px;
    transition: all 0.2s;
    font-family: 'Open Sans', sans-serif;
}
.sort-btn:hover {
    color: #1A1A2E;
    background: #f5f2ff;
}
.sort-btn.active {
    color: #8B6FC4;
    background: #f5f2ff;
}

/* ===== СЕТКА ОТЗЫВОВ ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    min-height: 200px;
}

.review-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 22px;
    border: 1px solid #f0edf8;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.review-card .review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}
.review-card .review-rating i {
    color: #F8C8DC;
    font-size: 18px;
}

.review-card .review-text {
    font-size: 0.95em;
    line-height: 1.7;
    color: #444;
    flex-grow: 1;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-card .review-text.full {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.review-card .review-author {
    font-weight: 600;
    color: #1A1A2E;
    font-size: 14px;
}
.review-card .review-city {
    font-size: 12px;
    color: #9090B0;
}
.review-card .review-program {
    font-size: 11px;
    color: #8B6FC4;
    background: #f5f2ff;
    padding: 2px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 6px;
    align-self: flex-start;
}

.review-expand-btn {
    background: none;
    border: none;
    color: #8B6FC4;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    align-self: flex-start;
}
.review-expand-btn:hover {
    color: #C9456A;
}

/* ===== ЗАГРУЗЧИК ===== */
.reviews-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #9090B0;
}
.reviews-loader i {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

/* ===== КНОПКА "ЗАГРУЗИТЬ ЕЩЁ" ===== */
.reviews-load-more {
    text-align: center;
    margin-top: 35px;
}
.load-more-btn {
    background: none;
    border: 1.5px solid #e4e0f0;
    padding: 10px 35px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.load-more-btn:hover {
    border-color: #8B6FC4;
    color: #8B6FC4;
    background: #f5f2ff;
}

/* ===== ПУСТОЕ СОСТОЯНИЕ ===== */
.no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #9090B0;
}
.no-reviews i {
    font-size: 42px;
    display: block;
    margin-bottom: 14px;
    color: #e4e0f0;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .feedback-page {
        margin-top: 180px;
        padding: 0 12px 30px;
    }
    .feedback-header h1 {
        font-size: 1.8em;
    }
    .feedback-form-wrapper {
        padding: 20px 16px;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .reviews-sort {
        flex-wrap: wrap;
    }
    .stars-group label {
        font-size: 26px;
    }
    .stars-group label i {
        font-size: 26px;
    }
    .fb-submit-btn {
        font-size: 14px;
        padding: 12px;
    }
    .fb-scale-wrap label {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}