/* ============================================
   Noema Booking — Premium Package Design
   ============================================ */

/* Hero */
.booking-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 0 80px;
    background: var(--black);
    position: relative;
}

.booking-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
}

.booking-hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.booking-title {
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 800;
    line-height: 1.05;
    margin: 20px 0;
    letter-spacing: -0.03em;
}

.booking-subtitle {
    font-size: 16px;
    color: var(--gray-light);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
   Package Stack — Vertical List Layout
   ============================================ */
.pricing-section {
    padding: 100px 0 140px;
}

.pricing-stack {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Individual Package */
.pkg {
    position: relative;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateY(30px);
    animation: pkgReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pkg:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pkg:nth-child(1) { animation-delay: 0.1s; }
.pkg:nth-child(2) { animation-delay: 0.2s; }
.pkg:nth-child(3) { animation-delay: 0.3s; }
.pkg:nth-child(4) { animation-delay: 0.4s; }
.pkg:nth-child(5) { animation-delay: 0.5s; }

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

/* Package Index Number */
.pkg-index {
    position: absolute;
    top: 48px;
    left: 0;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

/* Package Inner Layout */
.pkg-inner {
    padding-left: 48px;
}

/* Top Row: Meta + Price */
.pkg-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.pkg-meta {
    flex: 1;
}

.pkg-type {
    display: block;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 8px;
}

.pkg-name {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--white);
    transition: color 0.3s ease;
}

.pkg:hover .pkg-name {
    color: var(--white);
}

/* Price */
.pkg-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-shrink: 0;
    padding-top: 4px;
}

.pkg-currency {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
}

.pkg-amount {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--white);
}

.pkg-period {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    margin-left: 4px;
}

/* Animated Divider */
.pkg-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 28px 0;
    position: relative;
    overflow: hidden;
}

.pkg-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pkg:hover .pkg-divider::after {
    width: 100%;
}

/* Bottom Row: Features + Actions */
.pkg-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

/* Features */
.pkg-features {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 32px;
}

.pkg-features li {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
    padding: 4px 0;
    break-inside: avoid;
    transition: color 0.3s ease;
}

.pkg:hover .pkg-features li {
    color: rgba(255, 255, 255, 0.6);
}

.pkg-features li strong {
    color: var(--white);
    font-weight: 600;
}

/* Actions */
.pkg-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

/* Primary Button */
.pkg-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--white);
    color: var(--black);
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.pkg-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.pkg-btn-primary:hover::before {
    left: 100%;
}

.pkg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.pkg-btn-primary svg {
    transition: transform 0.3s ease;
}

.pkg-btn-primary:hover svg {
    transform: translateX(4px);
}

/* Ghost Button */
.pkg-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pkg-btn-ghost:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Featured Package
   ============================================ */
.pkg--featured {
    padding: 56px 0;
}

.pkg--featured .pkg-inner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    padding: 40px 48px;
    margin-left: 0;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.pkg--featured:hover .pkg-inner {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.pkg--featured .pkg-index {
    top: 56px;
}

.pkg-highlight {
    position: absolute;
    top: 56px;
    right: 0;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 0;
}

/* ============================================
   Modal Styles
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 60px 40px 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    transition: opacity var(--transition-base);
}

.modal-close:hover {
    opacity: 0.6;
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 16px;
}

/* Invoice Form */
.invoice-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.invoice-success {
    text-align: center;
    padding: 40px 20px;
}

.invoice-success svg {
    margin-bottom: 24px;
}

.invoice-success h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.invoice-success p {
    color: var(--text-secondary);
}

/* Loading State */
.pkg-btn-primary.loading,
.pkg-btn-ghost.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.pkg-btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .pkg-bottom {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pkg-features {
        columns: 2;
    }

    .pkg-actions {
        flex-direction: row;
        min-width: unset;
    }

    .pkg-btn-primary,
    .pkg-btn-ghost {
        flex: 1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .booking-hero {
        padding: 120px 0 60px;
        min-height: 45vh;
    }

    .booking-hero::after {
        height: 50px;
    }

    .pricing-section {
        padding: 60px 0 100px;
    }

    .pkg {
        padding: 32px 0;
    }

    .pkg-inner {
        padding-left: 36px;
    }

    .pkg-index {
        top: 32px;
        font-size: 11px;
    }

    .pkg-features {
        columns: 1;
    }

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

    .pkg--featured .pkg-inner {
        padding: 28px 24px;
    }

    .pkg--featured .pkg-index {
        top: 40px;
    }

    .pkg-highlight {
        top: 40px;
        font-size: 8px;
        padding: 4px 12px;
    }

    .modal-content {
        padding: 40px 24px 24px;
        border-radius: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .booking-hero {
        padding: 100px 0 40px;
    }

    .pkg-top {
        flex-direction: column;
        gap: 12px;
    }

    .pkg-inner {
        padding-left: 28px;
    }

    .pkg-index {
        font-size: 10px;
    }

    .pkg-divider {
        margin: 20px 0;
    }

    .pkg-btn-primary {
        padding: 12px 20px;
        font-size: 10px;
    }

    .pkg-btn-ghost {
        padding: 10px 20px;
    }
}

/* Utility */
.invoice-success-hidden {
    display: none;
}

/* Pricing Guide Header */
.pricing-guide-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.pkg-checkout-note { color: #c4c4c8; font-size: .8rem; line-height: 1.5; margin: .3rem 0 0; }

.noema-checkout { padding: 2rem 0 4rem; scroll-margin-top: 7rem; }
.noema-checkout[hidden], #noema-checkout-form[hidden] { display: none; }
.noema-checkout .container { max-width: 1000px; }
.noema-checkout-header { display: flex; align-items: start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.noema-checkout-header h2 { font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -.04em; line-height: 1.15; }
#noema-checkout-form { background: #fff; border-radius: .75rem; min-height: 12rem; }
#noema-checkout-status { border: 1px solid #535358; border-radius: .5rem; padding: 1.25rem; line-height: 1.65; }
#noema-checkout-status[data-state="error"] { border-color: #df9898; }
.noema-checkout-help { margin-top: 1.5rem; color: #c4c4c8; font-size: .875rem; }
.noema-checkout-help a { color: #f7f7f7; text-decoration: underline; text-underline-offset: .2em; }
.pkg-btn-primary:disabled { opacity: .6; cursor: wait; }
@media (max-width: 600px) {
    .noema-checkout-header { flex-direction: column; }
}
