/* ==========================================================================
   HAMAC · Floating contact rail + inquiry modal
   Right-side rail (desktop) / bottom bar (mobile)
   ========================================================================== */
:root {
    --sr-navy: #0b2545;
    --sr-navy-soft: #16345c;
    --sr-gold: #f5b301;
    --sr-gold-deep: #d99b00;
    --sr-line: #e3e9f2;
    --sr-ink: #4a5a70;
}

/* ---------- rail shell ---------- */
.sr-rail {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-family: inherit;
}

.sr-item {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    border: 1px solid var(--sr-line);
    background: #fff;
    color: var(--sr-navy);
    box-shadow: 0 6px 18px rgba(11, 37, 69, .09);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease, color .25s ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.sr-item svg {
    width: 21px;
    height: 21px;
    display: block;
    pointer-events: none;
}

.sr-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--sr-gold);
    transform: translateX(-50%);
    transition: width .25s ease;
}

.sr-item:hover,
.sr-item:focus-visible {
    transform: translateX(-3px);
    border-color: #cfdbea;
    box-shadow: 0 12px 26px rgba(11, 37, 69, .16);
    outline: none;
}

.sr-item:hover::after,
.sr-item:focus-visible::after {
    width: 22px;
}

/* whatsapp keeps its own colour cue */
.sr-item--wa {
    color: #128c4a;
}

.sr-item--wa:hover {
    background: #f2fbf6;
}

/* primary action: message */
.sr-item--msg {
    background: linear-gradient(140deg, var(--sr-gold) 0%, var(--sr-gold-deep) 100%);
    border-color: #e0a700;
    color: var(--sr-navy);
    box-shadow: 0 8px 20px rgba(245, 179, 1, .34);
}

.sr-item--msg::after {
    display: none;
}

.sr-item--msg:hover {
    box-shadow: 0 14px 28px rgba(245, 179, 1, .42);
    background: linear-gradient(140deg, #ffc31a 0%, var(--sr-gold) 100%);
}

/* back to top */
.sr-item--top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    margin-top: 3px;
    color: var(--sr-ink);
}

.sr-item--top.is-on {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ---------- hover label ---------- */
.sr-label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translate(8px, -50%);
    white-space: nowrap;
    background: var(--sr-navy);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1;
    padding: 9px 12px;
    border-radius: 7px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(11, 37, 69, .22);
}

.sr-label::before {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    margin-top: -4px;
    border: 4px solid transparent;
    border-left-color: var(--sr-navy);
}

