/**
 * Booking Wizard Styles
 * 4-step wizard for package booking
 */

/* ========== CSS Variables ========== */
:root {
    --wiz-primary: #2EC4B6;
    --wiz-accent: #FF2E7A;
    --wiz-success: #2ABB66;
    --wiz-text: #222;
    --wiz-muted: #666;
    --wiz-border: #E5E5E5;
    --wiz-separator: #EFEFEF;
    --wiz-error: #E5484D;
    --wiz-bg-light: #F5F5F5;
    --wiz-price-bg: #FFECEE;
    --wiz-price-text: #E85C5C;
    --wiz-star: #FFC107;
}

/* ========== Overlay ========== */
.booking-wizard-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
    z-index: 999998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.booking-wizard-overlay.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ========== Aside Panel ========== */
.booking-wizard-aside {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 560px !important;
    max-width: 100% !important;
    height: 100% !important;
    background-color: #FFFFFF !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    padding: 24px !important;
    transform: translateX(560px) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1) !important;
}

.booking-wizard-overlay.is-visible .booking-wizard-aside {
    transform: translateX(0) !important;
}

/* ========== Close Button ========== */
.booking-wizard-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 1px solid #D9D9D9;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: var(--wiz-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.booking-wizard-close:hover {
    background-color: var(--wiz-bg-light);
}

/* ========== Stepper ========== */
.booking-wizard-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wiz-separator);
}

.stepper-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.stepper-step__circle {
    width: 20px;
    height: 20px;
    border: 1px solid var(--wiz-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--wiz-primary);
    background-color: #FFFFFF;
    transition: all 0.2s ease;
}

.stepper-step--active .stepper-step__circle {
    background-color: var(--wiz-primary);
    color: #FFFFFF;
}

.stepper-step--completed .stepper-step__circle {
    background-color: var(--wiz-success);
    border-color: var(--wiz-success);
    color: #FFFFFF;
}

.stepper-step--completed .stepper-step__circle::before {
    content: "✓";
    font-size: 14px;
}

.stepper-step__label {
    font-size: 13px;
    color: #6B6B6B;
    text-align: center;
    line-height: 1.3;
}

.stepper-step--active .stepper-step__label {
    color: var(--wiz-primary);
    font-weight: 600;
}

/* ========== Wizard Content ========== */
.booking-wizard-content {
    position: relative;
}

.wizard-step {
    display: none;
}

.wizard-step--active {
    display: block;
}

.wizard-step-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ========== Package Info ========== */
.wizard-package-info__label {
    font-size: 12px;
    text-transform: uppercase;
    color: #6B6B6B;
    font-weight: 500;
    margin-bottom: 8px;
}

.wizard-package-info__content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
}

.wizard-package-info__title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.wizard-package-link {
    color: var(--wiz-primary);
    text-decoration: none;
}

.wizard-package-link:hover {
    text-decoration: underline;
}

.wizard-package-info__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.wizard-package-duration {
    font-size: 13px;
    color: #444;
}

.wizard-package-price {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background-color: var(--wiz-price-bg);
    border: 1px solid #F4A6A6;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--wiz-price-text);
}

.wizard-package-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.rating-link {
    color: var(--wiz-primary);
    text-decoration: none;
}

.rating-link:hover {
    text-decoration: underline;
}

.wizard-package-info__thumbnail {
    width: 140px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.wizard-package-info__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== Fields ========== */
.wizard-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-field__label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wizard-field__note {
    font-size: 12px;
    color: #777;
    margin: 0;
}

/* ========== Date Range Input ========== */
.wizard-date-range {
    position: relative;
}

.wizard-date-range-input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 14px;
    border: 1.5px solid var(--wiz-primary);
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.wizard-date-range-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(46, 196, 182, 0.12);
}

.wizard-date-range-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* ========== Stepper (Number Input) ========== */
.wizard-stepper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wizard-stepper__btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background-color: var(--wiz-primary);
    color: #FFFFFF;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-stepper__btn:hover:not(:disabled) {
    background-color: #22A59B;
}

.wizard-stepper__btn:disabled {
    background-color: #F1F5F5;
    color: #B7DCD8;
    cursor: not-allowed;
}

.wizard-stepper__value {
    width: 40px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--wiz-text);
    border: none;
    background: transparent;
}

.wizard-stepper--small .wizard-stepper__btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
}

.wizard-stepper--small .wizard-stepper__value {
    width: 30px;
    font-size: 14px;
}

