/* Feedback Page Specific Styles */

/* CSS Custom Properties for Feedback Page */
:root {
    --feedback-primary: #3B4C6B;
    --feedback-secondary: #AFC4D8;
    --feedback-success: #27ae60;
    --feedback-error: #e74c3c;
    --feedback-bg: #F9F8F6;
    --feedback-accent-coral: #FF6B7A;
    --feedback-accent-teal: #4ECDC4;
    --feedback-gold: #FFD700;
}

/* Feedback Hero Section */
.feedback-hero {
    padding: clamp(120px, 18vh, 160px) 0 clamp(60px, 10vh, 80px);
    background: linear-gradient(135deg, #3B4C6B 0%, #4ECDC4 50%, #AFC4D8 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feedback-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 1.1;
        transform: scale(1.05);
    }
}

.feedback-header {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.feedback-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    color: #1a1a1a;
    padding: clamp(8px, 1vw, 12px) clamp(18px, 2.5vw, 28px);
    border-radius: var(--border-radius-xl);
    font-size: clamp(13px, 1.6vw, 16px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 165, 0, 0.6);
    }
}

.feedback-header h1 {
    font-size: clamp(36px, 6.5vw, 64px);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    color: white;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.feedback-header p {
    font-size: clamp(17px, 2.5vw, 22px);
    opacity: 0.95;
    line-height: 1.7;
    letter-spacing: 0.01em;
    max-width: 700px;
    margin: 0 auto;
}

/* Feedback Form Section */
.feedback-form-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, #F3DCE2 0%, rgba(199, 175, 195, 0.3) 100%);
}

.feedback-form-container {
    max-width: 850px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    padding: clamp(2.5rem, 5vw, 3.5rem);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(175, 196, 216, 0.3);
}

