/**
 * Frontend Booking Modal Styles — Ohyeah Malta
 * Design: Premium, Full-screen, Multi-step
 */

:root {
    --oy-primary: #007cba;
    --oy-primary-dark: #006ba1;
    --oy-text: #1a1a1a;
    --oy-text-muted: #666;
    --oy-bg: #ffffff;
    --oy-gray-100: #f8f9fa;
    --oy-gray-200: #e9ecef;
    --oy-gray-300: #dee2e6;
    --oy-radius: 12px;
    --oy-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal Overlay */
.ohyeah-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--oy-transition);
}

.ohyeah-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.ohyeah-modal-container {
    width: 95%;
    max-width: 850px;
    height: auto;
    max-height: 90vh;
    background: var(--oy-bg);
    border-radius: var(--oy-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: var(--oy-transition);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ohyeah-modal-overlay.active .ohyeah-modal-container {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .ohyeah-modal-container {
        width: 100%;
        height: 100%;
        max-height: 100dvh;
        border-radius: 0;
    }
    .ohyeah-modal-header {
        padding: 12px 16px;
    }
    .ohyeah-modal-header h2 {
        font-size: 16px;
    }
    .ohyeah-modal-progress {
        padding: 8px 12px;
    }
    .ohyeah-progress-step .step-label {
        font-size: 10px;
    }
    .ohyeah-modal-body {
        padding: 16px;
    }
    .ohyeah-modal-footer {
        padding: 12px 16px;
    }
    .ohyeah-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    .ohyeah-day {
        padding: 0 !important; /* 50% reduction from 2px/4px to basically minimum */
        font-size: 11px;
    }
    .ohyeah-slots-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .ohyeah-slot-card {
        flex: 1 1 calc(50% - 8px); /* Two per row on mobile */
        min-width: 120px;
        padding: 10px !important;
    }
}

/* Header */
.ohyeah-modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--oy-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    z-index: 10;
}

.ohyeah-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--oy-text);
}

.ohyeah-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: var(--oy-text-muted);
    padding: 0;
    transition: color 0.2s;
}

.ohyeah-modal-close:hover {
    color: #ef4444;
}

/* Progress Bar */
.ohyeah-modal-progress {
    padding: 12px 24px;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--oy-gray-200);
}

.ohyeah-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 1;
}

.ohyeah-progress-step::after {
    content: '';
    position: absolute;
    top: 12px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--oy-gray-300);
    z-index: 1;
}

.ohyeah-progress-step:last-child::after {
    display: none;
}

.ohyeah-progress-step .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--oy-gray-300);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: var(--oy-transition);
}

.ohyeah-progress-step .step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--oy-text-muted);
    transition: var(--oy-transition);
}

.ohyeah-progress-step.active .step-num {
    background: var(--oy-primary);
    box-shadow: 0 0 0 4px rgba(0, 124, 186, 0.1);
}

.ohyeah-progress-step.active .step-label {
    color: var(--oy-primary);
    font-weight: 600;
}

.ohyeah-progress-step.completed .step-num {
    background: #10b981;
}

/* Modal Body */
.ohyeah-modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #fff;
    min-height: 0; /* Allow resizing */
}

/* Passenger Step Layout */
.ohyeah-passenger-row {
    padding: 24px;
    background: var(--oy-gray-100);
    border-radius: var(--oy-radius);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--oy-gray-200);
}

.ohyeah-pax-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ohyeah-pax-info h4 {
    margin: 0;
    font-size: 18px;
    color: var(--oy-text);
}

.ohyeah-pax-info p {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--oy-text-muted);
}

.ohyeah-stepper {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 30px;
    border: 1px solid var(--oy-gray-300);
}

.ohyeah-stepper button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--oy-primary);
    background: #fff;
    color: var(--oy-primary);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--oy-transition);
    padding: 0;
}

.ohyeah-stepper button:hover:not(:disabled) {
    background: var(--oy-primary);
    color: #fff;
}

.ohyeah-stepper button:disabled {
    border-color: var(--oy-gray-300);
    color: var(--oy-gray-300);
    cursor: not-allowed;
}

.ohyeah-stepper .count {
    font-size: 16px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

/* Passenger Names Expandable */
.ohyeah-passenger-names {
    border-top: 1px solid var(--oy-gray-200);
    padding-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .ohyeah-passenger-names {
        grid-template-columns: 1fr;
    }
}

.ohyeah-name-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ohyeah-name-input-wrap label {
    font-size: 12px;
    font-weight: 600;
    color: var(--oy-text-muted);
}

.ohyeah-name-input-wrap input {
    padding: 10px 14px;
    border: 1px solid var(--oy-gray-300);
    border-radius: 8px;
    font-size: 14px;
}

/* Footer */
.ohyeah-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--oy-gray-200);
    display: flex;
    align-items: center;
    background: #fff;
}

