/* ========================================
   Reservation System Styles
   ======================================== */

/* Main CTA Section
   ======================================== */
.reservation-cta-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(124, 58, 237, 0.05) 100%);
    position: relative;
    z-index: 20;
}

.reservation-box {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.9) 0%, rgba(124, 58, 237, 0.1) 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(124, 58, 237, 0.1);
    position: relative;
    overflow: hidden;
}

.reservation-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    animation: rotate Glow 10s linear infinite;
    pointer-events: none;
}

.reservation-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.reservation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.fire-icon {
    animation: flame 1s ease-in-out infinite alternate;
}

@keyframes flame {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.reservation-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reservation-value-prop {
    display: flex;
    gap: 20px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.reservation-value-prop i {
    color: var(--color-accent);
}

.reservation-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    border: none;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.7);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.trust-badges {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trust-badges i {
    color: #10b981;
    margin-left: 5px;
}

/* Floating Button
   ======================================== */
.floating-reservation-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Default right for LTR/RTL consideration */
    z-index: 900;
    background: var(--color-accent);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100px);
    opacity: 0;
}

/* RTL positioning */
html[dir="rtl"] .floating-reservation-btn {
    right: 30px;
    left: auto;
}

.floating-reservation-btn.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-reservation-btn:hover {
    background: var(--color-accent-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
}

.btn-text {
    font-weight: 700;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Modal Styles
   ======================================== */
.reservation-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.reservation-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.reservation-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.reservation-modal-content {
    position: relative;
    background: #1a1a1a;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.reservation-modal.active .reservation-modal-content {
    transform: scale(1) translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    /* RTL aware? check below */
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

html[dir="rtl"] .close-modal-btn {
    right: auto;
    left: 15px;
}

.close-modal-btn:hover {
    color: white;
}

.modal-header {
    margin-bottom: 25px;
}

.modal-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.modal-icon-wrapper i {
    font-size: 2rem;
    color: var(--color-accent);
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-body {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: right;
    /* RTL Default content */
}

/* Force RTL for Arabic content inside modal */
.modal-body,
.modal-header,
.reservation-modal-content {
    direction: rtl;
}

.project-summary-box h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--color-accent-light);
}

.project-summary-box ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.project-summary-box li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.project-summary-box li i {
    color: #fbbf24;
    /* Gold star */
}

.payment-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.payment-note i {
    color: #10b981;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.close-modal-btn-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

.close-modal-btn-text:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .reservation-box {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
    }

    .reservation-value-prop {
        flex-wrap: wrap;
        justify-content: center;
    }

    .reservation-content h2 {
        font-size: 1.5rem;
    }
}

/* Value Props Styling */
.value-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
}

.value-item i {
    color: #10b981;
    /* Success Green */
    font-size: 1.1em;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .reservation-value-prop {
        gap: 10px;
    }

    .value-item {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
}