/* ════ Base reset (doar pe paginile de checkout) ════ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.6;
    color: var(--ink); background: var(--page-bg); -webkit-font-smoothing: antialiased;
}

/* ════ Layout pagină ════ */
.co-page { max-width: 1120px; margin: 0 auto; padding: 18px 14px 0; }
.co-title { font-weight: 800; font-size: 26px; color: var(--brand); margin: 4px 0 16px; }

.co-grid { display: block; }
@media (min-width: 992px) {
    .co-grid { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; }
    .co-sticky-col { position: sticky; top: 18px; }
    .m-sticky { display: none !important; }
}

.card {
    background: #fff; border: 1px solid var(--card-border);
    border-radius: 14px; padding: 18px; margin: 16px 0;
    box-shadow: 0 1px 4px rgba(30,58,138,0.05);
}
.card-eyebrow {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.15em; color: #94a3b8; margin: 0 0 12px;
}
.muted { color: var(--muted); font-size: 14px; }
.co-hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.opt-tag { font-weight: 400; font-size: 11px; color: var(--muted); }

/* ════ Room cards ════ */
.rooms { display: grid; gap: 14px; }
@media (min-width: 1200px) { .rooms { grid-template-columns: 1fr 1fr; } }

.room-card {
    background: #fff; border: 2px solid var(--card-border); border-radius: 16px;
    overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
    transition: border-color .2s, box-shadow .2s;
}
.room-card:hover { box-shadow: 0 4px 16px rgba(30,58,138,0.10); }
.room-card.selected { border-color: var(--action); box-shadow: 0 4px 20px rgba(37,99,235,0.14); }

.room-photo { position: relative; height: 200px; overflow: hidden; background: #e2e8f0; }
.room-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.room-card:hover .room-photo img { transform: scale(1.05); }
.room-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,58,138,0.55), transparent 60%); pointer-events: none; }

.room-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--brand); color: #fff; font-size: 9px; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px;
}
.room-dot {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85); background: rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.room-dot i { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .2s; }
.room-card.selected .room-dot { background: var(--action); border-color: var(--action); }
.room-card.selected .room-dot i { opacity: 1; }

