/* Code added by Fixfin Technologies #QR Booking mobile styles */

* { box-sizing: border-box; }

body.booking-mobile {
    margin: 0;
    padding: 0;
    background: #f2f4f7;
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    color: #333;
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
}

.booking-container {
    max-width: 620px;
    margin: 0 auto;
    padding: 12px;
    min-height: 100vh;
}

/* header bar */
.page-bar.cstm {
    background: #d02032;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 12px;
}
.bread_crumb, .page-bar .prof {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

/* card / portlet */
.portlet, .portlet.light {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 16px;
    margin-bottom: 14px;
}
.portlet-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.caption-subject { font-size: 16px; }
.font-red, .fnt-red { color: #d02032; }
.bold, .caption-subject.bold { font-weight: 700; }
.portlet-title .right { margin-left: auto; }

/* rows / spacing (bootstrap grid handles columns) */
.gap { margin-top: 10px; }
.gap_top_25 { margin-top: 22px; }
.mb-15 { margin-bottom: 15px; }
.margin-top-20 { margin-top: 20px; }

/* inputs */
label { font-weight: 600; margin-bottom: 4px; display: block; font-size: 14px; }
.form-control {
    width: 100%;
    height: 46px;
    padding: 8px 12px;
    border: 1px solid #cfd6dd;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
}
.form-control:focus { border-color: #d02032; outline: none; }
textarea.form-control { height: auto; min-height: 90px; }
.radio-inline { display: inline-block; margin-right: 18px; font-weight: 600; }
.radio-inline input { margin-right: 6px; transform: scale(1.2); }

/* buttons — big tap targets */
.button2, a.button2 {
    display: inline-block;
    background: #d02032;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    min-height: 48px;
    margin: 4px 4px 4px 0;
    -webkit-appearance: none;
}
.button2:hover { background: #b01a2a; }
.button2:disabled { background: #999; cursor: not-allowed; }

/* inner card window2 */
.window2 {
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.eighty-app { display: flex; padding: 12px; gap: 12px; }
.photo { flex: 0 0 auto; text-align: center; }
.icon2 {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #eee;
}
.naam.full-w { flex: 1; }
.naam p { margin: 3px 0; font-size: 14px; }
.left { float: none; }

/* red footer strip inside card */
.red_line {
    background: #fbeaec;
    border-top: 1px solid #f3c9ce;
    padding: 10px 12px;
}
.txt_alng > div { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.ft-itm { display: flex; justify-content: space-between; width: 100%; margin: 3px 0; }
.tag { font-size: 13px; }
.tag a { color: #d02032; font-weight: 700; text-decoration: none; }

/* badges */
.badge, .badge-primary {
    display: inline-block;
    background: #d02032;
    color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
}

/* slots */
.slot-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn {
    min-width: 48px;
    min-height: 48px;
    padding: 10px;
    margin: 0;
    background: #fff;
    color: #d02032 !important;
    border: 2px solid #d02032;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}
.slot-btn:hover { background: #fbeaec; }

/* profile cards (selectable) */
.profile-card .window2 { transition: border-color .15s; }
.profile-card.selected-card .window2 {
    border-color: #d02032;
    box-shadow: 0 0 0 2px rgba(208,32,50,0.25);
}

/* summary preview */
#reg-summary .window2, #booking-done-box { padding: 4px; }

@media (max-width: 767px) {
    .booking-container { padding: 8px; }
    .button2, a.button2 { width: 100%; margin: 6px 0; }
    .eighty-app { flex-direction: column; align-items: center; text-align: center; }
    .icon2 { width: 72px; height: 72px; }
    .slot-btn { flex: 0 0 calc(20% - 8px); }
}

.otp-boxes { display:flex; gap:10px; justify-content:center; margin-top:6px; }
.otp-digit {
    width:52px; height:56px; text-align:center;
    font-size:24px; font-weight:800; border:1.5px solid #e2e6ec;
    border-radius:10px; background:#fbfcfe; color:#d02032;
}
.otp-digit:focus { border-color:#d02032; box-shadow:0 0 0 3px rgba(208,32,50,0.12); outline:none; background:#fff; }

/* hero badge (no external image dependency) */
.hero-badge {
    width:64px; height:64px; margin:0 auto 12px;
    border-radius:50%; background:linear-gradient(135deg,#e0263f,#a8182b);
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-size:28px; box-shadow:0 4px 14px rgba(208,32,50,0.3);
}

/* profile cards v2 */
.profile-grid { display:flex; flex-direction:column; gap:10px; }
.profile-card {
    display:flex; align-items:center; gap:12px;
    border:1.5px solid #e2e6ec; border-radius:12px; padding:12px 14px;
    cursor:pointer; transition:all .15s; position:relative; background:#fff;
}
.profile-card:hover { border-color:#f0b7bd; }
.profile-card.selected-card { border-color:#d02032; background:#fff9f9; box-shadow:0 0 0 3px rgba(208,32,50,0.1); }
.profile-avatar {
    width:44px; height:44px; border-radius:50%; flex-shrink:0;
    background:linear-gradient(135deg,#f2f4f7,#e2e6ec); color:#d02032;
    display:flex; align-items:center; justify-content:center;
    font-weight:800; font-size:17px;
}
.profile-card.selected-card .profile-avatar { background:linear-gradient(135deg,#e0263f,#a8182b); color:#fff; }
.profile-info { flex:1; min-width:0; }
.profile-card-name { font-weight:700; font-size:15px; color:#2b2b2b; }
.profile-card-meta { display:flex; flex-wrap:wrap; gap:6px; margin-top:5px; }
.meta-chip { background:#f2f4f7; color:#666; font-size:11px; padding:2px 8px; border-radius:10px; }
.profile-check {
    width:22px; height:22px; border-radius:50%; border:2px solid #d8dce2;
    display:flex; align-items:center; justify-content:center; flex-shrink:0; color:transparent; font-size:11px;
}
.profile-card.selected-card .profile-check { background:#d02032; border-color:#d02032; color:#fff; }

/* tabs v2 */
.tabs { display:flex; gap:8px; margin:18px 0 12px; }
.tab-btn {
    flex:1; background:#f2f4f7; border:none; border-radius:10px;
    padding:11px; font-weight:600; color:#666; cursor:pointer; font-size:13px;
}
.tab-btn i { margin-right:5px; }
.tab-btn.active { background:linear-gradient(135deg,#e0263f,#a8182b); color:#fff; box-shadow:0 3px 8px rgba(208,32,50,0.25); }

/* app cards v2 */
.app-card {
    display:flex; gap:12px; border:1px solid #eee; border-radius:12px;
    padding:12px; margin-bottom:10px; background:#fdfdfd; align-items:flex-start;
}
.app-card-pic { width:52px; height:52px; border-radius:50%; object-fit:cover; flex-shrink:0; border:2px solid #f0f0f0; }
.app-card-body { flex:1; min-width:0; }
.app-card-title { font-weight:700; font-size:14px; margin:0 0 3px; color:#2b2b2b; }
.app-card-sub { font-size:13px; color:#777; margin:0 0 2px; }
.app-card-meta { font-size:12px; color:#aaa; margin:4px 0; }
.app-card-rx { font-size:12px; color:#555; margin:6px 0; padding:6px 10px; background:#f7f8fa; border-radius:6px; border-left:3px solid #d02032; }
.app-card-actions { display:flex; gap:8px; margin-top:10px; }
.app-card-actions button, .book-again-btn {
    background:linear-gradient(135deg,#e0263f,#a8182b); color:#fff; border:none; border-radius:8px;
    padding:8px 16px; font-size:12px; font-weight:700; cursor:pointer;
}
.resched-btn { background:#fff !important; color:#d02032 !important; border:1.5px solid #d02032 !important; }

/* empty / loading states */
.empty-state { text-align:center; padding:30px 10px; color:#aaa; }
.empty-state i { font-size:36px; margin-bottom:10px; display:block; color:#d8dce2; }
.empty-state p { margin:0; font-size:14px; }
.loading-shimmer { text-align:center; padding:20px; color:#bbb; font-size:13px; }

/* step progress */
.step-progress { display:flex; align-items:center; justify-content:center; margin:6px 0 22px; }
.step-dot {
    width:38px; height:38px; border-radius:50%; background:#f2f4f7; color:#bbb;
    display:flex; align-items:center; justify-content:center; font-size:15px;
    transition:all .2s; flex-shrink:0;
}
.step-dot.active { background:linear-gradient(135deg,#e0263f,#a8182b); color:#fff; box-shadow:0 3px 8px rgba(208,32,50,0.3); }
.step-line { width:40px; height:3px; background:#f2f4f7; margin:0 4px; transition:background .2s; }
.step-line.active { background:linear-gradient(90deg,#e0263f,#a8182b); }

.select-modern { cursor:pointer; }
label i { color:#d02032; margin-right:5px; }

.slot-placeholder { text-align:center; padding:30px 10px; color:#bbb; }
.slot-placeholder i { font-size:32px; display:block; margin-bottom:8px; color:#e2e6ec; }
.slot-placeholder p { margin:0; font-size:13px; }

.success-badge {
    width:70px; height:70px; margin:10px auto 16px; border-radius:50%;
    background:linear-gradient(135deg,#28a745,#1e7e34); color:#fff; font-size:32px;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 4px 16px rgba(40,167,69,0.3);
    animation: popIn .3s ease;
}
@keyframes popIn { 0%{transform:scale(0);} 80%{transform:scale(1.1);} 100%{transform:scale(1);} }

/* Modern step1 overhaul */
body.booking-mobile {
    background: linear-gradient(160deg, #1a0508 0%, #3d0a12 35%, #7a1424 70%, #d02032 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.booking-topbar {
    display:flex; align-items:center; padding:14px 4px 20px;
    color:#fff;
}
.topbar-back {
    width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.12);
    display:flex; align-items:center; justify-content:center; color:#fff; text-decoration:none; font-size:14px;
}
.topbar-title { flex:1; text-align:center; font-weight:700; font-size:16px; }
.topbar-spacer { width:36px; }

.hero-modern {
    position:relative; text-align:center; padding:10px 20px 34px;
    overflow:visible;
}
.hero-modern-glow {
    position:absolute; top:-40px; left:50%; transform:translateX(-50%);
    width:220px; height:220px; border-radius:50%;
    background:radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 70%);
    pointer-events:none;
}
.hero-modern-badge {
    position:relative; width:76px; height:76px; margin:0 auto 16px; border-radius:22px;
    background:rgba(255,255,255,0.15); backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,0.3);
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-size:32px;
    box-shadow:0 8px 24px rgba(0,0,0,0.25);
}
.hero-modern-title { color:#fff; font-size:24px; font-weight:800; margin:0 0 6px; letter-spacing:-0.3px; }
.hero-modern-sub { color:rgba(255,255,255,0.85); font-size:14px; margin:0 0 22px; }

.hero-modern-steps { display:flex; align-items:center; justify-content:center; gap:6px; }
.hs-step {
    width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,0.15);
    color:rgba(255,255,255,0.6); font-weight:700; font-size:13px;
    display:flex; align-items:center; justify-content:center; position:relative;
}
.hs-step.active { background:#fff; color:#d02032; box-shadow:0 4px 12px rgba(0,0,0,0.2); }
.hs-step i { position:absolute; top:38px; font-style:normal; font-size:10px; font-weight:600; white-space:nowrap; color:rgba(255,255,255,0.7); }
.hs-line { width:36px; height:2px; background:rgba(255,255,255,0.2); }

.card-modern {
    background:#fff; border-radius:22px 22px 0 0;
    padding:26px 22px 22px; margin:0 -14px;
    box-shadow:0 -8px 30px rgba(0,0,0,0.15);
    position:relative; min-height:50vh;
}
.card-modern-head { display:flex; gap:14px; align-items:flex-start; margin-bottom:22px; }
.card-modern-head i {
    width:44px; height:44px; border-radius:12px; flex-shrink:0;
    background:linear-gradient(135deg,#fdeef0,#fbd9dd); color:#d02032;
    display:flex; align-items:center; justify-content:center; font-size:18px;
}
.card-modern-head h3 { margin:0 0 3px; font-size:16px; font-weight:700; color:#222; }
.card-modern-head p { margin:0; font-size:12.5px; color:#999; }

.input-with-icon { position:relative; }
.input-with-icon i {
    position:absolute; left:14px; top:50%; transform:translateY(-50%);
    color:#d02032; font-size:15px;
}
.input-with-icon .form-control { padding-left:40px; }

.method-toggle-modern { display:flex; gap:10px; }
.radio-pill-modern { flex:1; position:relative; }
.radio-pill-modern input { position:absolute; opacity:0; }
.radio-pill-modern span {
    display:flex; align-items:center; justify-content:center; gap:6px;
    padding:12px; border-radius:12px; border:1.5px solid #eee;
    font-weight:600; color:#777; cursor:pointer; font-size:14px;
}
.radio-pill-modern input:checked + span {
    background:linear-gradient(135deg,#e0263f,#a8182b); border-color:transparent; color:#fff;
    box-shadow:0 4px 12px rgba(208,32,50,0.3);
}

.otp-boxes-modern { display:flex; gap:10px; justify-content:center; margin:10px 0 8px; }
.otp-boxes-modern .otp-digit {
    width:56px; height:60px; text-align:center; font-size:26px; font-weight:800;
    border:2px solid #eee; border-radius:14px; background:#fafafa; color:#d02032;
}
.otp-boxes-modern .otp-digit:focus {
    border-color:#d02032; background:#fff; outline:none;
    box-shadow:0 0 0 4px rgba(208,32,50,0.1);
}
.otp-hint { text-align:center; font-size:12px; color:#aaa; margin-top:4px; }

.btn-stack-modern { display:flex; flex-direction:column; gap:10px; margin-top:24px; }
.btn-primary-modern {
    background:linear-gradient(135deg,#e0263f,#a8182b); color:#fff; border:none;
    border-radius:14px; padding:15px; font-size:15px; font-weight:700; cursor:pointer;
    display:flex; align-items:center; justify-content:center; gap:8px;
    box-shadow:0 6px 18px rgba(208,32,50,0.35);
}
.btn-primary-modern:disabled { opacity:0.7; box-shadow:none; }
.btn-ghost-modern {
    background:transparent; color:#999; border:none; padding:8px;
    font-size:13px; font-weight:600; cursor:pointer;
}
.btn-ghost-modern i { margin-right:5px; }

.trust-strip {
    display:flex; justify-content:center; gap:24px; padding:18px 10px 6px;
    color:rgba(255,255,255,0.65); font-size:11.5px;
}
.trust-strip i { margin-right:5px; }

@media (max-width:400px) {
    .otp-boxes-modern .otp-digit { width:48px; height:54px; font-size:22px; }
    .trust-strip { flex-direction:column; align-items:center; gap:8px; }
}

.booking-utility-bar { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; gap:8px; }
.util-btn {
    display:flex; align-items:center; gap:6px;
    background:#fff; border:1.5px solid #e2e6ec; border-radius:10px;
    padding:8px 14px; font-size:13px; font-weight:600; color:#555; text-decoration:none;
}
.util-btn:hover { border-color:#d02032; color:#d02032; }
.util-btn-logout { color:#d02032; border-color:#f5c6cb; background:#fff5f6; }
.util-btn-logout:hover { background:#fbeaec; }

.fee-display {
    background:linear-gradient(135deg,#fff5f6,#fdeef0); border:1px solid #f5c6cb;
    border-radius:10px; padding:12px 16px; margin:14px 0; font-size:14px; color:#a8182b;
}
.fee-display b { font-size:17px; }
.pay-note { color:#888; font-size:12px; font-style:italic; }

.upcoming-card-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
.status-chip { background:#fff3cd; color:#856404; font-size:10px; font-weight:700; padding:3px 9px; border-radius:10px; text-transform:uppercase; letter-spacing:.3px; }
.app-card-sub i, .app-card-meta i { width:14px; color:#d02032; margin-right:4px; }

.resched-context {
    display:flex; gap:12px; align-items:center;
    background:#fff5f6; border:1px solid #f5c6cb; border-radius:12px;
    padding:12px 14px; margin-bottom:16px;
}
.resched-context i { font-size:20px; color:#d02032; }
.resched-context-title { margin:0; font-weight:700; font-size:14px; color:#a8182b; }
.resched-context-sub { margin:2px 0 0; font-size:12px; color:#888; }

#profile-detail-box .tabs { margin-top:20px; }
#resched-box { margin-top:18px; padding-top:18px; border-top:1px dashed #eee; }
.btn-stack, .btn-stack-modern { margin-top:18px; }

/* clearer slot groups */
.slot-group { margin-bottom:18px; }
.slot-group-header {
    display:flex; align-items:center; gap:12px;
    background:#fafbfc; border:1px solid #eee; border-radius:10px 10px 0 0;
    padding:10px 14px;
}
.slot-group-date { display:flex; flex-direction:column; align-items:center; min-width:44px; }
.sgd-dow { font-size:10px; color:#d02032; font-weight:700; text-transform:uppercase; }
.sgd-num { font-size:15px; font-weight:800; color:#2b2b2b; }
.slot-group-info { flex:1; display:flex; flex-direction:column; gap:2px; }
.sgi-session { font-size:13px; font-weight:700; color:#555; }
.sgi-session i { color:#d02032; margin-right:5px; }
.sgi-time { font-size:11.5px; color:#999; }
.slot-count-chip { background:#e8f5e9; color:#2e7d32; font-size:11px; font-weight:700; padding:3px 9px; border-radius:10px; white-space:nowrap; }
.slot-group .slot-wrap {
    border:1px solid #eee; border-top:none; border-radius:0 0 10px 10px;
    padding:12px; background:#fff;
}

/* payment toggle */
.payment-toggle { display:flex; gap:10px; margin:6px 0 14px; }
.pay-pill { flex:1; position:relative; }
.pay-pill input { position:absolute; opacity:0; }
.pay-pill span {
    display:flex; align-items:center; justify-content:center; gap:6px;
    padding:12px; border-radius:12px; border:1.5px solid #eee;
    font-weight:600; color:#777; cursor:pointer; font-size:13.5px;
}
.pay-pill input:checked + span {
    background:linear-gradient(135deg,#e0263f,#a8182b); border-color:transparent; color:#fff;
    box-shadow:0 4px 12px rgba(208,32,50,0.3);
}
/* stronger slot selection state */
.slot-btn { position:relative; transition:all .15s; }
.slot-btn.slot-selected {
    background:linear-gradient(135deg,#e0263f,#a8182b) !important;
    color:#fff !important; border-color:transparent !important;
    transform:scale(1.08);
    box-shadow:0 4px 14px rgba(208,32,50,0.4);
}
.slot-btn.slot-selected::after {
    content:"✓"; position:absolute; top:-6px; right:-6px;
    width:18px; height:18px; border-radius:50%; background:#28a745; color:#fff;
    font-size:11px; display:flex; align-items:center; justify-content:center;
    box-shadow:0 1px 4px rgba(0,0,0,0.3);
}

/* selection summary card */
.selection-summary {
    display:flex; align-items:center; gap:12px;
    background:linear-gradient(135deg,#fff5f6,#fdeef0);
    border:1.5px solid #f0b7bd; border-radius:14px;
    padding:14px 16px; margin-top:18px;
}
.ss-icon { color:#28a745; font-size:26px; flex-shrink:0; }
.ss-body { flex:1; min-width:0; }
.ss-doc { margin:0 0 3px; font-weight:700; font-size:14px; color:#2b2b2b; }
.ss-date { margin:0 0 2px; font-size:12.5px; color:#a8182b; font-weight:600; }
.ss-slot { margin:0; font-size:11.5px; color:#999; }
.ss-change {
    background:#fff; border:1.5px solid #d02032; color:#d02032;
    border-radius:8px; padding:7px 12px; font-size:12px; font-weight:700;
    cursor:pointer; flex-shrink:0;
}

/* sticky confirm bar */
.sticky-confirm-spacer { height:76px; }
.sticky-confirm-bar {
    position:fixed; bottom:0; left:0; right:0; z-index:200;
    background:#fff; padding:12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow:0 -4px 18px rgba(0,0,0,0.1);
    max-width:620px; margin:0 auto;
}
.sticky-confirm-btn {
    width:100%; margin:0; display:flex; align-items:center; justify-content:center; gap:8px;
}
.sticky-confirm-btn:disabled { background:#e2e6ec; color:#aaa !important; box-shadow:none; }

/* utility bar — icon-first, compact */
.booking-utility-bar { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; gap:8px; }
.util-btn { flex-shrink:0; }
.util-btn:first-child { flex:1; justify-content:flex-start; }

@media (min-width:621px) {
    .sticky-confirm-bar { width:620px; border-radius:14px 14px 0 0; }
}

/* status chip variants (past appointments) */
.status-chip.status-paid { background: #e8f5e9; color: #2e7d32; }
.status-chip.status-unpaid { background: #fdecea; color: #c62828; }

/* prominent top proceed button */
.proceed-top-btn {
    background: linear-gradient(135deg,#28a745,#1e7e34) !important;
    box-shadow: 0 4px 14px rgba(40,167,69,0.3);
    margin: 14px 0 4px;
}
.proceed-top-btn:hover { background: linear-gradient(135deg,#218838,#1a6b2c) !important; }

.payment-fallback-note {
    background: #fff3cd; color: #856404; border: 1px solid #ffe69c;
    border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-top: 10px;
}
.payment-fallback-note i { margin-right: 6px; }