.sr-item:hover .sr-label,
.sr-item:focus-visible .sr-label {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

/* mobile caption (hidden on desktop) */
.sr-cap {
    display: none;
}

/* subtle vertical brand line above rail */
.sr-rail::before {
    content: "CONTACT";
    writing-mode: vertical-rl;
    align-self: center;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .22em;
    color: #9aa9bb;
    margin-bottom: 2px;
}

/* ==========================================================================
   Inquiry modal
   ========================================================================== */
.sr-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(7, 20, 38, .56);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.sr-modal.is-open {
    display: flex;
    animation: srFade .22s ease both;
}

@keyframes srFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes srPop {
    from { opacity: 0; transform: translateY(16px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.sr-dialog {
    position: relative;
    width: min(580px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(4, 16, 33, .34);
    animation: srPop .28s cubic-bezier(.22, .8, .3, 1) both;
}

.sr-dialog-head {
    position: relative;
    padding: 26px 30px 24px;
    background: linear-gradient(135deg, #0b2545 0%, #14345e 100%);
    border-radius: 16px 16px 0 0;
    color: #fff;
}

.sr-dialog-head::after {
    content: "";
    position: absolute;
    left: 30px;
    bottom: 0;
    width: 54px;
    height: 3px;
    background: var(--sr-gold);
}

.sr-dialog-head .sr-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sr-gold);
    margin: 0 0 8px;
}

.sr-dialog-head h3 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-transform: none;
}

.sr-dialog-head p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
}

.sr-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.sr-close:hover {
    background: rgba(255, 255, 255, .22);
    transform: rotate(90deg);
}

.sr-close svg {
    width: 14px;
    height: 14px;
}

.sr-form {
    padding: 24px 30px 28px;
}

.sr-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sr-form-grid .sr-full {
    grid-column: 1 / -1;
}

.sr-form input[type="text"],
.sr-form input[type="email"],
.sr-form input[type="tel"],
.sr-form select,
.sr-form textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    color: var(--sr-navy);
    background: #fff;
    border: 1px solid #d9e2ee;
    border-radius: 9px;
    padding: 12px 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.sr-form textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.6;
}

.sr-form input::placeholder,
.sr-form textarea::placeholder {
    color: #93a2b5;
}

.sr-form select {
    color: #6b7c93;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7c93' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
}

.sr-form input:focus,
.sr-form select:focus,
.sr-form textarea:focus {
    outline: none;
    border-color: var(--sr-gold);
    box-shadow: 0 0 0 3px rgba(245, 179, 1, .18);
}

.sr-agree {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 12.5px;
    color: #6b7c93;
    cursor: pointer;
}

.sr-agree input {
    width: 15px;
    height: 15px;
    accent-color: #0b2545;
    margin: 0;
}

.sr-tip {
    min-height: 18px;
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
}

.sr-tip.is-err { color: #c0392b; }
.sr-tip.is-ok { color: #128c4a; }
.sr-tip.is-sending { color: #6b7c93; }

.sr-submit {
    width: 100%;
    margin-top: 6px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(140deg, var(--sr-gold) 0%, var(--sr-gold-deep) 100%);
    color: #1a1200;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .01em;
    padding: 14px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: filter .2s ease, box-shadow .2s ease;
    box-shadow: 0 10px 22px rgba(245, 179, 1, .28);
}

.sr-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 14px 28px rgba(245, 179, 1, .36);
}

.sr-submit[disabled] {
    opacity: .6;
    cursor: default;
}

.sr-form-foot {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: #8294aa;
    text-align: center;
}

.sr-form-foot a {
    color: var(--sr-navy);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.sr-lock {
    overflow: hidden;
}

/* ==========================================================================
   Mobile: bottom action bar
   ========================================================================== */
@media screen and (max-width: 1024px) {
    body {
        padding-bottom: 66px;
    }

    .sr-rail {
        right: 0;
        left: 0;
        top: auto;
        bottom: 0;
        transform: none;
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .97);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--sr-line);
        box-shadow: 0 -8px 24px rgba(11, 37, 69, .08);
    }

    .sr-rail::before {
        display: none;
    }

    .sr-item {
        flex: 1 1 0;
        width: auto;
        height: 54px;
        flex-direction: column;
        gap: 3px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        box-shadow: none;
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: .01em;
        color: var(--sr-navy);
    }

    .sr-item svg {
        width: 20px;
        height: 20px;
    }

    .sr-cap {
        display: block;
        line-height: 1;
    }

    .sr-item::after,
    .sr-label {
        display: none;
    }

    .sr-item:hover,
    .sr-item:focus-visible {
        transform: none;
        box-shadow: none;
        background: #f4f7fb;
    }

    .sr-item--msg {
        background: linear-gradient(140deg, var(--sr-gold) 0%, var(--sr-gold-deep) 100%);
        box-shadow: 0 6px 16px rgba(245, 179, 1, .3);
        margin: 0 4px;
    }

    .sr-item--msg:hover,
    .sr-item--msg:focus-visible {
        background: linear-gradient(140deg, #ffc31a 0%, var(--sr-gold) 100%);
    }

    .sr-item--top {
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        color: var(--sr-ink);
    }

    .sr-item--top:not(.is-on) {
        opacity: .4;
    }

    .sr-dialog {
        width: 100%;
        border-radius: 14px;
    }

    .sr-dialog-head {
        padding: 22px 20px 20px;
        border-radius: 14px 14px 0 0;
    }

    .sr-dialog-head::after {
        left: 20px;
    }

    .sr-dialog-head h3 {
        font-size: 18px;
    }

    .sr-form {
        padding: 18px 20px 22px;
    }

    .sr-form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sr-modal {
        padding: 12px;
        align-items: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sr-item,
    .sr-label,
    .sr-dialog,
    .sr-modal {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   Desktop: keep a clear gutter on the right so the rail never covers content
   ========================================================================== */
@media screen and (min-width: 1200px) {
    body.pv-page .pv-wrap,
    body.sv-page .sv-wrap,
    .hm-container {
        max-width: min(1320px, calc(100% - 152px));
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   Legacy live-chat bubble: fully retired.
   All enquiries now go through the message form / right-side rail.
   ========================================================================== */
.livechat-girl,
.girl-hint,
.animated-circles,
#LRdiv0,
#LRfloater3 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