.ohyeah-footer-spacer {
    flex: 1;
}

.ohyeah-btn {
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--oy-transition);
}

.ohyeah-btn-primary {
    background: var(--oy-primary);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 124, 186, 0.2), 0 2px 4px -1px rgba(0, 124, 186, 0.1);
}

.ohyeah-btn-primary:hover {
    background: var(--oy-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 124, 186, 0.3), 0 4px 6px -2px rgba(0, 124, 186, 0.1);
}

.ohyeah-btn-secondary {
    background: var(--oy-gray-200);
    color: var(--oy-text);
}

.ohyeah-btn-secondary:hover {
    background: var(--oy-gray-300);
}

/* Form Styles for Step 3 */
.ohyeah-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .ohyeah-form-grid {
        grid-template-columns: 1fr;
    }
}

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

.ohyeah-field-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--oy-text);
}

.ohyeah-field-group input,
.ohyeah-field-group select {
    padding: 12px 16px;
    border: 1px solid var(--oy-gray-300);
    border-radius: 10px;
    font-size: 15px;
    height: 48px; /* Standardize height across all browsers */
    box-sizing: border-box;
    background-color: #fff;
    width: 100%;
    color: var(--oy-text);
}

.ohyeah-field-group select {
    cursor: pointer;
    line-height: 1.2;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.ohyeah-phone-wrap {
    display: flex;
    gap: 8px;
}

.ohyeah-phone-code {
    width: 90px;
    background: var(--oy-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--oy-gray-300);
    border-radius: 10px;
    font-weight: 600;
}

/* Animations */
/* Calendar Step Styles (Phase 8) */
.ohyeah-calendar-container {
    max-width: 650px;
    margin: 0 auto;
}

.ohyeah-step-2-wrapper {
    display: flex;
    gap: 32px;
}

.ohyeah-calendar-side {
    flex: 1.4;
}

.ohyeah-slots-side {
    flex: 1;
    border-left: 1px solid var(--oy-gray-200);
    padding-left: 24px;
}

.ohyeah-slots-side h4 {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--oy-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .ohyeah-step-2-wrapper {
        flex-direction: column;
    }
    .ohyeah-slots-side {
        border-left: none;
        padding-left: 0;
        margin-top: 24px;
        border-top: 1px solid var(--oy-gray-200);
        padding-top: 24px;
    }
}

.ohyeah-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ohyeah-calendar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.cal-nav {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    padding: 0;
}

.cal-nav:hover:not(:disabled) {
    background: #e2e8f0;
    color: #1e293b;
}

.cal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ohyeah-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 12px;
}

.ohyeah-day-name {
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    padding-bottom: 4px;
}

.ohyeah-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--oy-transition);
    position: relative;
    border: 1px solid transparent;
    padding: 2px;
}

.ohyeah-day--unavailable {
    color: #ccc;
    cursor: not-allowed;
}

.ohyeah-day--open {
    background: #ecfdf5;
    color: #065f46;
}

.ohyeah-day--limited {
    background: #fefce8;
    color: #854d0e;
}

.ohyeah-day--full {
    background: #fef2f2;
    color: #991b1b;
    cursor: not-allowed;
}

.ohyeah-day--locked {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.ohyeah-day:hover:not(.ohyeah-day--unavailable):not(.ohyeah-day--full):not(.ohyeah-day--locked) {
    transform: scale(1.05);
    border-color: var(--oy-primary);
}

.ohyeah-day.selected {
    background: var(--oy-primary);
    color: #fff;
}

/* Slots Section */
.ohyeah-slots-container {
    margin-top: 0px;
    padding-top: 0px;
}

.ohyeah-slots-container h4 {
    margin: 0 0 16px;
    font-size: 16px;
}

.ohyeah-slots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.ohyeah-slot-card {
    padding: 12px;
    border: 1px solid var(--oy-gray-300);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--oy-transition);
}

.ohyeah-slot-card:hover {
    border-color: var(--oy-primary);
    background: var(--oy-gray-100);
}

.ohyeah-slot-card.selected {
    border-color: var(--oy-primary);
    background: #eff6ff;
    box-shadow: 0 0 0 2px var(--oy-primary);
}

.ohyeah-slot-card .slot-time {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--oy-primary);
}

.ohyeah-slot-card .slot-label {
    font-size: 13px;
    color: var(--oy-text-muted);
    margin-top: 2px;
}

.ohyeah-slot-card .slot-capacity {
    font-size: 11px;
    margin-top: 8px;
    padding: 2px 8px;
    background: var(--oy-gray-200);
    border-radius: 10px;
    display: inline-block;
}

.ohyeah-slot--locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f3f4f6;
}

.ohyeah-hint {
    text-align: center;
    color: var(--oy-text-muted);
    font-style: italic;
    padding: 20px;
}

.ohyeah-loading-inline {
    text-align: center;
    padding: 20px;
}

