:root {
    --form-bg: #FFFFFF;
    --form-input-bg: #F8F9FA;
    --form-focus-ring: rgba(116, 204, 0, 0.3);
    --total-box-bg: #F0FBD8;
    --total-box-border: rgba(116, 204, 0, 0.4);
}

.dark-mode {
    --form-bg: #1E1E1E;
    --form-input-bg: #2A2A2A;
    --form-focus-ring: rgba(223, 255, 0, 0.25);
    --total-box-bg: #1A2600;
    --total-box-border: rgba(223, 255, 0, 0.3);
}

/* ── LAYOUT ── */
.booking-page {
    min-height: calc(100vh - 80px);
    background-color: var(--bg);
}

/* ── HEADER IMAGE ── */
.booking-header {
    width: 100%;
    max-height: 340px;
    overflow: hidden;
    position: relative;
}

.booking-header-img {
    position: relative;
    width: 100%;
    aspect-ratio: auto;
    max-height: 340px;
    overflow: hidden;
}

.booking-header-img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center 60%;
    display: block;
}

.booking-header-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.35) 100%,
    transparent 100%
);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5vw;
    gap: 0.75rem;
}

.booking-header-badge {
    display: inline-block;
    background-color: var(--cta-bg);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    width: fit-content;
}

.booking-header-overlay h1 {
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.booking-header-overlay h1 span {
    color: var(--cta-bg);
}

.booking-header-overlay p {
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    max-width: 460px;
    line-height: 1.6;
    text-align: center;
}

/* ── SECTION WRAPPER ── */
.booking-section {
    padding: 3rem 5vw 5rem;
    background-color: var(--bg);
}

/* ── FORM CARD ── */
.booking-card {
    max-width: 820px;
    margin: 0 auto;
    background-color: var(--form-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.booking-card-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.booking-card-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--headline);
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.booking-card-header p {
    font-size: 0.875rem;
    color: var(--subheadline);
    line-height: 1.6;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
    margin-bottom: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--subheadline);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-group input,
.form-group select {
    background-color: var(--form-input-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--headline);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.4s ease;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input::placeholder {
    color: var(--subheadline);
    font-weight: 400;
    opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--form-focus-ring);
}

.form-group input[type="number"] {
    appearance: auto;
    -webkit-appearance: auto;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select#waktu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.output-area {
    background-color: var(--bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    margin: 2rem 0;
    
    border: 1px solid var(--border-color);
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.output-header label{
    font-size: 1rem;
    font-weight: 600;
    color: var(--subheadline);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    
}

.input-number-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-number-wrapper input {
    width: 70px;
    text-align: center;
    padding: 0.5rem;
    color: var(--headline);
    background-color: var(--form-input-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.input-number-wrapper span {
    color: var(--subheadline);
}

.total-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-price-box span {
    font-size: 0.9rem;
    color: var(--subheadline);
    font-weight: 500;
    color: rgb(117, 117, 117);
}

.total-price-box p {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--headline);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover {
    transform: scale(1.02);
    opacity: 0.92;
}

.submit-btn:active {
    transform: scale(0.98);
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.struk-card {
    background: var(--bg);
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal-overlay.active .struk-card {
    transform: translateY(0);
}

.struk-header {
    background: var(--bg-alt);
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px dashed var(--border-color);
}

.struk-header h3 {
    color: var(--headline);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.struk-header p {
    color: var(--subheadline);
    font-size: 0.85rem;
}

.struk-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.struk-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.struk-row span {
    color: var(--subheadline);
}

.struk-row strong {
    color: var(--headline);
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

#strukEmail {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* ── KODE BOOKING DI STRUK ── */
.struk-row.kode-row {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    align-items: center;
}

.kode-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
    border-radius: 6px;
}

#strukKodeBooking {
    font-size: 1.5rem;
    color: var(--headline);
    letter-spacing: 0.08em;
    font-family: monospace;
}

#btnCopyKode {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    color: var(--subheadline);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    transition: all 0.2s ease;
}

#btnCopyKode:hover {
    border-color: var(--accent);
    color: var(--headline);
    background: var(--bg-alt);
}


.struk-total {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 2px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.struk-total span {
    font-weight: 700;
    color: var(--headline);
}

.struk-total strong {
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 900;
    text-shadow: 0px 2px 4px rgba(116, 204, 0, 0.2);
}

.struk-footer {
    display: flex;
    padding: 0 1.5rem 1.5rem;
    gap: 1rem;
}

.btn-batal, .btn-ok {
    flex: 1;
    padding: 0.9rem;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-batal {
    background: var(--bg-alt);
    color: var(--headline);
    border: 1px solid var(--border-color);
}

.btn-batal:hover {
    background: #ffe4e6;
    color: #e11d48;
    border-color: #fda4af;
}

.btn-ok {
    background: var(--accent);
    color: #000;
}

.btn-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(116, 204, 0, 0.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .booking-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .booking-card {
        padding: 1.75rem 1.5rem;
        border-radius: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .booking-header-img img {
        height: 240px;
    }
    
    .booking-header-overlay h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .booking-section {
        padding: 2rem 4vw 4rem;
    }

    .output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .total-price-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .struk-row {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0;
    }

    .struk-row strong {
        text-align: right;
        max-width: 60%;
        font-size: 0.85rem;
    }

    .struk-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .struk-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
}