/* ============================================================
   ডক্টরপাড়া — ambulance-booking.css
   Professional Ambulance Booking Page Redesign
   ============================================================ */

:root {
    --danger-lt:    #ef4444;
    --danger-bg:    rgba(220,38,38,.07);
    --danger-dark:  #b91c1c;
}

/* ============================================================
   NAVBAR
   ============================================================ */

/* ============================================================
   MOBILE HEADER
   ============================================================ */

/* ============================================================
   SIDE DRAWER
   ============================================================ */

/* ============================================================
   EMERGENCY BANNER
   ============================================================ */
.emergency-banner {
    background: linear-gradient(135deg, #7f1d1d, var(--danger) 50%, var(--danger-lt));
    padding: 10px 0; text-align: center;
}
.emergency-banner .container { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.emer-hotline { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 800; font-size: 1rem; }
.emer-hotline i { font-size: 1.1rem; animation: ring 2s ease-in-out infinite; }
@keyframes ring { 0%,100%{transform:rotate(0)} 10%{transform:rotate(-15deg)} 20%{transform:rotate(15deg)} 30%{transform:rotate(-10deg)} 40%{transform:rotate(10deg)} 50%{transform:rotate(0)} }
.emer-divider { width: 1px; height: 22px; background: rgba(255,255,255,.3); }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, #7f1d1d 0%, var(--danger) 55%, var(--danger-lt) 100%);
    padding: 48px 0 90px; position: relative; overflow: hidden;
}
.page-hero::before { content:''; position:absolute; top:-80px; right:-80px; width:380px; height:380px; border-radius:50%; background:rgba(255,255,255,.04); }
.page-hero::after  { content:''; position:absolute; bottom:-60px; left:-60px; width:260px; height:260px; border-radius:50%; background:rgba(255,255,255,.03); }
.page-hero .container { position: relative; z-index: 1; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 50px; padding: 5px 18px; font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.9); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.hero-badge .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }
.hero-title { font-size: 2.8rem; font-weight: 800; color: var(--white); margin-bottom: 10px; line-height: 1.2; }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,.72); margin-bottom: 0; }
.page-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }

/* ============================================================
   BOOKING LAYOUT
   ============================================================ */
.booking-section { padding: 0 0 60px; margin-top: -44px; position: relative; z-index: 10; }
.booking-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }

/* ============================================================
   STEP INDICATOR
   ============================================================ */
.step-bar { background: var(--white); border-radius: var(--radius-md); border: 1.5px solid var(--border); padding: 20px 28px; margin-bottom: 20px; display: flex; align-items: center; box-shadow: var(--shadow-sm); }
.step-item { flex: 1; display: flex; align-items: center; gap: 12px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .88rem; font-weight: 800; flex-shrink: 0; transition: var(--transition); }
.step-num.done { background: var(--success); color: var(--white); }
.step-num.active { background: var(--danger); color: var(--white); box-shadow: 0 0 0 4px rgba(220,38,38,.2); }
.step-num.pending { background: var(--bg-light); color: var(--text-muted); border: 2px solid var(--border); }
.step-text .st-title { font-size: .88rem; font-weight: 700; color: var(--dark); }
.step-text .st-sub   { font-size: .74rem; color: var(--text-muted); }
.step-connector { flex: 0 0 40px; height: 2px; background: var(--border); margin: 0 6px; border-radius: 2px; }
.step-connector.done { background: var(--success); }

/* ============================================================
   BOOKING FORM CARD
   ============================================================ */
