/* Modern Feedback Form Styling - Scoped to feedback form only */
.feedback-page-container * {
    box-sizing: border-box;
}

/* Main Container Styles (moved from template) */
.feedback-page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.feedback-bg-element-1 {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(149, 98, 10, 0.15), rgba(184, 134, 11, 0.15));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.feedback-bg-element-2 {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(149, 98, 10, 0.12), rgba(184, 134, 11, 0.12));
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.feedback-bg-element-3 {
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, rgba(149, 98, 10, 0.1), rgba(184, 134, 11, 0.1));
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.feedback-bg-element-4 {
    position: absolute;
    bottom: 30%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(149, 98, 10, 0.14), rgba(184, 134, 11, 0.14));
    border-radius: 50%;
    animation: float 7s ease-in-out infinite reverse;
}

.feedback-bg-element-5 {
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90px;
    height: 90px;
    background: linear-gradient(45deg, rgba(149, 98, 10, 0.08), rgba(184, 134, 11, 0.08));
    border-radius: 50%;
    animation: float 9s ease-in-out infinite;
}

/* Grid Pattern */
.feedback-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(102, 126, 234, 0.06) 1px, transparent 0);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-30px) rotate(270deg); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Form Wrapper Styles (moved from template) */
.feedback-form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.feedback-header {
    text-align: center;
    margin-bottom: 30px;
}

.feedback-header h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.3s ease;
    cursor: default;
    text-shadow: none;
}

.feedback-header h2:hover {
    background: linear-gradient(135deg, #f093fb 0%, #764ba2 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
}

.ticket-info {
    color: #3653d6;
    font-size: 14px;
    margin: 0 0 10px 0;
    transition: all 0.3s ease;
}

.ticket-name {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ticket-name:hover {
    background: linear-gradient(135deg, #f093fb 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
}

/* Thank You Page Styles (moved from template) */
.thank-you-page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

.thank-you-bg-element-1 {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(149, 98, 10, 0.15), rgba(184, 134, 11, 0.15));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.thank-you-bg-element-2 {
    position: absolute;
    top: 25%;
    right: 20%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(149, 98, 10, 0.12), rgba(184, 134, 11, 0.12));
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.thank-you-bg-element-3 {
    position: absolute;
    bottom: 25%;
    left: 25%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(149, 98, 10, 0.1), rgba(184, 134, 11, 0.1));
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.thank-you-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(149, 98, 10, 0.06) 1px, transparent 0);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.thank-you-content {
    text-align: center;
    max-width: 400px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.thank-you-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.thank-you-checkmark {
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.thank-you-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.thank-you-title:hover {
    background: linear-gradient(135deg, #f093fb 0%, #764ba2 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
}

.thank-you-message {
    color: #6b5b47;
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.thank-you-submessage {
    color: #8b7355;
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.4;
}

.feedback-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.feedback-form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.feedback-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.form-label:hover {
    background: linear-gradient(135deg, #f093fb 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 6px rgba(102, 126, 234, 0.3));
}

/* Custom Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.radio-option:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f2ff 0%, #f8f0ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    margin: 0;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    background: #fff;
}

.radio-option input[type="radio"]:checked + label .radio-custom {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.radio-option input[type="radio"]:checked + label .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked + label .radio-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.radio-text {
    color: #6b5b47;
    font-size: 15px;
    transition: all 0.3s ease;
}

/* Star Rating System */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    direction: rtl;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2.5rem;
    color: #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.star-rating label:hover {
    color: #667eea;
    transform: scale(1.1);
    text-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover ~ label {
    color: #667eea;
    text-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.rating-text {
    text-align: center;
    margin-top: 8px;
}

.rating-label {
    color: #8b7355;
    font-size: 14px;
    font-style: italic;
    transition: all 0.3s ease;
}

.star-rating input[type="radio"]:checked ~ * .rating-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Textarea */
.form-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea::placeholder {
    color: #a68b5b;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.submit-btn::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.5s;
}

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

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #f093fb 0%, #764ba2 50%, #667eea 100%);
}

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

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Thank You Page */
.thank-you-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.thank-you-content {
    text-align: center;
    max-width: 400px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPulse 2s ease-in-out infinite;
}

.checkmark {
    color: white;
    font-size: 36px;
    font-weight: bold;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.thank-you-content h2 {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}

.thank-you-message {
    color: #6b5b47;
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.thank-you-submessage {
    color: #8b7355;
    font-size: 14px;
    margin-bottom: 32px;
    line-height: 1.4;
}

.feedback-page-container .btn-home {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feedback-page-container .btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Error Message Styles */
.feedback-page-container .error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

.feedback-page-container .error-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.feedback-page-container .error-text {
    color: #721c24;
    font-weight: 500;
    flex: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Page Styles */
.error-page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.error-content {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.error-content .error-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.error-content h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.error-content .error-message {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: block;
}

.feedback-page-container .btn-primary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feedback-page-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .feedback-container {
        padding: 15px;
    }
    
    .feedback-form-wrapper {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .star-rating label {
        font-size: 2rem;
    }
    
    .form-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .feedback-form-wrapper {
        padding: 25px 15px;
    }
    
    .radio-option {
        padding: 10px 12px;
    }
    
    .star-rating {
        gap: 6px;
    }
    
    .star-rating label {
        font-size: 1.8rem;
    }
}

/* Ensure form elements are visible by default */
.feedback-page-container .form-group {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.feedback-page-container .radio-group {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
}

.feedback-page-container .star-rating {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.feedback-page-container .form-textarea {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.feedback-page-container .rating-text {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.error-page .card {
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.error-page .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: none;
    border-radius: 10px;
}

.error-page .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.error-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.error-page .btn-outline-secondary {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.error-page .btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.error-page .fa-exclamation-triangle {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