.room-title-mobile { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; z-index: 2; }
.room-title-mobile h3 { color: #fff; font-size: 18px; font-weight: 700; margin: 0; line-height: 1.2; }
.room-title-mobile small { display: block; font-weight: 400; font-size: 13px; color: rgba(255,255,255,0.75); }
.room-title-desktop { display: none; }

@media (min-width: 992px) {
    .room-title-mobile { display: none; }
    .room-title-desktop { display: block; }
    .room-title-desktop h3 { color: var(--brand); font-size: 16px; font-weight: 700; margin: 0; }
    .room-title-desktop .suffix { font-weight: 400; font-size: 13px; color: var(--muted); }
    .room-title-desktop p { font-size: 12px; color: #94a3b8; margin: 2px 0 0; }
}

.room-body { display: flex; flex-direction: column; gap: 11px; padding: 14px 16px 16px; flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11px; background: #f2ede3; color: #5a6070; padding: 3px 9px; border-radius: 20px; line-height: 1.4; }

.room-guests { display: none; border-top: 1px solid #f1f5f9; padding-top: 11px; }
.room-card.selected .room-guests { display: block; }

.counter-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.c-label { font-size: 14px; font-weight: 500; margin: 0; color: var(--ink); }
.c-hint { font-size: 11px; color: #94a3b8; margin: 0; }
.counter { display: flex; align-items: center; gap: 8px; }
.counter-btn {
    width: 28px; height: 28px; border-radius: 7px; border: 1px solid #cbd5e1;
    background: transparent; cursor: pointer; font-size: 16px; line-height: 1;
    display: flex; align-items: center; justify-content: center; color: var(--ink);
    transition: all .15s; font-family: inherit;
}
.counter-btn:hover:not(:disabled) { border-color: var(--action); color: var(--action); background: var(--accent-soft); }
.counter-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.c-val { font-size: 14px; font-weight: 700; color: var(--brand); width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.c-limit { font-size: 11px; color: #b45309; margin: 2px 0 0; min-height: 1em; }

.room-price-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto; padding-top: 11px; border-top: 1px solid #f1f5f9;
}
.room-price-row span { font-size: 11px; color: #94a3b8; }
.room-price-row strong { font-size: 15px; color: var(--action); }

/* ════ Calendar ════ */
.cal-card { padding: 0; overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #f1f5f9; }
.cal-title { font-size: 14px; font-weight: 700; color: var(--brand); margin: 0; text-transform: capitalize; }
.cal-nav { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--card-border); background: #fff; color: var(--muted); cursor: pointer; font-size: 17px; line-height: 1; }
.cal-nav:hover:not(:disabled) { border-color: var(--action); color: var(--action); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }

.cal-months { display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .cal-months { grid-template-columns: 1fr 1fr; gap: 0 18px; padding: 0 6px; } }

.cal-month { padding: 10px 14px 6px; }
.cal-month-label { display: none; }
@media (min-width: 992px) {
    .cal-title { display: none; }
    .cal-month-label { display: block; text-align: center; font-size: 13px; font-weight: 700; color: var(--brand); margin: 0 0 8px; text-transform: capitalize; }
}

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #94a3b8; padding: 4px 0; }

.cal-day {
    height: 38px; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; border-radius: 7px; border: none;
    cursor: pointer; font-family: inherit; transition: transform .1s;
    background: #dcfce7; color: #166534;
}
.cal-day:active:not(:disabled) { transform: scale(0.93); }
.cal-day.last { background: #fef9c3; color: #854d0e; }
.cal-day.busy { background: #fee2e2; color: #b91c1c; }
.cal-day.off { background: transparent; color: #cbd5e1; }
.cal-day.plain { background: #f1f5f9; color: var(--ink); }
.cal-day:disabled { cursor: not-allowed; }
.cal-day.dim { opacity: 0.35; }
.cal-day.sel-edge { background: var(--brand) !important; color: #fff !important; opacity: 1; }
.cal-day.sel-range { background: var(--accent-soft) !important; color: var(--brand) !important; opacity: 1; }

.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 18px 14px; font-size: 11px; color: var(--muted); }
.cal-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.d-free { background: #dcfce7; border: 1px solid #86efac; }
.d-last { background: #fef9c3; border: 1px solid #fde047; }
.d-busy { background: #fee2e2; border: 1px solid #fca5a5; }
.d-sel  { background: var(--brand); }

.stay-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stay-box { background: #fff; border: 1px solid #f1f5f9; border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(30,58,138,0.05); }
.sb-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: #94a3b8; margin: 0 0 3px; }
.sb-val { font-size: 14px; font-weight: 700; color: var(--brand); margin: 0; }

/* ════ Optionale ════ */
.opt-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #f8fafc; cursor: pointer; }
.opt-row:first-of-type { border-top: none; }
.opt-text { flex: 1; }
.opt-name { font-size: 14px; font-weight: 500; margin: 0; }
.opt-price { font-size: 12px; color: var(--muted); white-space: nowrap; }
.opt-price small { color: #94a3b8; }

.switch { position: relative; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; z-index: 2; }
.switch i { display: block; width: 40px; height: 20px; border-radius: 999px; background: #e2e8f0; position: relative; transition: background .2s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform .2s; }
.switch input:checked + i { background: var(--action); }
.switch input:checked + i::after { transform: translateX(20px); }

/* ════ Campuri ════ */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--card-border); border-radius: 9px; font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--action); }
.field input.invalid { border-color: #fca5a5; background: #fef2f2; }
.field textarea { resize: none; }

/* ════ Sumar albastru ════ */
.summary { background: var(--brand); border-radius: 14px; color: #fff; padding: 20px; }
.sum-eyebrow { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.4); margin: 0 0 14px; }
.sum-eyebrow span { text-transform: none; letter-spacing: 0; }
.sum-empty { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0; }

.sum-line { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 9px; font-size: 14px; }
.sum-line .l { color: rgba(255,255,255,0.8); }
.sum-line .l small { display: block; font-size: 11px; color: rgba(255,255,255,0.4); }
.sum-line .r { color: rgba(255,255,255,0.9); font-weight: 500; white-space: nowrap; }

.sum-disc { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 12px; color: #86efac; }
.sum-disc.amber { color: #fcd34d; }
.sum-disc .l::before { content: '●'; font-size: 7px; vertical-align: 2px; margin-right: 6px; }
.sum-floor { font-size: 11px; color: rgba(255,255,255,0.45); margin: 0 0 7px; }

.sum-sep { height: 1px; background: rgba(255,255,255,0.1); margin: 12px 0; }

.sum-total-row { display: flex; justify-content: space-between; align-items: flex-end; }
.sum-total-row > span { font-size: 13px; color: rgba(255,255,255,0.7); }
.sum-total-right { text-align: right; }
.sum-strike { font-size: 13px; color: rgba(255,255,255,0.35); text-decoration: line-through; margin: 0 0 2px; }
.sum-total { font-size: 28px; font-weight: 800; margin: 0; }
.sum-save { display: inline-flex; align-items: center; gap: 4px; background: rgba(34,197,94,0.2); color: #86efac; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin: 6px 0 0; }

.nudges { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 16px; padding-top: 14px; }
.nudge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border-radius: 9px; padding: 8px 11px; margin-bottom: 7px; }
.nudge.done { background: rgba(34,197,94,0.15); }
.n-ico { color: #fbbf24; font-size: 12px; flex-shrink: 0; }
.nudge.done .n-ico { color: #4ade80; }
.n-text { flex: 1; font-size: 12px; font-weight: 500; }
.n-text small { display: block; font-size: 10px; color: rgba(255,255,255,0.5); font-weight: 400; }
.nudge.done .n-text small { display: none; }
.n-pct { font-size: 13px; font-weight: 700; color: #fbbf24; }
.nudge.done .n-pct { color: #4ade80; }

.voucher { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 14px; padding-top: 14px; }
.voucher label { display: block; font-size: 11px; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.voucher input { width: 100%; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; background: rgba(255,255,255,0.08); color: #fff; font-size: 14px; font-family: inherit; text-transform: uppercase; letter-spacing: 0.05em; }
.voucher input::placeholder { color: rgba(255,255,255,0.3); text-transform: none; letter-spacing: 0; }
.voucher input:focus { outline: none; border-color: var(--accent); }
.v-error { font-size: 12px; color: #fca5a5; margin: 5px 0 0; min-height: 1em; }

/* ════ Metoda + plan ════ */
.pm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pm-card { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border: 2px solid var(--card-border); border-radius: 12px; background: #fff; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink); transition: all .15s; }
.pm-card i { color: var(--muted); }
.pm-card.selected { border-color: var(--action); background: var(--accent-soft); }
.pm-card.selected i { color: var(--action); }

.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-card { padding: 11px; border: 2px solid var(--card-border); border-radius: 12px; background: #fff; cursor: pointer; text-align: center; font-family: inherit; transition: all .15s; }
.plan-card.selected { border-color: var(--action); background: var(--accent-soft); }
.pl-pct { font-size: 17px; font-weight: 800; color: var(--ink); margin: 0; }
.plan-card.selected .pl-pct { color: var(--brand); }
.pl-label { font-size: 10px; color: #94a3b8; margin: 0 0 3px; }
.pl-amount { font-size: 13px; font-weight: 700; color: var(--action); margin: 0; }
.plan-rest { font-size: 12px; color: var(--muted); margin: 8px 2px 0; }

/* ════ Checklist + CTA ════ */
.checklist { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 12px 14px; margin-top: 14px; font-size: 12px; }
.ck-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #b45309; margin: 0 0 8px; }
.ck-item { display: flex; gap: 8px; margin: 4px 0; color: #b45309; }
.ck-item.done { color: #16a34a; }

.btn-cta { display: block; width: 100%; margin-top: 14px; padding: 16px; background: var(--action); color: #fff; border: none; border-radius: 12px; font-family: inherit; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: background .15s; }
.btn-cta:hover:not(:disabled) { background: var(--brand); }
.btn-cta:disabled { background: #cbd5e1; cursor: not-allowed; }

.trust-line { text-align: center; font-size: 11px; color: var(--muted); margin: 10px 0 0; }

.policy { background: #fff; border: 1px solid #f1f5f9; border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
.policy p:last-child { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }

.alert-errors { margin: 16px 0; padding: 13px 15px; background: #fef2f2; border: 1px solid #fca5a5; border-radius: 11px; color: #b91c1c; font-size: 14px; }
.alert-errors ul { margin: 0; padding-left: 18px; }

/* ════ Sticky mobil ════ */
.m-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 11px 16px calc(11px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--card-border); box-shadow: 0 -4px 18px rgba(30,58,138,0.12); }
.m-amounts { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.m-total { font-weight: 800; font-size: 17px; color: var(--brand); }
.m-due { font-size: 11px; color: var(--muted); }
.m-cta { width: auto; margin: 0; padding: 13px 22px; flex-shrink: 0; }

.co-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 14px 0;
}

/* Mobil: spațiu jos pentru bara sticky fixă */
@media (max-width: 991px) {
    .co-page {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}