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

:root {
    --gold: #d2b48c;
    --gold-light: #e8cfa6;
    --gold-deep: #c89b5e;
}

body {
    font-family: 'Tajawal', 'Poppins', sans-serif;
    background: #120d0a;
    overflow-x: hidden;
}

.background-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background-image: url('../img/wallpaper.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 16px 0;
}

.overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(18, 13, 10, 0.5) 0%, rgba(18, 13, 10, 0.34) 45%, rgba(18, 13, 10, 0.52) 100%);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    min-height: calc(100vh - 36px);
    min-height: calc(100dvh - 36px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Header */
.logo-container {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 13, 10, 0.45);
    border: 1px solid rgba(210, 180, 140, 0.55);
    box-shadow: 0 0 0 6px rgba(210, 180, 140, 0.08), 0 14px 34px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 20px;
}

.logo {
    max-width: 74px;
    height: auto;
}

.restaurant-info {
    color: #fff;
    width: 100%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.7);
}

.restaurant-name-ar {
    font-family: 'Tajawal', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.3;
}

.company-info-ar {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
    line-height: 1.6;
}

.restaurant-name-en {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin-top: 14px;
    line-height: 1.4;
}

.company-info-en {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
    line-height: 1.5;
}

.social-media {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    justify-content: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(210, 180, 140, 0.6);
    background: rgba(18, 13, 10, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.social-icon i {
    color: var(--gold-light);
    font-size: 17px;
    transition: color 0.2s ease;
}

.social-icon:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.social-icon:hover i {
    color: #2a1d12;
}

/* Gold line with a small diamond in the middle */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 160px;
    margin: 22px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(210, 180, 140, 0.7));
}

.divider::before {
    transform: scaleX(-1);
}

.divider span {
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* Link buttons */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 28px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: linear-gradient(160deg, rgba(34, 26, 20, 0.72), rgba(18, 13, 10, 0.66));
    border: 1px solid rgba(210, 180, 140, 0.32);
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    text-align: right;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover,
.nav-btn:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(210, 180, 140, 0.85);
    background: linear-gradient(160deg, rgba(52, 39, 28, 0.82), rgba(26, 19, 14, 0.76));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    outline: none;
}

.nav-btn .btn-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
    color: #2a1d12;
    font-size: 17px;
}

.nav-btn .btn-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.nav-btn .text-ar {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.5;
}