/* Form Sections */
.form-section {
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-bottom: 2px solid rgba(59, 76, 107, 0.1);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    color: var(--feedback-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-note {
    font-size: clamp(13px, 1.6vw, 15px);
    color: var(--color-charcoal);
    opacity: 0.7;
    margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    padding: clamp(0.75rem, 1.5vw, 1rem);
    background: rgba(175, 196, 216, 0.15);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--feedback-secondary);
}

.section-intro {
    font-size: clamp(15px, 1.9vw, 17px);
    color: var(--color-charcoal);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.7;
}

/* Form Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.form-group {
    margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    color: var(--feedback-primary);
    font-weight: 600;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.5;
}

.required-field {
    color: var(--feedback-error);
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: clamp(12px, 2vw, 16px);
    border: 2px solid rgba(59, 76, 107, 0.2);
    border-radius: var(--border-radius-sm);
    font-size: clamp(14px, 1.8vw, 16px);
    color: var(--color-charcoal);
    background: white;
    transition: all var(--transition-base);
    font-family: 'Poppins', sans-serif;
    min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--feedback-primary);
    box-shadow: 0 0 0 3px rgba(59, 76, 107, 0.1);
    transform: translateY(-2px);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233B4C6B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.field-hint {
    font-size: clamp(12px, 1.5vw, 14px);
    color: var(--color-charcoal);
    opacity: 0.7;
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    font-style: italic;
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: clamp(4px, 0.5vw, 8px);
    margin-top: clamp(0.5rem, 1vw, 0.75rem);
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: clamp(28px, 4vw, 36px);
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0 !important;
    line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--feedback-gold);
    transform: scale(1.1);
}

.star-rating input:checked ~ label {
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

/* NPS Rating */
.nps-rating {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    flex-wrap: wrap;
    margin-top: clamp(0.5rem, 1vw, 0.75rem);
}

.nps-label-left,
.nps-label-right {
    font-size: clamp(12px, 1.5vw, 14px);
    color: var(--color-charcoal);
    opacity: 0.7;
    min-width: 70px;
}

.nps-label-left {
    text-align: right;
}

.nps-label-right {
    text-align: left;
}

.nps-buttons {
    display: flex;
    gap: clamp(4px, 0.5vw, 6px);
    flex-wrap: wrap;
}

.nps-buttons input {
    display: none;
}

.nps-buttons label {
    width: clamp(32px, 4vw, 40px);
    height: clamp(32px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(59, 76, 107, 0.3);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(12px, 1.5vw, 14px);
    color: var(--feedback-primary);
    transition: all 0.2s ease;
    background: white;
    margin-bottom: 0 !important;
}

.nps-buttons label:hover {
    border-color: var(--feedback-primary);
    background: rgba(59, 76, 107, 0.05);
    transform: translateY(-2px);
}

.nps-buttons input:checked + label {
    background: var(--feedback-primary);
    color: white;
    border-color: var(--feedback-primary);
    box-shadow: 0 4px 12px rgba(59, 76, 107, 0.3);
}

/* NPS Score Colors */
.nps-buttons input[value="0"]:checked + label,
.nps-buttons input[value="1"]:checked + label,
.nps-buttons input[value="2"]:checked + label,
.nps-buttons input[value="3"]:checked + label,
.nps-buttons input[value="4"]:checked + label,
.nps-buttons input[value="5"]:checked + label,
.nps-buttons input[value="6"]:checked + label {
    background: var(--feedback-error);
    border-color: var(--feedback-error);
}

.nps-buttons input[value="7"]:checked + label,
.nps-buttons input[value="8"]:checked + label {
    background: #f39c12;
    border-color: #f39c12;
}

.nps-buttons input[value="9"]:checked + label,
.nps-buttons input[value="10"]:checked + label {
    background: var(--feedback-success);
    border-color: var(--feedback-success);
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    margin-bottom: clamp(1rem, 2vw, 1.25rem) !important;
}

.checkbox-group input[type="checkbox"] {
    width: clamp(20px, 2.5vw, 24px) !important;
    height: clamp(20px, 2.5vw, 24px) !important;
    min-width: clamp(20px, 2.5vw, 24px);
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--feedback-primary);
    flex-shrink: 0;
}

.checkbox-group label {
    margin-bottom: 0 !important;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.6;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-group a {
    color: var(--feedback-primary);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.checkbox-group a:hover {
    color: var(--feedback-accent-teal);
}

/* Conditional Sections */
.conditional-section {
    display: none;
    animation: slideDown 0.4s ease-out;
}

.conditional-section.visible {
    display: block;
}

.conditional-field {
    display: none;
    animation: slideDown 0.3s ease-out;
}

.conditional-field.visible {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonial Section */
.testimonial-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border-radius: var(--border-radius-md);
    padding: clamp(1.5rem, 3vw, 2rem) !important;
    border: 2px solid rgba(255, 215, 0, 0.3) !important;
    margin-top: clamp(1.5rem, 3vw, 2rem);
}

.testimonial-section h3 {
    color: var(--feedback-primary);
}

.highlight-field textarea {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 255, 255, 0.9);
}

.highlight-field textarea:focus {
    border-color: var(--feedback-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* Photo Consent Section */
.photo-consent-section {
    background: rgba(249, 248, 246, 0.8);
    border-radius: var(--border-radius-md);
    padding: clamp(1.5rem, 3vw, 2rem) !important;
}

.consent-box {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: flex-start;
}

.consent-icon {
    width: clamp(50px, 6vw, 60px);
    height: clamp(50px, 6vw, 60px);
    background: linear-gradient(135deg, var(--feedback-accent-teal) 0%, #3B9B93 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(22px, 3vw, 28px);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.consent-content {
    flex: 1;
}

.consent-content p {
    color: var(--color-charcoal);
    margin-bottom: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    font-size: clamp(14px, 1.8vw, 16px);
}

/* Privacy Section */
.privacy-section {
    background: linear-gradient(135deg, #F9F8F6 0%, rgba(175, 196, 216, 0.1) 100%);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(175, 196, 216, 0.3);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.privacy-info {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: flex-start;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.privacy-icon {
    width: clamp(50px, 6vw, 60px);
    height: clamp(50px, 6vw, 60px);
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(22px, 3vw, 28px);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.privacy-text h4 {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    color: var(--feedback-primary);
    font-weight: 600;
}

.privacy-text p {
    color: var(--color-charcoal);
    opacity: 0.85;
    line-height: 1.6;
    font-size: clamp(14px, 1.8vw, 16px);
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding-top: clamp(1.5rem, 3vw, 2rem);
    margin-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 2px solid rgba(59, 76, 107, 0.1);
}

.feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    padding: clamp(16px, 2.5vw, 20px) clamp(36px, 6vw, 56px);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    min-width: clamp(200px, 30vw, 260px);
    min-height: 56px;
}

.feedback-btn i {
    flex-shrink: 0;
}

.feedback-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Progress Bar */
.submit-progress {
    margin-top: clamp(1.5rem, 3vw, 2rem);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar {
    width: 100%;
    height: clamp(8px, 1vw, 10px);
    background: rgba(175, 196, 216, 0.3);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B4C6B 0%, #4ECDC4 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: var(--border-radius-xl);
    animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.progress-text {
    text-align: center;
    color: var(--feedback-primary);
    font-weight: 600;
    font-size: clamp(14px, 1.8vw, 16px);
}

/* Thank You Section */
.thank-you-section {
    padding: clamp(6rem, 12vw, 10rem) 0;
    background: linear-gradient(135deg, #F3DCE2 0%, rgba(199, 175, 195, 0.3) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(3rem, 6vw, 4rem);
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.thank-you-icon {
    width: clamp(80px, 12vw, 100px);
    height: clamp(80px, 12vw, 100px);
    background: linear-gradient(135deg, var(--feedback-accent-coral) 0%, #FF8A95 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(1.5rem, 3vw, 2rem);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.thank-you-icon i {
    font-size: clamp(36px, 5vw, 48px);
    color: white;
}

.thank-you-content h2 {
    font-size: clamp(28px, 5vw, 40px);
    color: var(--feedback-primary);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
}

.thank-you-content p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-charcoal);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    line-height: 1.7;
}

.thank-you-actions {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    justify-content: center;
    flex-wrap: wrap;
}

.thank-you-actions .btn {
    min-width: 180px;
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--feedback-error);
}

.error-message {
    color: var(--feedback-error);
    font-size: clamp(12px, 1.5vw, 14px);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.3s ease-out;
}

.error-message::before {
    content: "⚠";
    font-size: 1em;
}

/* Form Messages */
.form-message {
    padding: clamp(1rem, 2vw, 1.25rem);
    border-radius: var(--border-radius-md);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    animation: slideInDown 0.5s ease-out;
}

.form-message-success {
    background: rgba(39, 174, 96, 0.1);
    border: 2px solid rgba(39, 174, 96, 0.3);
    color: #1e8449;
}

.form-message-error {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid rgba(231, 76, 60, 0.3);
    color: #922b21;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .feedback-hero {
        padding: clamp(100px, 15vh, 140px) 0 clamp(40px, 8vh, 60px);
    }
    
    .feedback-header h1 {
        font-size: clamp(32px, 8vw, 48px);
    }
    
    .feedback-form-container {
        padding: clamp(1.75rem, 3vw, 2.25rem);
        margin: 0 clamp(1rem, 2.5vw, 1.5rem);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 2vw, 1.25rem);
    }
    
    .consent-box {
        flex-direction: column;
        text-align: center;
    }
    
    .consent-icon {
        margin: 0 auto;
    }
    
    .privacy-info {
        flex-direction: column;
        text-align: center;
    }
    
    .privacy-icon {
        margin: 0 auto;
    }
    
    .nps-rating {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nps-label-left,
    .nps-label-right {
        text-align: left;
    }
    
    .nps-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .feedback-hero {
        padding: clamp(70px, 10vh, 100px) 0 clamp(30px, 6vh, 50px);
    }
    
    .feedback-form-section,
    .thank-you-section {
        padding: clamp(3rem, 6vw, 4rem) 0;
    }
    
    .star-rating label {
        font-size: clamp(24px, 6vw, 32px);
    }
    
    .nps-buttons label {
        width: clamp(28px, 8vw, 36px);
        height: clamp(28px, 8vw, 36px);
        font-size: clamp(11px, 3vw, 13px);
    }
    
    .feedback-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .feedback-badge,
    .thank-you-icon,
    .progress-fill {
        animation: none;
    }
    
    .conditional-section,
    .conditional-field,
    .form-message,
    .error-message {
        animation: none;
    }
}

/* Focus States */
.star-rating input:focus + label,
.nps-buttons input:focus + label {
    outline: 3px solid var(--feedback-primary);
    outline-offset: 2px;
}

.feedback-btn:focus-visible {
    outline: 3px solid var(--feedback-primary);
    outline-offset: 3px;
}