/* ========== Room Cards ========== */
.wizard-room-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wizard-room-card {
    display: block;
    border: 1px solid var(--wiz-border);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wizard-room-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wizard-room-card--selected {
    border: 2px solid var(--wiz-primary);
    border-color: var(--wiz-primary);
}

.wizard-room-card__radio {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 18px;
    height: 18px;
    accent-color: var(--wiz-primary);
}

.wizard-room-card__content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
}

.wizard-room-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--wiz-text);
    margin-bottom: 4px;
}

.wizard-room-card__description {
    font-size: 13px;
    color: var(--wiz-muted);
    line-height: 1.4;
}

.wizard-room-card__price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--wiz-text);
}

.price-info-btn {
    width: 16px;
    height: 16px;
    border: 1px solid #D9D9D9;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========== Buttons ========== */
.wizard-actions {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.wizard-actions--dual {
    gap: 12px;
}

.wizard-btn {
    height: 46px;
    padding: 0 32px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wizard-btn--primary {
    background-color: var(--wiz-accent);
    color: #FFFFFF;
}

.wizard-btn--primary:hover {
    background-color: #E3286D;
}

.wizard-btn--primary:active {
    background-color: #C81E5C;
}

.wizard-btn--primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 46, 122, 0.25);
}

.wizard-btn--outline {
    background-color: #FFFFFF;
    color: var(--wiz-primary);
    border: 1.5px solid var(--wiz-primary);
}

.wizard-btn--outline:hover {
    background-color: #E8FAF8;
}

.wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Urgency Warning ========== */
.wizard-urgency {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--wiz-muted);
    padding: 12px 0;
}

.wizard-urgency__content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-urgency__countdown {
    padding: 4px 10px;
    background-color: var(--wiz-bg-light);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* ========== Support Line ========== */
.wizard-support {
    font-size: 13px;
    color: var(--wiz-muted);
    text-align: center;
    padding: 8px 0;
}

.wizard-link {
    color: var(--wiz-primary);
    text-decoration: none;
}

.wizard-link:hover {
    text-decoration: underline;
}

/* ========== Benefits ========== */
.wizard-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.wizard-benefit-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.wizard-benefit-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #E8FAF8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wizard-benefit-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--wiz-text);
    margin-bottom: 2px;
}

.wizard-benefit-card__description {
    font-size: 12px;
    color: var(--wiz-muted);
    line-height: 1.4;
}

/* ========== QR Card ========== */
.wizard-qr-card {
    width: 190px;
    margin: 16px auto 0;
    padding: 16px;
    border-radius: 16px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.wizard-qr-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--wiz-text);
    margin-bottom: 12px;
}

.wizard-qr-card__code {
    margin-bottom: 12px;
}

.wizard-qr-card__code img {
    max-width: 120px;
    height: auto;
}

.wizard-qr-card__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.wizard-qr-action {
    width: 32px;
    height: 32px;
    border: 1px solid var(--wiz-border);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.wizard-qr-action:hover {
    background-color: #E8FAF8;
    border-color: var(--wiz-primary);
}

/* ========== Step 2: Add-ons ========== */
.wizard-intro-text {
    font-size: 13px;
    font-style: italic;
    color: #6B6B6B;
    margin: 0 0 12px 0;
}

.wizard-addons-list {
    display: flex;
    flex-direction: column;
}

.wizard-addon-item {
    border-bottom: 1px solid var(--wiz-separator);
    padding: 14px 0;
}

.wizard-addon-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wizard-addon-item__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--wiz-text);
    flex: 1;
}

.wizard-addon-item__day {
    font-size: 13px;
    font-weight: 400;
    color: var(--wiz-primary);
}

.wizard-addon-item__controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizard-addon-item__price {
    font-size: 14px;
    color: #333;
    padding: 8px 12px;
    border: 1px solid var(--wiz-border);
    border-radius: 24px;
}

.wizard-addon-item__toggle {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.wizard-addon-item__toggle--expanded {
    transform: rotate(180deg);
}

.wizard-addon-item__details {
    margin-top: 12px;
    display: none;
}

.wizard-addon-item__toggle--expanded + .wizard-addon-item__details,
.wizard-addon-item__details.is-expanded {
    display: block;
}

.wizard-addon-details {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--wiz-border);
    border-radius: 12px;
    background-color: #FFFFFF;
}

.wizard-addon-details__title {
    font-size: 14px;
    margin: 0 0 8px 0;
}

.wizard-addon-details__description {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    margin: 8px 0 0 0;
}

.wizard-addon-details__image {
    width: 140px;
    height: 105px;
    border-radius: 10px;
    overflow: hidden;
}

