/* Enhanced Feedback Page Styles */
.feedback-page {
    min-height: 100vh;
    background: var(--bg-primary);
    padding: 2rem 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.feedback-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.feedback-header {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-contrast);
}

.feedback-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px var(--shadow-dark);
    letter-spacing: -0.02em;
}

.feedback-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-contrast);
    text-decoration: none;
    background: var(--overlay-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.back-link:hover {
    background: var(--overlay-medium);
}

.feedback-form-card {
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 20px 60px var(--shadow-dark),
        0 8px 25px var(--shadow-medium),
        inset 0 1px 0 var(--highlight-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feedback-form-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 25px 70px var(--shadow-darker),
        0 10px 30px var(--shadow-dark);
}

/* Enhanced Feedback Type Selection */
.feedback-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feedback-type {
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.feedback-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--highlight-light), transparent);
    transition: left 0.5s;
}

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

.feedback-type:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 
        0 10px 30px var(--primary-shadow),
        0 4px 15px var(--primary-shadow-light);
}

.feedback-type.active {
    background: var(--primary-gradient);
    border-color: var(--primary-dark);
    color: var(--primary-contrast);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 15px 35px var(--primary-shadow),
        0 5px 20px var(--primary-shadow-light);
}

.feedback-type .icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    transition: transform 0.3s ease;
}

.feedback-type:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.feedback-type.active .icon {
    transform: scale(1.15);
}

.feedback-type .label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.feedback-type .description {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

.feedback-type.active .description {
    opacity: 0.95;
}

/* Enhanced Form Styling */
.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--error-color);
    font-weight: 700;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--input-text);
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--input-bg-focus);
    box-shadow: 
        0 0 0 3px var(--primary-shadow-light),
        0 4px 12px var(--primary-shadow);
    transform: translateY(-1px);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Enhanced Star Rating */
.star-rating {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
    align-items: center;
}

.star {
    font-size: 2.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 4px var(--shadow-color);
}

.star:hover {
    transform: scale(1.2) rotate(10deg);
    color: var(--star-hover);
    text-shadow: 0 4px 8px var(--star-shadow);
}

.star.active {
    color: var(--star-active);
    transform: scale(1.1);
    text-shadow: 0 3px 6px var(--star-active-shadow);
}

.star.active:hover {
    transform: scale(1.25) rotate(-5deg);
}

.rating-label {
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Message Styles */
.message {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message.success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.message.error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: var(--bg-secondary);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.back-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

/* Submit Button */
.submit-btn {
    min-width: 140px;
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: var(--primary-contrast);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-shadow);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Enhanced Loading State */
.loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--spinner-border);
    border-top: 2px solid var(--spinner-active);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .feedback-container {
        padding: 0 1rem;
    }
    
    .feedback-header h1 {
        font-size: 2.5rem;
    }
    
    .feedback-header p {
        font-size: 1.1rem;
    }
    
    .feedback-form-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .feedback-types {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .feedback-type {
        padding: 1.25rem 1rem;
    }
    
    .feedback-type .icon {
        font-size: 2rem;
    }
    
    .star {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .feedback-header h1 {
        font-size: 2rem;
    }
    
    .feedback-form-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .star {
        font-size: 1.75rem;
        gap: 0.25rem;
    }
    
    .submit-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Enhanced Accessibility */
.feedback-type:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible,
.submit-btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.star:focus-visible {
    outline: 2px solid var(--star-active);
    outline-offset: 4px;
    border-radius: 50%;
}

/* Animation for form appearance */
.feedback-form-card {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Hover effects for better interactivity */
.form-input:hover,
.form-textarea:hover {
    border-color: var(--input-border-hover);
    background: var(--input-bg-hover);
}

/* Enhanced visual feedback for required fields */
.form-input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--error-color);
    background: var(--error-bg-light);
}

.form-input:valid:not(:focus):not(:placeholder-shown) {
    border-color: var(--success-color);
    background: var(--success-bg-light);
}

/* Success checkmark animation */
@keyframes checkmark {
    0% {
        transform: scale(0) rotate(45deg);
    }
    50% {
        transform: scale(1.2) rotate(45deg);
    }
    100% {
        transform: scale(1) rotate(45deg);
    }
}

.message.success .icon {
    animation: checkmark 0.6s ease-in-out;
} 

.feedback-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: var(--primary-contrast);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: all 0.3s ease;
}

.feedback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-dark);
}

.feedback-button i {
    font-size: 16px;
}

.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.feedback-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px var(--shadow-dark);
}

.feedback-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.feedback-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0;
}

.feedback-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feedback-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--input-text);
}

.feedback-input::placeholder {
    color: var(--input-placeholder);
}

.feedback-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.feedback-textarea {
    min-height: 120px;
    resize: vertical;
}

.feedback-submit {
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    color: var(--primary-contrast);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-submit:hover {
    transform: translateY(-2px);
}

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

.feedback-error {
    color: var(--error-text);
    background: var(--error-bg);
    padding: 0.75rem;
    border-radius: 8px;
}

.feedback-success {
    color: var(--success-text);
    background: var(--success-bg);
    padding: 0.75rem;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .feedback-button {
        right: 10px;
        bottom: 10px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .feedback-content {
        width: 95%;
        padding: 1.5rem;
    }
} 