/* ============================================
   BOOKING MODAL - MODERN DESIGN
   Mobile-First, Beautiful, Premium
   ============================================ */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Content - Premium Bento Style */
.modal-content.bento-modal {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 2rem;
    max-width: 950px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    text-align: left;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

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

/* Close Button - More modern */
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
    border-color: #ef4444;
}

/* Bento Layout */
.bento-header {
    margin-bottom: 2rem;
    padding-right: 3rem;
}

.modal-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.modal-subtitle {
    color: #94a3b8;
    font-size: 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1025px) {
    .bento-grid {
        grid-template-columns: 1.6fr 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "form sticker"
            "form price";
    }

    .bento-sticker {
        grid-area: sticker;
    }

    .bento-price {
        grid-area: price;
    }

    .bento-form {
        grid-area: form;
    }
}

/* Bento Box Base Card */
.bento-box {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.75rem;
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.bento-box:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-2px);
}

.bento-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    display: block;
    opacity: 0.8;
}

/* Sticker Box */
.booking-sticker-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.booking-sticker-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.booking-stock-pill {
    padding: 0.4rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Price Box */
.bento-price.is-free {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(30, 41, 59, 0.4) 100%);
}

.free-badge-large {
    font-size: 2.75rem;
    font-weight: 900;
    color: #10b981;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-display-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.price-current.highlight {
    background: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-original {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.25rem;
    font-weight: 400;
}

.price-meta {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.price-display-wrapper.total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Form Styling - Premium Inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 641px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

/* Quantity Bento */
.quantity-bento-wrapper {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-selector.bento-style {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.4rem;
    align-items: center;
    width: 160px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.quantity-selector input {
    background: transparent;
    border: none;
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex: 1;
}

/* Final Submit Button */
.btn-bento-submit {
    margin-top: 2rem;
    width: 100%;
    padding: 1.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    color: white;
    font-size: 1.125rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-bento-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}

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

/* Mobile Specific Tweaks */
@media (max-width: 640px) {
    .modal-content.bento-modal {
        padding: 1.5rem;
        border-radius: 24px;
        width: 100%;
        margin: 0;
        max-height: 100vh;
    }

    .modal-title {
        font-size: 1.75rem;
    }

    .bento-box {
        padding: 1.25rem;
    }

    .free-badge-large {
        font-size: 2rem;
    }

    .price-current {
        font-size: 2rem;
    }

    .quantity-bento-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .quantity-selector.bento-style {
        width: 100%;
    }
}

/* Keep previous utility classes */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-total {
    font-size: 1.5rem;
    font-weight: 800;
    padding-top: 1rem;
    border-top: 1.5px solid rgba(255, 255, 255, 0.12);
    margin-top: 0.75rem;
    color: white;
}

.price-total span:last-child {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Payment Instructions */
.payment-instructions {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.instructions-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.875rem;
    color: white;
}

.payment-instructions ul {
    margin-left: 1.25rem;
    line-height: 1.8;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

.payment-instructions li {
    margin-bottom: 0.5rem;
}

.payment-instructions li:last-child {
    margin-bottom: 0;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.steps-list li:last-child {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-block {
    width: 100%;
}

/* Success Modal */
.success-modal {
    text-align: left;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

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

.booking-summary {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-total {
    font-size: 1.375rem;
    font-weight: 800;
    padding-top: 1rem;
    border-top: 1.5px solid rgba(255, 255, 255, 0.12);
    margin-top: 0.75rem;
    color: white;
}

.success-instructions {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-instructions ol {
    margin-left: 1.25rem;
    line-height: 1.9;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
}

.success-instructions li {
    margin-bottom: 0.75rem;
}

.success-instructions li:last-child {
    margin-bottom: 0;
}

.highlight {
    color: #fbbf24;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Success Modal Specifics */
.success-header {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: celebrate 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes celebrate {
    from {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.highlight-ref {
    color: #fbbf24;
    font-family: monospace;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item .item-label {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.summary-item .item-value {
    color: white;
    font-weight: 600;
}

.summary-item.total-row {
    margin-top: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.summary-item.total-row .item-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #8b5cf6;
}

.summary-item.total-row.is-free .item-value {
    color: #10b981;
}

.success-steps-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.success-steps-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.action-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-bento-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-bento-action.primary {
    background: #0070ba;
    /* PayPal Blue */
    color: white;
}

.btn-bento-action.primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-bento-action.secondary {
    background: #229ED9;
    /* Telegram Blue */
    color: white;
}

.btn-bento-action.secondary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-close-final {
    margin-top: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.btn-close-final:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

@media (max-width: 640px) {
    .modal-content.bento-modal {
        margin: 0;
        border-radius: 24px 24px 0 0;
        width: 100%;
        max-width: 100%;
        position: fixed;
        bottom: 0;
        max-height: 90vh;
        animation: slideUpMobile 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

@keyframes slideUpMobile {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (min-width: 1025px) {
    .success-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}