.form-card { background: var(--white); border-radius: var(--radius-md); border: 1.5px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.form-card-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.form-card-header i { width: 36px; height: 36px; border-radius: 10px; background: var(--danger-bg); color: var(--danger); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.form-card-header h4 { font-size: 1rem; font-weight: 800; color: var(--dark); margin: 0; }
.form-card-body { padding: 24px; }

/* Ambulance type cards */
.amb-types { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 6px; }
.amb-type-card { border: 2px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; cursor: pointer; transition: var(--transition); display: flex; align-items: flex-start; gap: 16px; position: relative; }
.amb-type-card:hover { border-color: var(--danger-lt); background: rgba(220,38,38,.02); }
.amb-type-card.selected { border-color: var(--danger); background: rgba(220,38,38,.04); box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.amb-type-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; transition: var(--transition); }
.ati-basic   { background: rgba(220,38,38,.08); color: var(--danger); }
.ati-als     { background: rgba(124,58,237,.08); color: #7C3AED; }
.ati-freezer { background: rgba(11,85,99,.08); color: var(--primary); }
.amb-type-card.selected .ati-basic,
.amb-type-card.selected .ati-als,
.amb-type-card.selected .ati-freezer { background: var(--danger); color: var(--white); }
.amb-type-info { flex: 1; min-width: 0; }
.amb-type-info h5 { font-size: .95rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.amb-type-info p { font-size: .82rem; color: var(--text-muted); margin: 0 0 6px; line-height: 1.55; }
.amb-price { font-size: .9rem; font-weight: 800; color: var(--danger); }
.amb-features { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.amb-feat { font-size: .7rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--bg-light); color: var(--text-muted); border: 1px solid var(--border); }
.amb-selected-tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--danger); color: var(--white); font-size: .75rem; display: none; align-items: center; justify-content: center; }
.amb-type-card.selected .amb-selected-tick { display: flex; }

/* Form fields */
.form-section-title { font-size: .82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .7px; margin: 22px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--bg-light); display: flex; align-items: center; gap: 8px; }
.form-section-title i { color: var(--danger); }
.field-group { display: grid; gap: 14px; }
.field-group.two-col { grid-template-columns: 1fr 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .86rem; font-weight: 600; color: var(--dark); display: flex; align-items: center; gap: 6px; }
.form-field label .req { color: var(--danger); }
.form-field input,
.form-field select,
.form-field textarea { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; font-family: 'Hind Siliguri', sans-serif; font-size: .9rem; color: var(--text); background: var(--white); transition: var(--transition); outline: none; width: 100%; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.form-field textarea { resize: vertical; min-height: 80px; }
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .9rem; pointer-events: none; }
.input-with-icon input { padding-left: 36px; }
.field-hint { font-size: .76rem; color: var(--text-muted); }

/* Urgency toggle */
.urgency-row { display: flex; gap: 10px; margin-bottom: 6px; }
.urgency-btn { flex: 1; padding: 12px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--white); font-family: 'Hind Siliguri', sans-serif; font-size: .84rem; font-weight: 700; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.urgency-btn i { font-size: 1.3rem; }
.urgency-btn:hover { border-color: var(--danger-lt); }
.urgency-btn.active.ub-emergency { border-color: var(--danger); background: rgba(220,38,38,.06); color: var(--danger); }
.urgency-btn.active.ub-scheduled { border-color: var(--primary); background: rgba(11,85,99,.06); color: var(--primary); }

/* Submit button */
.btn-submit { width: 100%; background: linear-gradient(135deg, var(--danger), var(--danger-lt)); color: var(--white); border: none; border-radius: var(--radius-md); padding: 16px; font-family: 'Hind Siliguri', sans-serif; font-size: 1.05rem; font-weight: 800; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; }
.btn-submit:hover { opacity: .92; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(220,38,38,.35); }
.btn-submit i { font-size: 1.2rem; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-col { display: flex; flex-direction: column; gap: 16px; }

.sidebar-card { background: var(--white); border-radius: var(--radius-md); border: 1.5px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.sidebar-card-header { padding: 14px 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.sidebar-card-header i { font-size: 1.05rem; }
.sidebar-card-header h5 { font-size: .92rem; font-weight: 800; color: var(--dark); margin: 0; }
.sidebar-card-body { padding: 16px 18px; }

/* Hotline card */
.sidebar-card.hotline { border-color: rgba(220,38,38,.25); }
.sidebar-card.hotline .sidebar-card-header { background: linear-gradient(135deg, rgba(220,38,38,.08), rgba(220,38,38,.04)); }
.sidebar-card.hotline .sidebar-card-header i { color: var(--danger); }
.hotline-item { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--bg-light); }
.hotline-item:last-child { border-bottom: none; }
.hotline-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.hi-danger  { background: rgba(220,38,38,.1); color: var(--danger); }
.hi-primary { background: rgba(11,85,99,.08); color: var(--primary); }
.hi-success { background: rgba(22,163,74,.08); color: var(--success); }
.hi-warning { background: rgba(217,119,6,.08); color: var(--warning); }
.hotline-info .hl-num { font-size: 1.05rem; font-weight: 800; color: var(--dark); }
.hotline-info .hl-label { font-size: .76rem; color: var(--text-muted); }
.btn-call { display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--danger); color: var(--white); border: none; border-radius: var(--radius-sm); padding: 10px; font-family: 'Hind Siliguri', sans-serif; font-size: .8rem; font-weight: 700; cursor: pointer; transition: var(--transition); text-decoration: none; width: 100%; margin-top: 12px; }
.btn-call:hover { background: var(--danger-dark); color: var(--white); }

/* What to do card */
.todo-item { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--bg-light); }
.todo-item:last-child { border-bottom: none; }
.todo-num { width: 24px; height: 24px; border-radius: 50%; background: var(--danger); color: var(--white); font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.todo-text { font-size: .84rem; color: var(--text); line-height: 1.55; }

/* Coverage card */
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cov-item { background: var(--bg-light); border-radius: var(--radius-sm); padding: 10px 12px; text-align: center; }
.cov-val { font-size: 1.1rem; font-weight: 800; color: var(--danger); }
.cov-lbl { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */

/* ============================================================
   BOTTOM NAV
   ============================================================ */

/* Toast */
.booking-toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--success); color: var(--white); padding: 14px 28px; border-radius: 50px; font-size: .9rem; font-weight: 700; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 9999; opacity: 0; transition: all .4s cubic-bezier(.4,0,.2,1); pointer-events: none; white-space: nowrap; }
.booking-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {

    .booking-grid { grid-template-columns: 1fr; }
    .sidebar-col { flex-direction: row; flex-wrap: wrap; }
    .sidebar-card { flex: 1; min-width: 280px; }

}

@media (max-width: 768px) {

    
    
    
    
    
    .page-hero { padding: 24px 0 70px; }
    .hero-title { font-size: 1.9rem; }
    .step-bar { padding: 14px 16px; overflow-x: auto; }
    .field-group.two-col { grid-template-columns: 1fr; }
    .sidebar-col { flex-direction: column; }

}

@media (max-width: 480px) {

    .hero-title { font-size: 1.55rem; }
    .urgency-row { flex-direction: column; }

}