.nav-btn .text-en {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.nav-btn .btn-arrow {
    flex-shrink: 0;
    color: rgba(210, 180, 140, 0.7);
    font-size: 13px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-btn:hover .btn-arrow {
    transform: translateX(-4px);
    color: var(--gold-light);
}

/* Footer */
.footer {
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding: 16px 0 20px;
}

.footer-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.footer-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Gentle entrance */
@media (prefers-reduced-motion: no-preference) {
    .logo-container,
    .restaurant-info,
    .social-media,
    .divider,
    .nav-btn,
    .feedback-container {
        animation: rise 0.6s ease backwards;
    }

    .restaurant-info { animation-delay: 0.08s; }
    .social-media { animation-delay: 0.14s; }
    .divider { animation-delay: 0.18s; }
    .feedback-container { animation-delay: 0.22s; }
    .nav-btn:nth-child(1) { animation-delay: 0.22s; }
    .nav-btn:nth-child(2) { animation-delay: 0.28s; }
    .nav-btn:nth-child(3) { animation-delay: 0.34s; }
    .nav-btn:nth-child(4) { animation-delay: 0.40s; }
    .nav-btn:nth-child(5) { animation-delay: 0.46s; }
    .nav-btn:nth-child(6) { animation-delay: 0.52s; }
    .nav-btn:nth-child(n+7) { animation-delay: 0.58s; }

    @keyframes rise {
        from { opacity: 0; transform: translateY(14px); }
        to { opacity: 1; transform: none; }
    }
}

@media (max-width: 480px) {
    .background-container {
        padding: 26px 14px 0;
    }

    .content {
        min-height: calc(100vh - 26px);
        min-height: calc(100dvh - 26px);
    }

    .logo-container {
        width: 96px;
        height: 96px;
        margin-bottom: 16px;
    }

    .logo {
        max-width: 64px;
    }

    .restaurant-name-ar {
        font-size: 1.7rem;
    }

    .restaurant-name-en {
        font-size: 0.82rem;
        letter-spacing: 2px;
    }

    .divider {
        margin: 18px 0;
    }

    .nav-btn .text-ar {
        font-size: 0.96rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Feedback Form */
.feedback-container {
    width: 100%;
    margin: 4px auto 22px;
}

.feedback-form {
    background: linear-gradient(160deg, rgba(34, 26, 20, 0.78), rgba(18, 13, 10, 0.72));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(210, 180, 140, 0.45);
    border-radius: 24px;
    padding: 30px 26px 26px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    text-align: right;
    color: #fff;
}

.form-head {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(210, 180, 140, 0.25);
}

.form-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #e8cfa6;
    margin-bottom: 4px;
}

.form-subtitle {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    border: 0;
    min-width: 0;
}

.form-group label,
.form-group legend {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    padding: 0;
}

.form-group .optional {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
    font-size: 0.8rem;
}

.form-group input[type=text],
.form-group input[type=tel],
.form-group textarea {
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #fff;
    width: 100%;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type=tel] {
    direction: ltr;
    text-align: right;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.11);
    border-color: #d2b48c;
    box-shadow: 0 0 0 3px rgba(210, 180, 140, 0.2);
}

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

/* Star ratings */
.ratings {
    margin: 22px 0 20px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.rating-group {
    border: 0;
    min-width: 0;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    flex-wrap: wrap;
}

.rating-group + .rating-group {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-group legend {
    float: right;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
}

.rating-side {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    color: #e8cfa6;
    min-width: 52px;
    text-align: left;
}

/* Radios are in DOM order 5..1 and laid out reversed, so that
   "checked ~ label" lights up the chosen star and every lower one. */
.stars {
    display: flex;
    flex-direction: row-reverse;
    position: relative;
}

.stars input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    bottom: 0;
    right: 50%;
}

.stars label {
    margin: 0;
    padding: 2px 3px;
    font-size: 1.55rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.stars input:checked ~ label {
    color: #f0b849;
}

.stars:hover label {
    color: rgba(255, 255, 255, 0.22);
}

.stars label:hover,
.stars label:hover ~ label {
    color: #f6ca6b;
}

.stars label:hover {
    transform: scale(1.15);
}

.stars input:focus-visible + label {
    outline: 2px solid #d2b48c;
    outline-offset: 2px;
    border-radius: 6px;
}

.submit-btn {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 14px 30px;
    margin-top: 6px;
    background: linear-gradient(135deg, #e8cfa6, #c89b5e);
    color: #2a1d12;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 8px 22px rgba(200, 155, 94, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 12px 28px rgba(200, 155, 94, 0.4);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    display: none;
    background: rgba(18, 13, 10, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.message.success {
    border-color: rgba(120, 200, 140, 0.6);
    color: #9be0ae;
}

.message.error {
    border-color: rgba(255, 110, 110, 0.6);
    color: #ff9c9c;
}

.thanks {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 8, 6, 0.62);
}

.thanks[hidden] { display: none; }

.thanks-card {
    width: min(360px, 100%);
    background: linear-gradient(160deg, rgba(34, 26, 20, 0.96), rgba(18, 13, 10, 0.94));
    border: 1px solid rgba(210, 180, 140, 0.55);
    border-radius: 24px;
    padding: 28px 24px 22px;
    text-align: center;
    color: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.thanks-mark {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(155, 224, 174, 0.16);
    border: 1px solid rgba(155, 224, 174, 0.45);
    color: #9be0ae;
    font-size: 1.35rem;
}

.thanks-card h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #e8cfa6;
    margin-bottom: 8px;
}

.thanks-card p {
    font-family: 'Tajawal', sans-serif;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    margin-bottom: 18px;
}

.thanks-card .submit-btn { margin-top: 0; }

@media (max-width: 480px) {
    .feedback-form {
        padding: 24px 16px 20px;
        border-radius: 20px;
    }

    .form-title {
        font-size: 1.2rem;
    }

    .ratings {
        padding: 4px 12px;
    }

    .stars label {
        font-size: 1.45rem;
        padding: 2px;
    }

    .rating-text {
        min-width: 46px;
    }
}