.wizard-addon-details__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== Step 3: Billing Form ========== */
.wizard-billing-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.wizard-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wizard-form-field--full {
    grid-column: 1 / -1;
}

.wizard-form-field__label {
    font-size: 13px;
    color: #444;
    font-weight: 500;
}

.wizard-form-field__input,
.wizard-form-field select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--wiz-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--wiz-text);
    background-color: #FFFFFF;
    transition: all 0.15s ease;
}

.wizard-form-field__input:focus,
.wizard-form-field select:focus {
    outline: none;
    border-color: var(--wiz-primary);
    box-shadow: 0 0 0 2px rgba(46, 196, 182, 0.12);
}

.wizard-form-field__input::placeholder {
    color: #9AA0A6;
}

.wizard-date-input {
    position: relative;
}

.wizard-date-input__icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Terms Checkbox */
.wizard-terms {
    margin: 8px 0;
}

.wizard-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.wizard-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    border: 1px solid #9ACEC8;
    accent-color: var(--wiz-primary);
}

.wizard-checkbox__label {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

/* ========== Step 4: Order Summary ========== */
.wizard-order-summary {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--wiz-separator);
}

.wizard-order-summary__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.wizard-order-summary__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--wiz-text);
    margin: 0;
    flex: 1;
}

.wizard-order-summary__duration {
    font-size: 13px;
    color: #6B6B6B;
}

.wizard-order-summary__dates {
    font-size: 13px;
    color: #333;
}

.wizard-order-summary__dates strong {
    color: #444;
}

/* Cost Breakdown */
.wizard-cost-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wizard-cost-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wizard-cost-item__label {
    font-size: 14px;
    color: var(--wiz-text);
}

.wizard-cost-item__amount {
    font-size: 15px;
    font-weight: 600;
    color: var(--wiz-text);
}

.wizard-cost-item--addon {
    padding-left: 12px;
}

.wizard-cost-item--addon .wizard-cost-item__label {
    font-size: 13px;
    color: #444;
}

.wizard-cost-section__title {
    font-size: 13px;
    color: var(--wiz-muted);
    margin-bottom: 8px;
}

/* Promo Code */
.wizard-promo-code {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.wizard-promo-code__label {
    font-size: 13px;
    color: #444;
}

.wizard-promo-code__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wizard-promo-code__input {
    width: 100%;
    height: 38px;
    padding: 0 40px 0 14px;
    border: 1.5px solid var(--wiz-primary);
    border-radius: 24px;
    font-size: 14px;
    color: var(--wiz-text);
}

.wizard-promo-code__btn {
    position: absolute;
    right: 6px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background-color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-promo-code__discount {
    font-size: 14px;
    color: var(--wiz-error);
}

/* Total */
.wizard-cost-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--wiz-separator);
    border-bottom: 1px solid var(--wiz-separator);
    margin: 8px 0;
}

.wizard-cost-total__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--wiz-text);
}

.wizard-cost-total__amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--wiz-text);
}

/* Payment Options */
.wizard-payment-options {
    margin-top: 12px;
}

.wizard-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--wiz-text);
    margin-bottom: 12px;
}

.wizard-payment-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.wizard-payment-card {
    display: block;
    border: 1px solid var(--wiz-border);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-payment-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wizard-payment-card--selected {
    border: 2px solid var(--wiz-primary);
}

.wizard-payment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.wizard-payment-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wizard-payment-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--wiz-text);
}

.wizard-payment-card__amount {
    font-size: 15px;
    font-weight: 600;
    color: var(--wiz-text);
}

.wizard-payment-card__description {
    font-size: 13px;
    color: var(--wiz-muted);
    line-height: 1.5;
    margin: 0;
}

.wizard-payment-note {
    font-size: 12px;
    font-style: italic;
    color: #2A83D5;
    margin: 0;
}

/* Payment Buttons */
.wizard-payment-methods {
    margin-top: 16px;
}

.wizard-payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wizard-payment-btn {
    height: 48px;
    width: 100%;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    transition: all 0.2s ease;
}

.wizard-payment-btn--flywire {
    background-color: var(--wiz-accent);
}

.wizard-payment-btn--stripe {
    background-color: #635BFF;
}

.wizard-payment-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.wizard-divider {
    border: none;
    border-top: 1px dashed #E9E9E9;
    margin: 16px 0;
}

/* ========== Responsive ========== */
@media (max-width: 480px) {
    .booking-wizard-aside {
        width: 100%;
    }

    .wizard-benefits {
        grid-template-columns: 1fr;
    }

    .wizard-billing-form {
        grid-template-columns: 1fr;
    }
}
