/**
 * SnapTrip Booking Wizard Styles
 * Matched 1:1 to HTML preview (snaptrip-preview.html)
 * Covers: Progress bar, Steps 1-3 (Group Size, Excursions, Accommodation), Sidebar
 * Colors: Navy #1E3A6D, Orange #E8842A, Green #2E8B57
 */

/* ============================================
   TOKENS (matching preview :root)
   ============================================ */
.st-wizard-container,
.st-wizard-container *,
.st-wizard-container *::before,
.st-wizard-container *::after {
    box-sizing: border-box;
}

.st-wizard-container {
    --navy: #1E3A6D;
    --navy-deep: #0F2240;
    --navy-light: #2B4F8A;
    --orange: #E8842A;
    --orange-hover: #D4741F;
    --green: #2E8B57;
    --green-light: #3AAE6E;
    --cream: #FDF8F3;
    --bg: #f5f6f8;
    --white: #ffffff;
    --text: #333333;
    --text-light: #777777;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-sm: 6px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, sans-serif;

    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: var(--font-body);
    color: var(--text);
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.st-wizard-progress {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 40px;
}
.st-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #eee;
    color: #aaa;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}
.st-progress-step.active {
    background: var(--navy);
    color: var(--white);
}
.st-progress-step.completed {
    background: var(--green);
    color: var(--white);
}
.st-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    font-weight: 700;
    font-size: 12px;
}

/* ============================================
   LAYOUT
   ============================================ */
.st-wizard-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: flex-start;
}
.st-wizard-main { }
.st-wizard-sidebar {
    position: sticky;
    top: 80px;
}

/* ============================================
   STEPS (generic)
   ============================================ */
.st-wizard-step { display: none; }
.st-wizard-step.active { display: block; }
.st-wizard-step h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.st-wizard-step h3 {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    margin: 28px 0 14px;
}

/* ============================================
   STEP 1: GROUP SIZE
   ============================================ */

/* Journey Thumbnail */
.st-journey-thumb {
    width: 100%;
    height: 240px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #1a5c3a, #1E3A6D);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    overflow: hidden;
}
.st-journey-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Journey Brief/Duration */
.st-journey-brief {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 8px;
}
.st-journey-duration {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Group Size Buttons */
.st-wizard-container .st-group-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
}
.st-wizard-container .st-group-btn {
    padding: 16px 30px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    font-family: 'Poppins', -apple-system, sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    text-shadow: none !important;
    line-height: 1 !important;
    min-width: 0 !important;
    text-decoration: none !important;
}
.st-wizard-container .st-group-btn:hover,
.st-wizard-container .st-group-btn:focus {
    border-color: #1E3A6D !important;
    color: #1E3A6D !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}
.st-wizard-container .st-group-btn.active,
.st-wizard-container .st-group-btn.active:hover,
.st-wizard-container .st-group-btn.active:focus {
    border-color: #1E3A6D !important;
    background: #1E3A6D !important;
    background-color: #1E3A6D !important;
    color: #ffffff !important;
}
.st-wizard-container .st-group-btn.st-group-7plus {
    border-color: #E8842A !important;
    color: #E8842A !important;
    font-size: 16px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}
.st-wizard-container .st-group-btn.st-group-7plus:hover,
.st-wizard-container .st-group-btn.st-group-7plus:focus {
    background: #E8842A !important;
    background-color: #E8842A !important;
    color: #ffffff !important;
    border-color: #E8842A !important;
}

/* ============================================
   STEP 2: ITINERARY & EXTRAS
   ============================================ */

/* Day Items */
.st-day-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.st-day-item h4 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}
.st-day-item .st-overnight {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--orange);
}
.st-day-item p {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-top: 6px;
}

/* Extra Items */
.st-extra-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.st-extra-item:hover {
    border-color: var(--navy-light);
}
.st-extra-item.selected {
    border-color: var(--green);
    background: #f0faf4;
}
.st-extra-item input[type="checkbox"] { display: none; }
.st-extra-check {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 12px;
    color: transparent;
}
.st-extra-item.selected .st-extra-check {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}
.st-extra-info { flex: 1; }
.st-extra-info strong {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}
.st-extra-info span,
.st-extra-info p {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-light);
    margin-top: 0;
}
.st-extra-price {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--navy);
    font-size: 14px;
    white-space: nowrap;
}
.st-extra-price-free {
    color: var(--green);
}

/* ============================================
   STEP 3: ACCOMMODATION
   ============================================ */
.st-accom-option {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
}
.st-accom-option input[type="radio"] { display: none; }
.st-accom-card {
    padding: 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}
