/* ========================================
   ENHANCED BOOKING SUCCESS PAGE
   Beautiful confirmation with animations
   ======================================== */

.booking-success-card {
    background: #fff;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Animation */
.success-animation {
    margin: 0 auto 30px;
    width: 120px;
    height: 120px;
}

.checkmark {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #b38f4b;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #b38f4b;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #b38f4b;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #fff;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 60px #b38f4b;
    }
}

/* Success Title */
.success-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.success-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Booking Details Card */
.booking-details-card {
    background: linear-gradient(135deg, #f8f5f0 0%, #fdfbf7 100%);
    border: 2px solid #b38f4b;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-out 0.5s both;
}

.booking-id-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 2px dashed #b38f4b;
}

.booking-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.booking-number {
    font-size: 28px;
    font-weight: 700;
    color: #b38f4b;
    letter-spacing: 1px;
}

/* Booking Info Grid */
.booking-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(179, 143, 75, 0.15);
}

.info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 13px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* What's Next Section */
.whats-next-section {
    text-align: left;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.whats-next-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whats-next-title:before {
    content: "";
    width: 4px;
    height: 24px;
    background: #b38f4b;
    border-radius: 2px;
}

.next-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.next-steps-list li {
    display: flex;
    align-items: center;
    /* vertically center icon and text */
    gap: 12px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.next-steps-list li svg {
    flex-shrink: 0;
    margin-top: 0;
    /* remove small top nudges, center via align-items */
    margin-right: 8px;
    /* spacing for LTR; mirrored in RTL rules below */
}

.next-steps-list li span {
    display: block;
}

/* make text take remaining space so short texts align to the correct side */
.next-steps-list li span {
    flex: 1 1 auto;
    text-align: left;
    /* default LTR */
}

[dir="rtl"] .next-steps-list li span {
    text-align: right;
    /* ensure RTL aligns right even for short texts */
}

/* Success Actions */
.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 0.6s ease-out 0.7s both;
}

.success-actions .tg-btn {
    min-width: 180px;
}

/* Fix overlapping icon/text for action buttons on this page */
.booking-success-card .success-actions .tg-btn .btn-text {
    margin-inline-start: 0 !important;
    /* cancel the global switch-animation negative offset */
}

.booking-success-card .success-actions .tg-btn .btn-icon {
    margin-inline-start: 8px !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .booking-success-card {
        padding: 40px 25px;
    }

    .success-title {
        font-size: 28px;
    }

    .success-subtitle {
        font-size: 16px;
    }

    .booking-details-card {
        padding: 25px 20px;
    }

    .booking-id-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .booking-number {
        font-size: 24px;
    }

    .booking-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .whats-next-section {
        padding: 25px 20px;
    }

    .whats-next-title {
        font-size: 20px;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .tg-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .booking-success-card {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .success-animation {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }

    .checkmark {
        width: 100px;
        height: 100px;
    }

    .success-title {
        font-size: 24px;
    }

    .success-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .booking-details-card {
        padding: 20px 15px;
    }

    .booking-number {
        font-size: 22px;
    }

    .info-item {
        padding: 15px;
    }

    .whats-next-section {
        padding: 20px 15px;
    }

    .next-steps-list li {
        font-size: 14px;
    }
}

/* RTL Support */
[dir="rtl"] .booking-id-section {
    flex-direction: row-reverse;
}

[dir="rtl"] .info-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .whats-next-title:before {
    order: 2;
}

[dir="rtl"] .next-steps-list li {
    flex-direction: row-reverse;
}

[dir="rtl"] .next-steps-list li svg {
    /* place the tick to the right in RTL and ensure spacing behaves */
    order: 2;
    margin-left: 8px;
    /* spacing between text and icon in RTL */
    margin-right: 0;
}

[dir="rtl"] .next-steps-list li span {
    order: 1;
    text-align: right;
}

[dir="rtl"] .whats-next-section {
    text-align: right;
}

[dir="rtl"] .success-actions {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    [dir="rtl"] .success-actions {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .success-actions {
        display: none;
    }

    .booking-success-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}