@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

.pro-bus-app-d05c8c52 { font-family: 'Cairo', sans-serif; max-width: 1100px; margin: auto; color: #1e293b; }
.pro-bus-app-d05c8c52 * { box-sizing: border-box; }

/* Search Box */
.pro-search-box { background: #fff; padding: 30px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); margin-bottom: 40px; border: 1px solid #f1f5f9; }
.pro-grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; align-items: end; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 700; font-size: 14px; color: #475569; }
.form-group input, .form-group select { width: 100%; padding: 14px 16px; border: 2px solid #e2e8f0; border-radius: 10px; font-family: inherit; font-size: 15px; outline: none; transition: all 0.2s; background: #f8fafc; color: #0f172a; }
.form-group input:focus, .form-group select:focus { border-color: #3b82f6; background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }

/* Buttons */
.pro-btn { padding: 14px 24px; background: #2563eb; color: #fff; border: none; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 16px; font-family: inherit; transition: all 0.3s; display: inline-block; text-align: center; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }
.pro-btn:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3); }
.pro-btn:active { transform: translateY(0); }

/* General Helpers */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Wizard Steps */
.pro-step { background: #fff; padding: 35px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.03); margin-bottom: 40px; border: 1px solid #f1f5f9; }
.step-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 2px solid #f1f5f9; }
.step-header h3 { margin: 0; font-size: 22px; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.step-route { background: #eff6ff; color: #2563eb; padding: 6px 16px; border-radius: 30px; font-size: 14px; font-weight: 700; }

/* Trip Cards */
.trips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 30px; }
.modern-trip-card { background: #fff; border: 2px solid #e2e8f0; border-radius: 16px; padding: 24px; transition: all 0.3s; cursor: pointer; display: flex; flex-direction: column; gap: 15px; }
.modern-trip-card:hover { border-color: #93c5fd; box-shadow: 0 12px 24px rgba(59, 130, 246, 0.08); transform: translateY(-3px); }
.card-time { font-size: 28px; font-weight: 800; color: #0f172a; }
.card-type { font-size: 14px; color: #64748b; font-weight: 600; background: #f8fafc; padding: 6px 12px; border-radius: 8px; display: inline-block; align-self: flex-start; }
.card-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 20px; border-top: 1px dashed #cbd5e1; }
.card-price { font-size: 24px; font-weight: 800; color: #10b981; }
.card-seats { font-size: 13px; color: #ef4444; font-weight: 700; margin-top: 4px; }
.btn-select-trip { background: #f1f5f9; color: #475569; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-family: inherit; font-weight: 700; transition: 0.3s; pointer-events: none; }
.modern-trip-card.active-card { border-color: #2563eb; background: #f8fafc; ring: 2px solid rgba(37,99,235,0.2); }
.modern-trip-card.active-card .btn-select-trip { background: #2563eb; color: #fff; }

/* Horizontal Bus Seat Map */
.seat-map-box { margin-top: 40px; padding-top: 30px; border-top: 2px dashed #e2e8f0; }
.legend { display: flex; gap: 20px; margin-bottom: 25px; font-size: 15px; font-weight: 600; color: #475569; }
.legend-box { display: inline-block; width: 18px; height: 18px; border-radius: 6px; vertical-align: middle; margin-left: 8px; }
.legend-box.available { background: #fff; border: 2px solid #cbd5e1; }
.legend-box.booked { background: #e2e8f0; border: 2px solid #94a3b8; }
.legend-box.selected { background: #2563eb; border: 2px solid #1d4ed8; }

.horizontal-bus-container { display: flex; align-items: center; background: #f8fafc; padding: 25px; border-radius: 24px; border: 2px solid #e2e8f0; overflow-x: auto; scrollbar-width: thin; }
.bus-front { width: 70px; height: 200px; background: #f1f5f9; border-radius: 30px 0 0 30px; border-right: 3px solid #cbd5e1; margin-left: 25px; position: relative; flex-shrink: 0; box-shadow: inset -5px 0 10px rgba(0,0,0,0.02); }
.driver-seat { width: 40px; height: 40px; background: #94a3b8; border-radius: 10px; position: absolute; bottom: 25px; left: 15px; }
.bus-back { width: 40px; height: 200px; background: #f1f5f9; border-radius: 0 30px 30px 0; border-left: 3px solid #cbd5e1; margin-right: 25px; flex-shrink: 0; box-shadow: inset 5px 0 10px rgba(0,0,0,0.02); }

.horizontal-bus-layout { display: grid; grid-template-columns: repeat(12, 45px); grid-template-rows: repeat(5, 45px); gap: 12px; flex-shrink: 0; }
.h-seat { width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; cursor: pointer; user-select: none; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.h-seat.available { background: #fff; border: 2px solid #cbd5e1; color: #475569; }
.h-seat.available:hover { border-color: #3b82f6; color: #3b82f6; transform: scale(1.05); }
.h-seat.booked { background: #e2e8f0; border: 2px solid #cbd5e1; color: #94a3b8; cursor: not-allowed; opacity: 0.7; }
.h-seat.selected { background: #2563eb; border: 2px solid #1d4ed8; color: #fff; transform: scale(1.1); box-shadow: 0 4px 10px rgba(37,99,235,0.3); }
.h-seat.aisle { visibility: hidden; }

/* =========================================
   PREMIUM SAAS CHECKOUT UI (REACT-LIKE)
   ========================================= */

.premium-checkout-box { background: transparent; padding: 0; border: none; box-shadow: none; margin-top: 50px; }
.premium-checkout-layout { display: flex; gap: 40px; align-items: flex-start; flex-direction: row-reverse; /* RTL Native: Summary Right, Form Left */ }

/* Left Column: Form */
.checkout-form-col { flex: 1.5; }
.saas-form-card { background: #fff; padding: 40px; border-radius: 24px; border: 1px solid #e2e8f0; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05); }
.form-section-title { font-size: 20px; font-weight: 800; margin-top: 0; margin-bottom: 25px; color: #0f172a; display: flex; align-items: center; gap: 10px; }
.form-section-title::before { content: ""; display: block; width: 4px; height: 20px; background: #2563eb; border-radius: 4px; }

.modern-input-group { margin-bottom: 20px; }
.modern-input-group label { display: block; font-weight: 700; color: #334155; margin-bottom: 8px; font-size: 14px; }
.modern-input { width: 100%; padding: 16px; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; font-family: inherit; font-size: 16px; color: #0f172a; transition: all 0.2s; outline: none; }
.modern-input:focus { background: #fff; border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }

/* Custom Payment Cards */
.saas-payment-methods { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.hidden-radio { display: none; }
.payment-method-card { display: block; background: #fff; border: 2px solid #e2e8f0; border-radius: 16px; padding: 20px; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; }
.payment-method-card:hover { border-color: #cbd5e1; background: #f8fafc; }
.payment-method-card.selected { border-color: #2563eb; background: #eff6ff; box-shadow: 0 4px 15px rgba(37,99,235,0.05); }
.payment-card-content { display: flex; flex-direction: column; gap: 10px; }
.payment-card-header { display: flex; align-items: center; gap: 12px; }
.custom-radio { width: 22px; height: 22px; border: 2px solid #cbd5e1; border-radius: 50%; display: inline-block; position: relative; transition: 0.2s; }
.payment-method-card.selected .custom-radio { border-color: #2563eb; }
.payment-method-card.selected .custom-radio::after { content: ""; position: absolute; top: 4px; left: 4px; width: 10px; height: 10px; background: #2563eb; border-radius: 50%; }
.method-name { font-weight: 800; font-size: 16px; color: #0f172a; }
.payment-logos { display: flex; gap: 8px; margin-right: 34px; }
.payment-logos img { height: 24px; object-fit: contain; background: #fff; padding: 2px 6px; border-radius: 4px; border: 1px solid #e2e8f0; }
.method-desc { margin: 0 34px 0 0; font-size: 13px; color: #64748b; font-weight: 600; }

/* Submit Button */
.saas-submit-btn { width: 100%; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border: none; padding: 20px; border-radius: 16px; font-size: 18px; font-weight: 800; font-family: inherit; cursor: pointer; transition: all 0.3s; box-shadow: 0 10px 25px rgba(37,99,235,0.3); position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.saas-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(37,99,235,0.4); }
.saas-submit-btn:active { transform: translateY(1px); box-shadow: 0 5px 15px rgba(37,99,235,0.3); }
.saas-submit-btn:disabled { background: #94a3b8; cursor: not-allowed; transform: none; box-shadow: none; }

/* Secure Note */
.secure-badge { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; color: #10b981; font-weight: 700; font-size: 14px; background: #ecfdf5; padding: 12px; border-radius: 10px; }
.secure-badge .dashicons { font-size: 18px; width: 18px; height: 18px; }

/* Right Column: Summary */
.checkout-summary-col { flex: 1; position: sticky; top: 40px; }
.saas-summary-card { background: #0f172a; color: #fff; padding: 35px; border-radius: 24px; box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2); position: relative; overflow: hidden; }
.saas-summary-card::before { content: ""; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: rgba(37, 99, 235, 0.2); filter: blur(40px); border-radius: 50%; }

.summary-title { margin-top: 0; font-size: 22px; font-weight: 800; margin-bottom: 30px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }

.summary-route-block { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px dashed rgba(255,255,255,0.1); position: relative; z-index: 1; }
.route-badge-saas { display: inline-block; background: rgba(37,99,235,0.2); color: #60a5fa; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 800; margin-bottom: 12px; border: 1px solid rgba(59,130,246,0.3); }
.route-badge-saas.return { background: rgba(239,68,68,0.2); color: #f87171; border-color: rgba(239,68,68,0.3); }
.route-heading { font-size: 18px; font-weight: 800; margin: 0 0 10px 0; color: #f8fafc; }
.route-meta { color: #94a3b8; font-size: 14px; font-weight: 600; margin-bottom: 15px; display: flex; align-items: center; gap: 6px; }

/* Seat Pills */
.seat-badges-container { display: flex; flex-wrap: wrap; gap: 8px; }
.seat-pill { background: #1e293b; color: #e2e8f0; padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 800; border: 1px solid #334155; display: inline-flex; align-items: center; justify-content: center; min-width: 45px; }
.seat-pill::before { content: "مقعد"; font-size: 10px; color: #64748b; margin-left: 4px; font-weight: 700; }

.summary-total-block { display: flex; flex-direction: column; gap: 8px; margin-top: 30px; position: relative; z-index: 1; }
.total-label { color: #94a3b8; font-size: 15px; font-weight: 600; }
.total-amount { color: #10b981; font-size: 36px; font-weight: 800; letter-spacing: -1px; }

.summary-warning-note { margin-top: 25px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 13px; color: #fbbf24; font-weight: 600; text-align: center; }

/* Loader Spinner */
.spinner { animation: rotate 2s linear infinite; z-index: 2; position: absolute; top: 50%; left: 50%; margin: -12px 0 0 -12px; width: 24px; height: 24px; }
.spinner .path { stroke: #ffffff; stroke-linecap: round; animation: dash 1.5s ease-in-out infinite; }
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash { 0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; } }

/* Responsive */
@media (max-width: 900px) {
    .premium-checkout-layout { flex-direction: column; }
    .checkout-form-col, .checkout-summary-col { width: 100%; }
    .checkout-summary-col { position: static; order: -1; margin-bottom: 20px; }
}