.st-accom-card:hover {
    border-color: var(--navy-light);
}
.st-accom-option.active .st-accom-card,
.st-accom-option input:checked + .st-accom-card {
    border-color: var(--navy);
    background: #f5f8fc;
}
.st-accom-card h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}
.st-accom-card p {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}
.st-included-badge {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}
.st-upgrade-badge {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}
.st-amenities-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.st-amenity {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 12px;
    color: #555;
}
.st-premium-hotels-showcase {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.st-premium-hotel-card {
    flex: 1;
    min-width: 160px;
    background: #f9f9f9;
    padding: 14px;
    border-radius: 8px;
    text-align: center;
}
.st-premium-hotel-card strong {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    display: block;
}
.st-premium-hotel-card span {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-light);
}
.st-premium-price {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--orange);
    margin-top: 14px;
}

/* ============================================
   SIDEBAR: PRICE SUMMARY
   ============================================ */
.st-price-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.st-price-summary h3 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}
.st-summary-title {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text);
    margin-bottom: 4px;
}
.st-summary-duration {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 16px;
}
.st-summary-line {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
}
.st-summary-line strong {
    color: var(--navy);
}
.st-summary-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 10px 0;
}
.st-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 0;
}
.st-summary-total span {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.st-summary-total .st-total-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--orange);
}
.st-currency-note {
    font-family: var(--font-body);
    font-size: 11px;
    color: #bbb;
    text-align: center;
    margin-top: 14px;
}
.st-currency-note a {
    color: var(--orange);
    text-decoration: none;
}

/* ============================================
   STEP 4: GROUP DETAILS FORMS
   ============================================ */
.st-form-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.st-form-section h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.st-form-hint {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
    margin-top: -10px;
}
.st-form-row {
    margin-bottom: 16px;
}
.st-form-row label {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.st-req { color: #dc3545; }
.st-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.2s;
    background: var(--white);
    box-sizing: border-box;
}
.st-form-input:focus {
    outline: none;
    border-color: var(--navy);
}
textarea.st-form-input {
    resize: vertical;
    min-height: 80px;
}
.st-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================
   STEP 4: DATE PICKER
   ============================================ */
.st-datepicker {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
}
.st-datepicker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.st-datepicker-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}
.st-datepicker-nav {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    font-size: 18px !important;
    color: var(--navy) !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    transition: color 0.15s !important;
    box-shadow: none !important;
    text-shadow: none !important;
    min-width: 0 !important;
    line-height: 1 !important;
}
.st-datepicker-nav:hover {
    color: var(--orange) !important;
    background: none !important;
    background-color: transparent !important;
}
.st-datepicker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 12px;
}
.st-dp-head {
    font-weight: 600;
    color: var(--navy);
    padding: 6px 0;
}
.st-dp-cell {
    padding: 8px 4px;
    border-radius: 4px;
    transition: all 0.15s;
}
.st-dp-empty { }
.st-dp-available {
    color: var(--text);
    cursor: pointer;
}
.st-dp-available:hover {
    background: #e8f0ff;
}
.st-dp-blocked {
    color: #ccc;
    text-decoration: line-through;
    cursor: not-allowed;
}
.st-dp-selected {
    background: var(--navy) !important;
    color: var(--white) !important;
    cursor: pointer;
    font-weight: 600;
}
.st-datepicker-legend {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    gap: 16px;
}
.st-dp-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.st-dp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.st-dp-dot-available { background: var(--text); }
.st-dp-dot-blocked { background: #ccc; }
.st-dp-dot-selected { background: var(--navy); }

/* ============================================
   STEP NAVIGATION BUTTONS
   ============================================ */
.st-wizard-container .st-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.st-wizard-container .st-btn {
    display: inline-block !important;
    font-family: 'Poppins', -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 14px 28px !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background-image: none !important;
    min-width: 0 !important;
    height: auto !important;
}
.st-wizard-container .st-btn-primary,
.st-wizard-container button.st-btn-primary,
.st-wizard-container a.st-btn-primary {
    background: #E8842A !important;
    background-color: #E8842A !important;
    color: #ffffff !important;
    border: none !important;
}
.st-wizard-container .st-btn-primary:hover,
.st-wizard-container button.st-btn-primary:hover,
.st-wizard-container a.st-btn-primary:hover,
.st-wizard-container .st-btn-primary:focus,
.st-wizard-container button.st-btn-primary:focus {
    background: #D4741F !important;
    background-color: #D4741F !important;
    color: #ffffff !important;
    border: none !important;
}
.st-wizard-container .st-btn-primary:disabled,
.st-wizard-container .st-btn-primary.disabled,
.st-wizard-container button.st-btn-primary:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: #E8842A !important;
    background-color: #E8842A !important;
    color: #ffffff !important;
}
.st-wizard-container .st-btn-outline,
.st-wizard-container button.st-btn-outline,
.st-wizard-container a.st-btn-outline {
    background: transparent !important;
    background-color: transparent !important;
    color: #1E3A6D !important;
    border: 2px solid #1E3A6D !important;
}
.st-wizard-container .st-btn-outline:hover,
.st-wizard-container button.st-btn-outline:hover,
.st-wizard-container a.st-btn-outline:hover,
.st-wizard-container .st-btn-outline:focus,
.st-wizard-container button.st-btn-outline:focus {
    background: #1E3A6D !important;
    background-color: #1E3A6D !important;
    color: #ffffff !important;
    border: 2px solid #1E3A6D !important;
}

