/* JRT Bus Booking Plugin Styles */

#jrt-booking-wrap {
    max-width: 620px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
}

#jrt-booking-header {
    text-align: center;
    padding: 28px 20px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 16px 16px 0 0;
    color: #fff;
}

.jrt-logo { font-size: 48px; line-height: 1; margin-bottom: 8px; }

#jrt-booking-header h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #fff !important;
    border: none !important;
}

.jrt-subtitle { margin: 0; font-size: 13px; color: #a0b4cc; letter-spacing: 0.5px; }

/* Steps */
.jrt-step { display: none; background: #fff; border: 1px solid #e2e8f0; border-top: none; padding: 28px 28px 24px; }
.jrt-step.active { display: block; }

#jrt-step-success { text-align: center; padding: 50px 28px; border-radius: 0 0 16px 16px; }
.jrt-success-icon { font-size: 56px; margin-bottom: 12px; }
#jrt-step-success h3 { font-size: 22px; color: #1a1a2e; }

#jrt-step-3.active, #jrt-step-success.active { border-radius: 0 0 16px 16px; }

.jrt-step-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 17px; font-weight: 700; color: #1a1a2e;
    margin: 0 0 22px; border: none !important; padding: 0 !important;
}

.jrt-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; background: #0f3460; color: #fff;
    border-radius: 50%; font-size: 13px; font-weight: 700; flex-shrink: 0;
}

/* Fields */
.jrt-field-group { margin-bottom: 18px; }

.jrt-field-group label {
    display: block; font-size: 13px; font-weight: 600; color: #4a5568;
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}

.jrt-field-group select,
.jrt-field-group input[type="text"],
.jrt-field-group input[type="email"],
.jrt-field-group input[type="number"] {
    width: 100%; padding: 11px 14px;
    border: 2px solid #e2e8f0; border-radius: 8px;
    font-size: 15px; color: #1a1a2e; background: #f8fafc;
    transition: border-color 0.2s; box-sizing: border-box; -webkit-appearance: none;
}

