:root {
            --primary-teal: #00677F;
            --primary-navy: #004165;
            --light-gray: #F6F6F6;
            --white: #FFFFFF;
            --text-dark: #1a1a1a;
            --text-gray: #666666;
            --border-light: #e5e5e5;
            --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
            --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
            --success-green: #10B981;
        }

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

        body {
            font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
            background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
            direction: rtl;
            text-align: right;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        body.en {
            font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            direction: ltr;
            text-align: left;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 2rem 20px;
        }

        /* Thank You Card */
        .thank-you-card {
            background: var(--white);
            border-radius: 1rem;
            padding: 3rem 2rem;
            box-shadow: var(--shadow-medium);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .thank-you-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-teal), var(--primary-navy));
        }

        /* Success Icon */
        .success-icon {
            width: 80px;
            height: 80px;
            background: var(--success-green);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 2rem;
            animation: scaleIn 0.5s ease-out;
        }

        .success-icon i {
            width: 40px;
            height: 40px;
            color: var(--white);
        }

        @keyframes scaleIn {
            0% {
                transform: scale(0);
                opacity: 0;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Typography */
        .thank-you-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 1rem;
            animation: fadeInUp 0.6s ease-out 0.2s both;
        }

        .thank-you-subtitle {
            font-size: 1.25rem;
            color: var(--text-gray);
            margin-bottom: 2rem;
            animation: fadeInUp 0.6s ease-out 0.4s both;
        }

        .thank-you-message {
            font-size: 1rem;
            color: var(--text-gray);
            line-height: 1.6;
            margin-bottom: 2rem;
            animation: fadeInUp 0.6s ease-out 0.6s both;
        }

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

        /* Contact Info */
        .contact-info {
            background: var(--light-gray);
            border-radius: 0.75rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
            animation: fadeInUp 0.6s ease-out 0.8s both;
        }

        .contact-info h3 {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 1rem;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            color: var(--text-gray);
        }

        .contact-item:last-child {
            margin-bottom: 0;
        }

        .contact-item i {
            width: 20px;
            height: 20px;
            color: var(--primary-teal);
        }

        .contact-item a {
            color: var(--primary-teal);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .contact-item a:hover {
            color: var(--primary-navy);
        }

        /* Buttons */
        .btn {
            display: inline-block;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            text-align: center;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            font-family: inherit;
        }

        .btn-primary {
            background: var(--primary-teal);
            color: var(--white);
        }

        .btn-primary:hover {
            background: var(--primary-navy);
            transform: translateY(-2px);
            box-shadow: var(--shadow-medium);
        }

        .btn-secondary {
            background: transparent;
            color: var(--primary-teal);
            border: 2px solid var(--primary-teal);
        }

        .btn-secondary:hover {
            background: var(--primary-teal);
            color: var(--white);
        }

        .action-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
            animation: fadeInUp 0.6s ease-out 1s both;
        }

        /* Language Toggle */
        .language-toggle {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: 1px solid var(--border-light);
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            cursor: pointer;
            font-size: 0.875rem;
            transition: all 0.3s ease;
        }

        .en .language-toggle {
            right: auto;
            left: 1rem;
        }

        .language-toggle:hover {
            border-color: var(--primary-teal);
            color: var(--primary-teal);
        }

        /* Hidden content for language switching */
        .ar-content { display: block; }
        .en-content { display: none; }

        .en .ar-content { display: none; }
        .en .en-content { display: block; }

        /* Responsive Design */
        @media (max-width: 768px) {
            .container {
                padding: 1rem 15px;
            }

            .thank-you-card {
                padding: 2rem 1.5rem;
            }

            .thank-you-title {
                font-size: 2rem;
            }

            .action-buttons {
                flex-direction: column;
                align-items: center;
            }

            .btn {
                width: 100%;
                max-width: 250px;
            }
        }
        /* Let <html dir> drive layout */
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="ltr"] body { direction: ltr; text-align: left; }