@keyframes oy-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ohyeah-step-animate {
    animation: oy-fade-in 0.4s ease-out;
}

/* Step 4: Extras */
.ohyeah-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ohyeah-extra-card {
    border: 1px solid var(--oy-gray-200);
    border-radius: var(--oy-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: var(--oy-transition);
}

.ohyeah-extra-card:hover {
    border-color: var(--oy-primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ohyeah-extra-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--oy-gray-100);
}

.ohyeah-extra-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ohyeah-extra-content h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.ohyeah-extra-content p {
    margin: 0;
    font-size: 13px;
    color: var(--oy-text-muted);
    line-height: 1.4;
    flex: 1;
}

.ohyeah-extra-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.ohyeah-extra-price {
    font-weight: 700;
    color: var(--oy-primary);
}

/* Step 5: Summary */
.ohyeah-summary-sheet {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ohyeah-summary-section {
    padding: 24px;
    background: var(--oy-gray-100);
    border-radius: var(--oy-radius);
    border: 1px solid var(--oy-gray-200);
}

.ohyeah-summary-section h4 {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.ohyeah-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ohyeah-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ohyeah-summary-item .label {
    font-weight: 500;
    font-size: 13px;
    color: #64748b;
}

.ohyeah-summary-item .value {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    color: #1e293b;
}

.ohyeah-total-box {
    padding: 24px;
    background: var(--oy-primary);
    color: #fff;
    border-radius: var(--oy-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ohyeah-total-box .total-label {
    font-size: 18px;
    font-weight: 700;
}

.ohyeah-total-box .total-amount {
    font-size: 28px;
    font-weight: 800;
}

.ohyeah-cancellation-notice {
    font-size: 12px;
    color: var(--oy-text-muted);
    text-align: center;
    padding: 0 20px;
}

/* ── New Passenger List Styles ─────────── */
.ohyeah-pax-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.ohyeah-pax-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fdfdfd;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    animation: oy-fade-in 0.3s ease;
}

.pax-type-badge {
    font-size: 9px;
    background: #f1f5f9;
    color: #475569;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    margin-right: 10px;
    border: 1px solid #e2e8f0;
}

.pax-meta strong {
    font-size: 14px;
    color: #1e293b;
}

.pax-price {
    font-size: 13px;
    color: #64748b;
    margin-right: 15px;
    font-weight: 600;
}

.remove-pax {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    padding: 0;
}

.remove-pax span {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.remove-pax:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* ── Add Pax Form ─────────── */
.ohyeah-add-pax-form {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ohyeah-add-pax-form h5 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.ohyeah-add-pax-grid {
    display: grid;
    grid-template-columns: 140px 1fr 100px;
    gap: 12px;
    align-items: flex-end;
}

.ohyeah-add-pax-form select,
.ohyeah-add-pax-form input {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
}

#ohyeah-add-pax-btn {
    height: 38px;
    padding: 0;
    font-size: 13px;
    border-radius: 6px;
    background: #1e293b;
    color: #fff;
}

.ohyeah-order-summary-mini {
    padding: 12px 16px;
    background: #eff6ff;
    border-radius: 8px;
    text-align: right;
    border-left: 4px solid var(--oy-primary);
}

.summary-total {
    font-size: 16px;
    font-weight: 800;
    color: var(--oy-primary);
}

/* ── Custom Form & Final Summary ─────────── */
.ohyeah-custom-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ohyeah-pax-simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ohyeah-pax-simple-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.ohyeah-pax-simple-list li:last-child {
    border-bottom: none;
}

.ohyeah-dynamic-input {
    width: 100%;
}

.ohyeah-notice {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 10px;
}

.ohyeah-empty-pax {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

/* ── Step 5: Payment (Inline) ─────────── */
.ohyeah-payment-step {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}

.ohyeah-payment-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: var(--oy-radius);
    margin-bottom: 16px;
}

.ohyeah-payment-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.ohyeah-payment-info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ohyeah-payment-amount {
    margin: 4px 0 0;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.ohyeah-payment-frame-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    border: 1px solid var(--oy-gray-200);
    border-radius: var(--oy-radius);
    background: #fff;
}

.ohyeah-payment-iframe {
    width: 100%;
    height: 700px !important;
    min-height: 500px;
    border: none;
    display: block;
    overflow: hidden;
}

.ohyeah-payment-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    z-index: 5;
    color: var(--oy-text-muted);
    font-size: 14px;
}

.ohyeah-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--oy-gray-200);
    border-top-color: var(--oy-primary);
    border-radius: 50%;
    animation: ohyeah-spin 0.8s linear infinite;
}

@keyframes ohyeah-spin {
    to { transform: rotate(360deg); }
}

.ohyeah-payment-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.ohyeah-payment-footer-note svg {
    color: #10b981;
    flex-shrink: 0;
}

