* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Playfair Display', serif;
    background: linear-gradient(135deg, #711a1a 0%, #711a1a 100%);
    min-height: 100vh;
    color: #fedfc3;
    overflow-x: hidden;
}

[dir="rtl"] {
    font-family: 'Tajawal', sans-serif;
}

[dir="ltr"] {
    font-family: 'Playfair Display', serif;
}

.language-switcher {
    position: absolute;
    top: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

[dir="ltr"] .language-switcher {
    right: 20px;
}

[dir="rtl"] .language-switcher {
    left: 20px;
}

.lang-btn {
    padding: 8px 16px;
    background: rgba(254, 223, 195, 0.2);
    color: #fedfc3;
    text-decoration: none;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-family: inherit;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(254, 223, 195, 0.3);
    transform: translateY(-2px);
}

.feedback-container,
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.logo-section {
    text-align: center;
    margin-top: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.brand-name {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fedfc3, #fedfc3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #fedfc3;
}

.brand-subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    opacity: 0.9;
    font-weight: 300;
}

.feedback-content {
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.feedback-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feedback-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

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

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

.form-group label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fedfc3;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid #380d0d;
    border-radius: 12px;
    background: #fedfc3;
    color: #711a1a;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    direction: ltr;
    text-align: left;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #711a1a;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fedfc3;
    background: #f7c59a;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.rating-section {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
}

.rating-stars input {
    display: none;
}

.rating-stars .star {
    font-size: 2.5rem;
    color: rgba(254, 223, 195, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-stars .star:hover,
.rating-stars input:checked ~ .star,
.rating-stars .star:hover ~ .star {
    color: #fedfc3;
    transform: scale(1.1);
}

.submit-btn {
    padding: 18px 40px;
    background: linear-gradient(45deg, #fedfc3, #fedfc3);
    color: #711a1a;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fedfc3, rgba(254, 223, 195, 0.9));
}

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

.success-content {
    text-align: center;
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
    animation: bounceIn 1s ease-out 0.5s both;
}

.success-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.success-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.back-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #fedfc3, #fedfc3);
    color: #711a1a;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .feedback-container,
    .success-container {
        padding: 15px;
    }
    
    .brand-name {
        font-size: 2.5rem;
    }
    
    .feedback-content,
    .success-content {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .feedback-text h2,
    .success-content h2 {
        font-size: 1.5rem;
    }
    
    .rating-stars .star {
        font-size: 2rem;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .feedback-content,
    .success-content {
        padding: 25px 15px;
    }
    
    .rating-stars .star {
        font-size: 1.8rem;
    }
    
    .submit-btn,
    .back-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

/* Enhanced RTL Support for Arabic Language */
/* [dir="rtl"] .feedback-text,
[dir="rtl"] .success-content {
    text-align: center;
} */

[dir="rtl"] .form-group label {
    text-align: right;
}

/* RTL specific styles for input fields and textareas when language is Arabic */
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

[dir="rtl"] .form-group input::placeholder,
[dir="rtl"] .form-group textarea::placeholder {
    text-align: right;
    direction: rtl;
}

/* Ensure proper RTL layout for form elements */
[dir="rtl"] .feedback-form {
    direction: rtl;
}

/* RTL support for rating stars */
[dir="rtl"] .rating-stars {
    flex-direction: row;
}

/* RTL support for language switcher positioning */
[dir="rtl"] .language-switcher {
    left: 20px;
    right: auto;
}

@media (max-width: 768px) {
    [dir="rtl"] .language-switcher {
        left: 10px;
        right: auto;
    }
}

/* Additional RTL typography improvements */
[dir="rtl"] body {
    font-family: 'Tajawal', sans-serif;
}

[dir="rtl"] .brand-name,
[dir="rtl"] .brand-subtitle,
[dir="rtl"] .feedback-text h2,
[dir="rtl"] .feedback-text p,
[dir="rtl"] .success-content h2,
[dir="rtl"] .success-content p {
    font-family: 'Tajawal', sans-serif;
}

/* Ensure buttons maintain proper styling in RTL */
[dir="rtl"] .submit-btn,
[dir="rtl"] .back-btn {
    font-family: 'Tajawal', sans-serif;
}

