/* Feedback Modal Styles */
.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.feedback-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.feedback-modal {
    background: linear-gradient(135deg, #FFE4B5 0%, #FFDAB9 50%, #FFFACD 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 2px solid rgba(255, 140, 105, 0.3);
}

.feedback-modal-overlay.active .feedback-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.feedback-modal-header {
    background: linear-gradient(135deg, #FF8C69 0%, #FFA07A 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 18px 18px 0 0;
    position: relative;
    overflow: hidden;
}

.feedback-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.feedback-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
}

.feedback-modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 5px 0 0 0;
    position: relative;
    z-index: 1;
}

.feedback-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.feedback-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Body */
.feedback-modal-body {
    padding: 30px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feedback-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feedback-form-label {
    font-weight: 500;
    color: #2D3748;
    font-size: 0.9rem;
}

.feedback-form-input,
.feedback-form-select,
.feedback-form-textarea {
    padding: 12px 15px;
    border: 2px solid rgba(255, 140, 105, 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
}

.feedback-form-input:focus,
.feedback-form-select:focus,
.feedback-form-textarea:focus {
    outline: none;
    border-color: #FF8C69;
    box-shadow: 0 0 0 3px rgba(255, 140, 105, 0.1);
    background: white;
}

.feedback-form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
}

.feedback-form-input::placeholder,
.feedback-form-textarea::placeholder {
    color: #A0AEC0;
    font-style: italic;
}

/* Submit Button */
.feedback-form-submit {
    background: linear-gradient(135deg, #FF8C69 0%, #FFA07A 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.feedback-form-submit::before {
    content: '';
    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.6s;
}

.feedback-form-submit:hover::before {
    left: 100%;
}

.feedback-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 105, 0.4);
}

.feedback-form-submit:active {
    transform: translateY(0);
}

.feedback-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.feedback-form-submit.loading {
    position: relative;
}

.feedback-form-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Feedback Form Checkboxes */
.feedback-form-checkboxes {
    margin: 1.5rem 0;
}

.feedback-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feedback-checkbox-group:last-child {
    margin-bottom: 0;
}

.feedback-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #667eea;
}

.feedback-checkbox-label {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #64748b;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.feedback-checkbox-label a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.feedback-checkbox-label a:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: underline;
    text-decoration-color: #3b82f6;
}

/* Success Message */
.feedback-success {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #96d7d0 0%, #B4D7D3 100%);
    border-radius: 15px;
    color: #2D3748;
    margin-top: 20px;
    display: none;
}

.feedback-success.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.feedback-success-icon {
    font-size: 3rem;
    color: #2D3748;
    margin-bottom: 15px;
}

.feedback-success-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feedback-success-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

/* Error Message */
.feedback-error {
    background: linear-gradient(135deg, #e05678 0%, #E9869E 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    display: none;
    font-size: 0.9rem;
}

.feedback-error.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .feedback-modal {
        width: 95%;
        margin: 20px;
        max-height: 95vh;
    }
    
    .feedback-modal-header {
        padding: 15px 20px;
    }
    
    .feedback-modal-title {
        font-size: 1.3rem;
    }
    
    .feedback-modal-body {
        padding: 20px;
    }
    
    .feedback-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feedback-form-input,
    .feedback-form-select,
    .feedback-form-textarea {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .feedback-form-submit {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    /* Mobile styles for feedback checkboxes */
    .feedback-checkbox-label {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .feedback-checkbox-group {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .feedback-checkbox-group input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-top: 1px;
    }
}

/* Confetti Animation */
.feedback-confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    animation: confettiFall 3s ease-in-out infinite;
}

.feedback-confetti:nth-child(1) { top: 10%; left: 10%; background: #E9869E; border-radius: 50%; animation-delay: 0s; }
.feedback-confetti:nth-child(2) { top: 20%; right: 15%; background: #C8A2C6; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); animation-delay: 0.5s; }
.feedback-confetti:nth-child(3) { bottom: 20%; left: 20%; background: #EFCC4B; transform: rotate(45deg); animation-delay: 1s; }
.feedback-confetti:nth-child(4) { bottom: 10%; right: 10%; background: #96d7d0; border-radius: 50%; animation-delay: 1.5s; }

@keyframes confettiFall {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
        opacity: 1;
    }
}