/* ============================================
   CHECKOUT STYLES (untouched)
   ============================================ */
.st-checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; max-width: 1100px; margin: 30px auto 0; }

.st-checkout-section {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.st-checkout-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px; color: #1E3A6D;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.st-form-row { margin-bottom: 16px; }
.st-form-row label { display: block; font-size: 13px; font-weight: 500; color: #333; margin-bottom: 6px; }
.st-form-row .req { color: #dc3545; }
.st-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.st-form-input:focus { outline: none; border-color: #1E3A6D; }
textarea.st-form-input { resize: vertical; min-height: 80px; }
.st-form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.st-order-summary-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    position: sticky; top: 80px;
}
.st-order-summary-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px; color: #1E3A6D;
    margin-bottom: 20px;
}
.st-order-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.st-order-line .st-order-label { color: #777; }
.st-order-line .st-order-value { font-weight: 600; color: #333; }

.st-stripe-mock {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
}

/* ============================================
   THANK YOU PAGE (untouched)
   ============================================ */
.st-thankyou-container { max-width: 700px; margin: 0 auto; text-align: center; padding-top: 20px; }
.st-thankyou-icon {
    width: 80px; height: 80px;
    background: #2E8B57;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    box-shadow: 0 4px 20px rgba(46,139,87,0.3);
}
.st-thankyou-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px; color: #1E3A6D;
    margin: 0;
}
.st-thankyou-subtitle {
    font-size: 15px; color: #777;
    margin-top: 12px; line-height: 1.6;
}
.st-thankyou-ref {
    display: inline-block;
    background: #1E3A6D;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 20px; font-weight: 700;
    letter-spacing: 2px;
    margin: 16px 0 24px;
}
.st-thankyou-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    text-align: left;
    margin-top: 30px;
}
.st-thankyou-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px; color: #1E3A6D;
    margin-bottom: 16px;
}
.st-thankyou-next {
    background: #f0f7ff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}
.st-thankyou-next h4 { color: #1E3A6D; font-size: 14px; margin-bottom: 8px; }
.st-thankyou-next p { font-size: 13px; color: #777; line-height: 1.7; margin: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .st-wizard-layout { grid-template-columns: 1fr; }
    .st-wizard-sidebar { position: static; order: -1; }
    .st-wizard-progress { flex-wrap: wrap; }
    .st-progress-step .st-step-label { display: none; }
    .st-group-buttons { justify-content: center; }
    .st-checkout-layout { grid-template-columns: 1fr; }
    .st-form-row-half { grid-template-columns: 1fr; }
}

/* iPhone SE and small phones (375px and below) */
@media (max-width: 480px) {
    .st-wizard-container { margin: 20px auto; padding: 0 12px; }
    .st-wizard-progress { gap: 4px; margin-bottom: 24px; }
    .st-progress-step { padding: 8px 10px; font-size: 11px; gap: 4px; }
    .st-step-number { width: 22px; height: 22px; font-size: 11px; }
    .st-wizard-step h2 { font-size: 22px; }
    .st-wizard-step h3 { font-size: 15px; margin: 20px 0 10px; }
    .st-wizard-container .st-group-buttons { flex-wrap: wrap; gap: 8px; }
    .st-wizard-container .st-group-btn { flex: 1 1 calc(33.33% - 6px); min-width: 90px; padding: 10px 8px; font-size: 12px; }
    .st-wizard-container .st-group-btn.st-group-7plus { flex: 1 1 100%; }
    .st-wizard-container .st-btn { padding: 12px 20px; font-size: 13px; }
    .st-wizard-container .st-step-actions { flex-direction: column-reverse; gap: 10px; }
    .st-wizard-container .st-step-actions .st-btn { width: 100%; }
    .st-form-input, .st-form-textarea { font-size: 14px; padding: 10px 12px; }
    .st-wizard-sidebar { padding: 20px 18px; }
    .st-summary-card { padding: 18px; }
}