.jrt-field-group select:focus,
.jrt-field-group input:focus { outline: none; border-color: #0f3460; background: #fff; }

/* Radio cards */
.jrt-radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.jrt-radio-card { cursor: pointer; }
.jrt-radio-card input[type="radio"] { display: none; }

.jrt-card-inner {
    border: 2px solid #e2e8f0; border-radius: 10px; padding: 16px 12px;
    text-align: center; transition: all 0.2s; background: #f8fafc;
}

.jrt-radio-card input:checked + .jrt-card-inner { border-color: #0f3460; background: #eef3fb; }
.jrt-card-inner:hover { border-color: #0f3460; }
.jrt-card-icon { font-size: 28px; margin-bottom: 6px; }
.jrt-card-label { font-size: 12px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.jrt-card-time { font-size: 11px; color: #718096; margin-bottom: 8px; }

.jrt-seats-badge {
    display: inline-block; background: #e2e8f0; color: #4a5568;
    font-size: 11px; font-weight: 600; border-radius: 20px; padding: 2px 10px;
}
.jrt-seats-badge.full { background: #fed7d7; color: #c53030; }
.jrt-seats-badge.low  { background: #fefcbf; color: #b7791f; }
.jrt-seats-badge.ok   { background: #c6f6d5; color: #276749; }

/* Schedule */
#jrt-schedule-display { background: #f0f4ff; border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; }
#jrt-schedule-display h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #4a5568; }

.jrt-leg { position: relative; }
.jrt-leg-from, .jrt-leg-to { display: flex; align-items: center; gap: 10px; padding: 4px 0; }

.jrt-stop-dot { width: 10px; height: 10px; border-radius: 50%; background: #a0aec0; flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 0 0 2px #a0aec0; }
.jrt-stop-dot.first { background: #0f3460; box-shadow: 0 0 0 2px #0f3460; }
.jrt-stop-dot.last  { background: #e53e3e; box-shadow: 0 0 0 2px #e53e3e; }

.jrt-stop-name { font-size: 14px; font-weight: 600; flex: 1; }
.jrt-stop-time { font-size: 12px; color: #718096; white-space: nowrap; }

/* Quantity */
.jrt-qty-control { display: flex; align-items: center; border: 2px solid #e2e8f0; border-radius: 8px; overflow: hidden; width: fit-content; }
.jrt-qty-btn { width: 40px; height: 44px; background: #f8fafc; border: none; font-size: 20px; cursor: pointer; color: #0f3460; font-weight: 700; transition: background 0.15s; padding: 0; }
.jrt-qty-btn:hover { background: #eef3fb; }
#jrt-quantity { width: 60px !important; border: none !important; border-left: 2px solid #e2e8f0 !important; border-right: 2px solid #e2e8f0 !important; border-radius: 0 !important; text-align: center; font-weight: 700; background: #fff !important; padding: 11px 8px !important; }

/* Luggage box */
.jrt-luggage-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.jrt-luggage-allowance {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #eef3fb;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #1a1a2e;
    line-height: 1.5;
}

.jrt-luggage-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }

.jrt-luggage-allowance strong { display: block; font-weight: 700; margin-bottom: 2px; }

.jrt-luggage-selector { padding: 14px 16px; border-bottom: 1px solid #e2e8f0; }

.jrt-luggage-selector label {
    display: block; font-size: 13px; font-weight: 600;
    color: #4a5568; margin-bottom: 8px;
    text-transform: none !important; letter-spacing: 0 !important;
}

.jrt-luggage-selector select {
    width: 100%; padding: 10px 14px;
    border: 2px solid #e2e8f0; border-radius: 8px;
    font-size: 14px; color: #1a1a2e; background: #fff;
    box-sizing: border-box; -webkit-appearance: none;
}

.jrt-luggage-selector select:focus { outline: none; border-color: #0f3460; }

.jrt-luggage-policy {
    padding: 12px 16px;
    font-size: 12px;
    color: #718096;
    line-height: 1.6;
    background: #fffbf0;
    border-top: 1px solid #fef3c7;
}

.jrt-luggage-policy strong { color: #b7791f; }

/* Price box */
.jrt-price-box { background: #f0f4ff; border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; }

.jrt-price-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 4px 0; color: #4a5568; }

.jrt-price-total { font-size: 18px; font-weight: 700; color: #0f3460; margin-top: 8px; border-top: 2px solid #c3d0ef; padding-top: 8px; }

/* Summary */
.jrt-summary-card { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.jrt-summary-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #edf2f7; font-size: 14px; }
.jrt-summary-row:last-child { border-bottom: none; }
.jrt-summary-row span { color: #718096; }
.jrt-summary-row strong { color: #1a1a2e; text-align: right; max-width: 60%; }
.jrt-summary-total { font-size: 17px; font-weight: 700; margin-top: 6px; }
.jrt-summary-total span { color: #1a1a2e; }
.jrt-summary-total strong { color: #0f3460; }

.jrt-checkout-note { font-size: 13px; color: #718096; text-align: center; margin-bottom: 14px; }

/* Buttons */
.jrt-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #0f3460; color: #fff; border: none; border-radius: 8px;
    padding: 12px 24px; font-size: 15px; font-weight: 700; cursor: pointer;
    transition: background 0.2s, transform 0.1s; text-decoration: none;
}
.jrt-btn:hover:not(:disabled) { background: #1a4a80; }
.jrt-btn:active:not(:disabled) { transform: scale(0.98); }
.jrt-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.jrt-btn-secondary { background: #e2e8f0; color: #4a5568; }
.jrt-btn-secondary:hover:not(:disabled) { background: #cbd5e0; }

.jrt-btn-checkout { background: linear-gradient(135deg, #38a169, #2f855a); flex: 1; }
.jrt-btn-checkout:hover:not(:disabled) { background: linear-gradient(135deg, #48bb78, #38a169); }

.jrt-btn-row { display: flex; gap: 12px; margin-top: 4px; }

/* Error */
.jrt-error { background: #fff5f5; border: 2px solid #feb2b2; color: #c53030; border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-bottom: 14px; }

/* Responsive */
@media (max-width: 480px) {
    .jrt-step { padding: 20px 16px; }
    .jrt-radio-cards { grid-template-columns: 1fr; }
    #jrt-booking-header { padding: 20px 16px; }
}

/* ── Arrival method ── */
.jrt-arrival-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.jrt-arrival-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.jrt-arrival-option {
    cursor: pointer;
    border-right: 1px solid #e2e8f0;
}

.jrt-arrival-option:last-child { border-right: none; }

.jrt-arrival-option input[type="radio"] { display: none; }

.jrt-arrival-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 10px;
    transition: all 0.2s;
    height: 100%;
    box-sizing: border-box;
}

.jrt-arrival-option input:checked + .jrt-arrival-inner {
    background: #eef3fb;
    box-shadow: inset 0 -3px 0 #0f3460;
}

.jrt-arrival-inner:hover { background: #eef3fb; }

.jrt-arrival-icon { font-size: 24px; margin-bottom: 6px; }

.jrt-arrival-label {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.2;
}

.jrt-arrival-fee {
    font-size: 11px;
    color: #718096;
    font-weight: 600;
}

.jrt-arrival-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.jrt-arrival-note {
    padding: 14px 16px;
    background: #eef3fb;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #2d3748;
    line-height: 1.6;
}

.jrt-arrival-note ul { margin: 6px 0 0; padding-left: 18px; }
.jrt-arrival-note li { margin-bottom: 3px; }
.jrt-arrival-note strong { color: #0f3460; }

.jrt-arrival-weekend-warning {
    padding: 12px 16px;
    background: #fff5f5;
    border-top: 1px solid #feb2b2;
    color: #c53030;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .jrt-arrival-options { grid-template-columns: 1fr; }
    .jrt-arrival-option { border-right: none; border-bottom: 1px solid #e2e8f0; }
    .jrt-arrival-option:last-child { border-bottom: none; }
    .jrt-arrival-option input:checked + .jrt-arrival-inner { box-shadow: inset -3px 0 0 #0f3460; }
}
