/* 321 Rezervare usoara (wp-content/mu-plugins/321-rezervare-usoara.php)
   Culori: negru, albastrul (#000f5c) si galbenul (#f9be57) formularului vechi de rezervare. Fonturile temei (Gordita).
   Fonturile au !important: tema pune peste tot fontul subtire si l-ar anula. */

.r321-hidden { display: none !important; }

/* ---------- 1. formularul scurt de pe prima pagina ---------- */
.r321-quick {
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 15, 92, .10);
    padding: 22px;
    margin: 6px 0 22px;
    max-width: 540px;
    color: #111;
    line-height: 1.35;
    font-family: gorditaregular, sans-serif !important;
}
.r321-quick * { line-height: inherit; }
.r321-quick-title { font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 23px; color: #111; margin-bottom: 16px; }
.r321-quick-title span { color: #000f5c; }

.r321-row + .r321-row { margin-top: 14px; }
.r321-row-title { font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 16px; color: #000f5c; margin-bottom: 6px; }
.r321-row-title small { font-family: gorditamedium, sans-serif !important; font-size: 13px; color: rgba(0, 0, 0, .5); }
.r321-row-fields { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 8px; }

/* campurile de zi si ora (butoane care deschid calendarul / lista de ore) */
.r321-nf {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 54px;
    margin: 0;
    padding: 0 12px;
    border: 1.5px solid #cfd4e6;
    border-radius: 12px;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.r321-nf:hover { border-color: #000f5c; }
.r321-nf:focus-within { border-color: #000f5c; box-shadow: 0 0 0 3px rgba(249, 190, 87, .6); }
.r321-nf-ico { display: inline-flex; color: #000f5c; flex: 0 0 auto; }
.r321-nf-val {
    flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 16px; color: rgba(0, 0, 0, .4);
}
.r321-nf.is-set .r321-nf-val { color: #111; }
.r321-nf-caret {
    flex: 0 0 auto; width: 8px; height: 8px; margin: -4px 2px 0 0;
    border-right: 2px solid #000f5c; border-bottom: 2px solid #000f5c; transform: rotate(45deg);
}

.r321-days {
    margin: 14px auto 0; width: fit-content; padding: 6px 16px; border-radius: 20px;
    background: #f9be57; color: #000f5c; font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 15px;
}
.r321-days[hidden] { display: none; }

.r321-quick-btn {
    display: block; width: 100%; margin-top: 16px; height: 58px; border: 0; border-radius: 12px;
    background: #f9be57; color: #000f5c; cursor: pointer;
    font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 19px;
    transition: background .15s, transform .15s;
}
.r321-quick-btn:hover { background: #f5ad2e; transform: translateY(-1px); }
.r321-quick-error { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #fdecec; color: #b42318; font-size: 14px; }
.r321-quick-error[hidden] { display: none; }
.r321-quick-note {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 12px;
    font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 14px; color: #111;
}
.r321-quick-note span { white-space: nowrap; }

@media (max-width: 575px) {
    .r321-quick { padding: 18px 16px; border-radius: 16px; margin-bottom: 18px; }
    .r321-quick-title { font-size: 21px; }
    .r321-row-fields { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .r321-nf { padding: 0 10px; gap: 6px; }
    .r321-nf-val { font-size: 15px; }
    .r321-quick-note { font-size: 13px; }
}

/* ---------- calendarul "ca la Booking" (o singura data pentru plecare si intoarcere) ---------- */
.r321-cal-wrap { position: relative; }
button.r321-nf { width: 100%; text-align: left; font: inherit; }
.r321-bc {
    position: absolute; z-index: 9995; top: calc(100% + 8px); left: -8px; width: 640px; max-width: calc(100vw - 32px);
    background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 15, 92, .25); overflow: hidden;
    color: #111; line-height: 1.3; font-family: gorditaregular, sans-serif !important;
}
.r321-bc[hidden], .r321-bc-backdrop[hidden] { display: none !important; }
.r321-bc-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #f9be57; }
.r321-bc-tabs { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.r321-bc-tab {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
    padding: 8px 12px; border: 2px solid transparent; border-radius: 12px; background: rgba(255, 255, 255, .45);
    color: #111; text-align: left; cursor: pointer; transition: background .2s, border-color .2s;
}
.r321-bc-tab.is-on { background: #fff; border-color: #000f5c; }
.r321-bc-tab-l { font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: #000f5c; }
.r321-bc-tab-v { font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.r321-bc-arrow { font-family: gorditabold, sans-serif !important; font-size: 18px; color: #000f5c; }
.r321-bc-x { border: 0; background: transparent; font-size: 30px; line-height: 1; color: #000f5c; cursor: pointer; padding: 0 2px; }
.r321-bc-tab.is-flash { animation: r321TabFlash 1.1s ease-in-out 1; }
@keyframes r321TabFlash {
    0%, 100% { background: #fff; }
    25%, 75% { background: #000f5c; color: #f9be57; }
    50% { background: #fff; }
}
.r321-bc-hint { padding: 10px 16px 0; font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 15px; color: #000f5c; }
.r321-bc-wdrow { display: none; }
.r321-bc-body { position: relative; padding: 8px 14px 6px; }
.r321-bc-months { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.r321-bc-title { text-align: center; line-height: 36px; margin-bottom: 4px; text-transform: capitalize; font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 17px; }
.r321-bc-nav {
    position: absolute; top: 8px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #dde1ee; background: #fff;
    color: #000f5c; font-size: 24px; line-height: 1; cursor: pointer; padding: 0; z-index: 1;
}
.r321-bc-prev { left: 14px; }
.r321-bc-next { right: 14px; }
.r321-bc-nav:disabled { opacity: .3; cursor: default; }
.r321-bc-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.r321-bc-wd { text-align: center; padding: 2px 0 6px; font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 13px; color: #000f5c; }
.r321-bc-day { height: 42px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.r321-bc-day span {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
    font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 16px; color: #111;
}
.r321-bc-day:hover:not(:disabled) span { background: rgba(0, 15, 92, .08); }
.r321-bc-day.is-off span { color: rgba(0, 0, 0, .2); }
.r321-bc-day.is-off { cursor: default; }
.r321-bc-day.is-today span { box-shadow: inset 0 0 0 1.5px #000f5c; }
.r321-bc-day.is-in { background: rgba(249, 190, 87, .35); }
.r321-bc-day.is-start { background: linear-gradient(90deg, transparent 50%, rgba(249, 190, 87, .35) 50%); }
.r321-bc-day.is-end { background: linear-gradient(90deg, rgba(249, 190, 87, .35) 50%, transparent 50%); }
.r321-bc-day.is-start.is-end { background: transparent; }
.r321-bc-day.is-start span, .r321-bc-day.is-end span { background: #000f5c !important; color: #fff; box-shadow: none; }
.r321-bc-foot { display: none; }
.r321-bc-done {
    width: 100%; height: 52px; border: 0; border-radius: 12px; background: #f9be57; color: #000f5c; cursor: pointer;
    font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 17px;
}
.r321-bc-done:disabled { background: #eceef5; color: rgba(0, 0, 0, .35); cursor: default; }
.r321-bc-backdrop { position: fixed; inset: 0; z-index: 9994; background: rgba(0, 15, 92, .35); }

/* pe telefon: pe tot ecranul, lunile una sub alta, butonul "Gata" jos */
@media (max-width: 767px) {
    .r321-bc {
        position: fixed; inset: 0; top: 0; left: 0; width: auto; max-width: none; border-radius: 0;
        display: flex; flex-direction: column;
    }
    .r321-bc[hidden] { display: none !important; }
    .r321-bc-head { padding: calc(10px + env(safe-area-inset-top)) 10px 10px; }
    .r321-bc-tab { padding: 7px 10px; }
    .r321-bc-tab-v { font-size: 15px; }
    .r321-bc-wdrow {
        display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px 10px 6px; border-bottom: 1px solid #e3e6f0;
        text-align: center; font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 13px; color: #000f5c;
    }
    .r321-bc-body { flex: 1 1 auto; min-height: 0; padding: 0; display: flex; }
    .r321-bc-nav { display: none; }
    .r321-bc-months { display: block; flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 10px 12px; }
    .r321-bc-month { padding-top: 12px; }
    .r321-bc-title { text-align: left; padding-left: 6px; }
    .r321-bc-day { height: 46px; }
    .r321-bc-day span { width: 40px; height: 40px; font-size: 17px; }
    .r321-bc-foot { display: block; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #e3e6f0; background: #fff; }
    body.r321-bc-open { overflow: hidden; }
    body.r321-bc-open .r321-bar { transform: translateY(110%); }
    body.r321-bc-open .scroll-top,
    body.r321-bc-open #moove_gdpr_save_popup_settings_button,
    body.r321-bc-open .grecaptcha-badge { visibility: hidden !important; }
}
@media (prefers-reduced-motion: reduce) { .r321-bc-tab.is-flash { animation: none; } }

/* zilele alese in calendar: plecarea galbena cu masina, intoarcerea albastra cu avion, eticheta dedesubt */
.r321-bc-day { position: relative; height: 56px; display: flex; align-items: flex-start; justify-content: center; padding-top: 2px !important; }
.r321-bc-day.is-start span { background: #f9be57 !important; color: #000f5c !important; box-shadow: 0 0 0 2px #000f5c inset !important; }
.r321-bc-day.is-end span { background: #000f5c !important; color: #fff !important; }
.r321-bc-badge {
    position: absolute; top: -2px; left: 50%; margin-left: 10px; width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    font-size: 11px; font-style: normal; line-height: 1;
}
.r321-bc-tag {
    position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-style: normal;
    font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 9px; letter-spacing: .02em; color: #000f5c; white-space: nowrap;
}

/* alegerea orei: un rand pe fiecare ora */
.r321-row-fields { position: relative; }
.r321-tp {
    position: absolute; z-index: 9995; top: calc(100% + 8px); right: 0; width: 300px;
    background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 15, 92, .25); overflow: hidden;
    font-family: gorditaregular, sans-serif !important; line-height: 1.3; color: #111;
}
.r321-tp[hidden] { display: none !important; }
.r321-tp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: #f9be57; }
.r321-tp-title { font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 18px; color: #111; }
.r321-tp-list { max-height: 300px; overflow-y: auto; padding: 8px 10px 10px; overscroll-behavior: contain; }
.r321-tp-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 6px; }
.r321-tp-t {
    height: 40px; border: 1px solid #dde1ee; border-radius: 10px; background: #f7f8fc; color: #111; cursor: pointer; padding: 0;
    font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 15px;
}
.r321-tp-t:hover:not(:disabled) { border-color: #000f5c; background: #fff; }
.r321-tp-t.is-on { background: #f9be57; border-color: #000f5c; color: #000f5c; }
.r321-tp-t:disabled { opacity: .3; cursor: default; }
@media (max-width: 767px) {
    .r321-tp {
        position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; border-radius: 18px 18px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .r321-tp-title { font-size: 20px; }
    .r321-tp-list { max-height: 62vh; }
    .r321-tp-t { height: 46px; font-size: 16px; }
}

/* ---------- 2. bara de jos pe telefon ---------- */
.r321-bar { display: none; }
@media (max-width: 767px) {
    .r321-bar {
        display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: #fff; box-shadow: 0 -6px 20px rgba(0, 15, 92, .12); transition: transform .25s;
    }
    .r321-bar.r321-bar-away { transform: translateY(110%); }
    .r321-bar-btn {
        display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border-radius: 10px;
        font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 15px;
        text-decoration: none !important; white-space: nowrap;
    }
    .r321-bar-call { flex: 0 0 auto; padding: 0 12px; background: rgba(0, 15, 92, .08); color: #000f5c !important; }
    .r321-bar-wa { flex: 0 0 auto; padding: 0 12px; background: #e7f8ee; color: #111 !important; }
    .r321-bar-wa .r321-bar-ico { color: #128c4a; }
    .r321-bar-book { flex: 1 1 auto; background: #f9be57; color: #000f5c !important; }
    .r321-bar-ico { display: inline-flex; }

    /* sa nu acopere finalul paginii, butonul "sus", reCAPTCHA si butonul de cookie-uri */
    body.r321-has-bar { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
    body.r321-has-bar .grecaptcha-badge,
    body.r321-has-bar #moove_gdpr_save_popup_settings_button { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
    /* sageata "sus" se suprapunea peste insigna reCAPTCHA; pe telefon nu e nevoie de ea (bara de jos e acolo) */
    body.r321-has-bar .scroll-top { display: none !important; }
    /* bara veche a temei (doar Phone / Whatsapp): o inlocuieste bara noua */
    body.r321-has-bar .fixed-bottom.d-sm-none { display: none !important; }
}
@media (max-width: 360px) {
    .r321-bar-call, .r321-bar-wa { padding: 0 10px; font-size: 0; gap: 0; } /* doar iconite pe ecrane foarte inguste */
}

/* ---------- 3. pagina de rezervare: formularul mai sus pe telefon ---------- */
@media (max-width: 767px) {
    body.r321-booking .theme-inner-banner { padding-top: 110px !important; padding-bottom: 24px !important; min-height: 0 !important; }
    body.r321-booking .theme-inner-banner h1,
    body.r321-booking .theme-inner-banner .intro-title { font-size: 24px !important; line-height: 1.25 !important; margin-bottom: 4px !important; }
    body.r321-booking .theme-inner-banner .shapes,
    body.r321-booking .theme-inner-banner [class*="shape"] { display: none !important; }
}

/* ---------- drumul scurt prin rezervare ---------- */
/* fara "Modalitate de plata" (ramane Cash) si fara pasul "Sumar" in bara de pasi */
body.r321-flow #cpbs-payment { display: none !important; }
body.r321-flow .cpbs-main-navigation-default li:nth-child(4) { display: none !important; }
/* codul de reducere, mutat la Detalii client */
.r321-coupon { margin: 18px 0 6px; max-width: 360px; }
.r321-coupon label { display: block; margin-bottom: 6px; font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 15px; color: #000f5c; }
.r321-coupon label small { font-family: gorditamedium, sans-serif !important; font-size: 12px; color: rgba(0, 0, 0, .5); }
.r321-coupon input {
    width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid #cfd4e6; border-radius: 10px; background: #fff;
    font-size: 16px; text-transform: uppercase; letter-spacing: .04em; color: #111;
}
.r321-coupon input:focus { outline: none; border-color: #000f5c; box-shadow: 0 0 0 3px rgba(249, 190, 87, .6); }
/* codul de reducere: buton Verifica + mesaj valid / invalid */
.r321-coupon { max-width: 440px; }
.r321-coupon-row { display: flex; gap: 8px; }
.r321-coupon-row input { flex: 1 1 auto; min-width: 0; }
.r321-coupon-btn {
    flex: 0 0 auto; height: 48px; padding: 0 18px; border: 0; border-radius: 10px; cursor: pointer;
    background: #000f5c; color: #fff; font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 15px;
}
.r321-coupon-btn:hover { background: #1c2d8a; }
.r321-coupon-msg { margin-top: 8px; padding: 9px 12px; border-radius: 8px; font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 14px; line-height: 1.35; }
.r321-coupon-msg[hidden] { display: none; }
.r321-coupon-msg.is-ok { background: #e7f8ee; color: #0b6b3a; }
.r321-coupon-msg.is-bad { background: #fdecec; color: #b42318; }
.r321-coupon-msg.is-wait { background: #f4f6fb; color: #000f5c; }

/* cat se trimite rezervarea */
.r321-sending { position: fixed; inset: 0; z-index: 99990; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .92); }
.r321-sending-box { display: flex; flex-direction: column; align-items: center; gap: 14px; font-family: gorditabold, gorditamedium, sans-serif !important; font-size: 19px; color: #000f5c; }
.r321-spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #f9be57; border-top-color: #000f5c; animation: r321Spin .8s linear infinite; }
@keyframes r321Spin { to { transform: rotate(360deg); } }

/* ---------- bannerul de cookie-uri mai mic pe telefon ---------- */
@media (max-width: 767px) {
    #moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container { padding: 10px 12px !important; }
    #moove_gdpr_cookie_info_bar .moove-gdpr-cookie-notice p { font-size: 12px !important; line-height: 1.4 !important; margin-bottom: 6px !important; }
    #moove_gdpr_cookie_info_bar .moove-gdpr-button-holder { padding-top: 4px !important; }
}
