@import url('montserrat.css');

/* =========================================================
   CONTACT PAGE — everything is scoped under .slv-contact
========================================================= */

.slv-contact {
    --navy: #003964;
    --navy-2: #144970;
    --ink: #181e34;
    --muted: #52607a;
    --beige: #e8dfcd;
    --beige-2: #d3c7ae;
    --paper: #fbfdfe;
    --blue: #106aa8;
    --danger: #b23a2e;
    --ok: #2b7a57;
    /* To match your site's fonts, change these two lines only */
    --display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    font-family: var(--body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

.slv-contact *,
.slv-contact *::before,
.slv-contact *::after {
    box-sizing: border-box;
}

.slv-contact h1,
.slv-contact h2,
.slv-contact p,
.slv-contact ul,
.slv-contact fieldset,
.slv-contact address {
    margin: 0;
    padding: 0;
}

/* Your site's own stylesheet colours every h1, h2 and p. These lines make
   the text here follow the colour set by its own section instead. */
.slv-contact h1,
.slv-contact h2,
.slv-contact p {
    color: inherit;
}

.slv-contact .wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ---------- Banner ---------- */

.slv-contact .hero {
    background: var(--navy);
    color: var(--paper);
    padding: 64px 0 112px;
}

.slv-contact .crumb {
    margin-bottom: 14px;
    font-size: 0.875rem;
    color: #b9c9da;
}

.slv-contact .crumb a {
    color: #fab800;
    text-decoration: none;
}

.slv-contact .crumb a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.slv-contact .crumb a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.slv-contact .hero h1 {
    color: var(--paper);
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.75rem, 3.6vw, 2.625rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    max-width: 18ch;
    margin-bottom: 16px;
}

.slv-contact .hero p {
    color: #d6e2ee;
    max-width: 52ch;
    font-size: 1rem;
}


/* ---------- Quick contact strip (one connected bar, not four cards) ---------- */

.slv-contact .quick {
    margin-top: -64px;
    position: relative;
    z-index: 1;
}

.slv-contact .quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--beige-2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 22px 40px -26px rgba(0, 57, 100, 0.6);
}

.slv-contact .q-cell {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 20px;
    background: var(--beige);
    color: var(--navy);
    text-decoration: none;
    transition: background 0.18s ease;
}

.slv-contact .q-cell:hover {
    background: #f1eadb;
}

.slv-contact .q-cell:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: -3px;
    background: #f1eadb;
}

.slv-contact .q-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 10px;
}

.slv-contact .q-title {
    font-weight: 600;
}

.slv-contact .q-value {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1rem;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.slv-contact .q-hint {
    color: #5d5646;
    font-size: 0.8125rem;
    margin-top: 2px;
}


/* ---------- Form + map ---------- */

.slv-contact .main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: start;
    padding-top: 72px;
    padding-bottom: 80px;
}

/* The sheet and its printer's crop marks */

.slv-contact .sheet-wrap {
    position: relative;
    padding: 26px;
}

.slv-contact .crop {
    position: absolute;
    width: 26px;
    height: 26px;
    pointer-events: none;
}

.slv-contact .crop::before,
.slv-contact .crop::after {
    content: '';
    position: absolute;
    background: var(--navy);
}

.slv-contact .crop::before { width: 18px; height: 1.5px; }
.slv-contact .crop::after  { width: 1.5px; height: 18px; }

.slv-contact .crop.tl { top: 0; left: 0; }
.slv-contact .crop.tl::before { left: 0; bottom: 0; }
.slv-contact .crop.tl::after  { right: 0; top: 0; }

.slv-contact .crop.tr { top: 0; right: 0; }
.slv-contact .crop.tr::before { right: 0; bottom: 0; }
.slv-contact .crop.tr::after  { left: 0; top: 0; }

.slv-contact .crop.bl { bottom: 0; left: 0; }
.slv-contact .crop.bl::before { left: 0; top: 0; }
.slv-contact .crop.bl::after  { right: 0; bottom: 0; }

.slv-contact .crop.br { bottom: 0; right: 0; }
.slv-contact .crop.br::before { right: 0; top: 0; }
.slv-contact .crop.br::after  { left: 0; bottom: 0; }

.slv-contact .sheet {
    background: #fff;
    border: 1px solid var(--beige-2);
    border-radius: 3px;
    padding: 34px;
}

.slv-contact .sheet h2,
.slv-contact .visit h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.4375rem;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 20px;
}


/* Enquiry-type chips */

.slv-contact .type-group {
    border: 0;
    margin-bottom: 26px;
    min-width: 0;
}

.slv-contact .type-group legend {
    padding: 0;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.875rem;
}

.slv-contact .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slv-contact .chip {
    position: relative;
    display: inline-block;
}

.slv-contact .chip input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.slv-contact .chip span {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid var(--beige-2);
    border-radius: 999px;
    background: var(--paper);
    font-weight: 500;
    font-size: 0.875rem;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.slv-contact .chip:hover input:not(:checked) + span {
    border-color: var(--navy);
}

.slv-contact .chip input:checked + span {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.slv-contact .chip input:focus-visible + span {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}


/* Fields with floating labels */

.slv-contact .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.slv-contact .field {
    margin-bottom: 14px;
    min-width: 0;
}

.slv-contact .control {
    position: relative;
}

.slv-contact .control input,
.slv-contact .control select,
.slv-contact .control textarea {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 24px 14px 8px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid #c4b9a1;
    border-radius: 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}

.slv-contact .control select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6778' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.slv-contact .control textarea {
    min-height: 132px;
    padding-top: 28px;
    resize: vertical;
}

.slv-contact .control label {
    position: absolute;
    left: 15px;
    top: 17px;
    color: var(--muted);
    pointer-events: none;
    transform-origin: left top;
    max-width: calc(100% - 34px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: transform 0.15s ease, color 0.15s ease;
}

.slv-contact .control input:focus + label,
.slv-contact .control input:not(:placeholder-shown) + label,
.slv-contact .control textarea:focus + label,
.slv-contact .control textarea:not(:placeholder-shown) + label,
.slv-contact .field--float .control label,
.slv-contact .field--prefix .control label {
    transform: translateY(-10px) scale(0.78);
}

.slv-contact .control input:focus,
.slv-contact .control select:focus,
.slv-contact .control textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(16, 106, 168, 0.2);
}

.slv-contact .control input:focus + label,
.slv-contact .control textarea:focus + label,
.slv-contact .control select:focus + label {
    color: var(--blue);
}

.slv-contact .field--prefix .prefix {
    position: absolute;
    left: 14px;
    top: 37px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.slv-contact .field--prefix input {
    padding-left: 56px;
}

.slv-contact .field-msg {
    min-height: 1.3em;
    margin: 5px 2px 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--muted);
}

.slv-contact .field-msg:empty {
    min-height: 0;
    margin-top: 0;
}

.slv-contact .field.is-invalid .control input,
.slv-contact .field.is-invalid .control select,
.slv-contact .field.is-invalid .control textarea {
    border-color: var(--danger);
}

.slv-contact .field.is-invalid .field-msg {
    color: var(--danger);
}

.slv-contact .field.is-valid .control input,
.slv-contact .field.is-valid .control select,
.slv-contact .field.is-valid .control textarea {
    border-color: #7fb297;
}


/* Quote-only fields slide open */

.slv-contact .reveal {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    opacity: 0;
    transition: grid-template-rows 0.3s ease, opacity 0.25s ease, visibility 0s linear 0.3s;
}

.slv-contact .reveal.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.slv-contact .reveal-inner {
    min-height: 0;
    overflow: hidden;
    margin: -4px;
    padding: 4px;
}


/* Spam trap, kept out of sight */

.slv-contact .trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* Buttons */

.slv-contact .submit-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 8px;
}

.slv-contact .btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--navy);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.slv-contact .btn-submit:hover {
    background: var(--navy-2);
}

.slv-contact .btn-submit:focus-visible,
.slv-contact .btn-dir:focus-visible,
.slv-contact .btn-link:focus-visible,
.slv-contact .or-call a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.slv-contact .btn-submit[disabled] {
    opacity: 0.75;
    cursor: progress;
}

.slv-contact .btn-spin {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: slv-spin 0.7s linear infinite;
}

.slv-contact .btn-submit.is-loading .btn-spin {
    display: inline-block;
}

@keyframes slv-spin {
    to { transform: rotate(360deg); }
}

.slv-contact .or-call {
    color: var(--muted);
    font-size: 0.875rem;
}

.slv-contact .or-call a {
    color: var(--navy);
    font-weight: 600;
}

.slv-contact .btn-dir {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    border: 1.5px solid var(--navy);
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.slv-contact .btn-dir:hover {
    background: var(--navy);
    color: #fff;
}

.slv-contact .btn-link {
    padding: 8px 4px;
    font: inherit;
    font-weight: 600;
    color: var(--navy);
    background: none;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}


/* Alerts, careers note, success */

.slv-contact .form-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    font-size: 0.875rem;
    color: #7d2a21;
    background: #fbeeec;
    border: 1px solid #e8b9b3;
    border-radius: 6px;
}

.slv-contact [hidden] {
    display: none !important;
}

.slv-contact .careers-note {
    display: grid;
    gap: 16px;
    justify-items: start;
    padding: 22px;
    background: var(--paper);
    border: 1px dashed var(--beige-2);
    border-radius: 6px;
}

.slv-contact .success {
    padding: 28px 4px;
    text-align: center;
    outline: none;
}

.slv-contact .success h2 {
    margin-bottom: 10px;
}

.slv-contact .success p {
    max-width: 44ch;
    margin: 0 auto 24px;
}

.slv-contact .success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 20px;
}

.slv-contact .tick {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
}

.slv-contact .tick-circle,
.slv-contact .tick-check {
    stroke: var(--ok);
    stroke-dasharray: 170;
    stroke-dashoffset: 170;
}

.slv-contact .tick-check {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
}

.slv-contact .success.is-in .tick-circle {
    animation: slv-draw 0.6s ease forwards;
}

.slv-contact .success.is-in .tick-check {
    animation: slv-draw 0.35s 0.5s ease forwards;
}

@keyframes slv-draw {
    to { stroke-dashoffset: 0; }
}


/* ---------- Map column ---------- */

.slv-contact .visit {
    padding-top: 60px;
}

.slv-contact .map-frame {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--beige);
    border: 1px solid var(--beige-2);
    border-radius: 6px;
}

.slv-contact .map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.slv-contact .visit address {
    margin: 18px 0 20px;
    font-style: normal;
    line-height: 1.7;
}


/* ---------- Credibility band ---------- */

.slv-contact .band {
    padding: 44px 0;
    color: var(--paper);
    background: var(--navy);
}

.slv-contact .band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 48px;
}

.slv-contact .band-lead {
    color: var(--paper);
    max-width: 20ch;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
}

.slv-contact .band-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 44px;
    list-style: none;
}

.slv-contact .band-stats li {
    display: flex;
    flex-direction: column;
}

.slv-contact .band-stats strong {
    color: var(--paper);
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.875rem;
    line-height: 1.1;
}

.slv-contact .band-stats span {
    color: #c7d3df;
    font-size: 0.875rem;
}


/* ---------- Mobile quick bar ---------- */

.slv-contact .mobile-bar {
    display: none;
}


/* ---------- Responsive ---------- */

@media (max-width: 900px) {

    .slv-contact .main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 56px;
    }

    .slv-contact .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slv-contact .visit {
        padding-top: 0;
    }
}

@media (max-width: 760px) {

    .slv-contact .hero {
        padding: 44px 0 96px;
    }

    .slv-contact .quick {
        margin-top: -52px;
    }

    .slv-contact .wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

    .slv-contact .sheet-wrap {
        padding: 12px;
    }

    .slv-contact .crop {
        width: 12px;
        height: 12px;
    }

    .slv-contact .crop::before { width: 8px; }
    .slv-contact .crop::after  { height: 8px; }

    .slv-contact .sheet {
        padding: 22px 16px;
    }

    .slv-contact .row {
        grid-template-columns: 1fr;
    }

    .slv-contact .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        background: var(--navy);
        box-shadow: 0 -10px 24px -14px rgba(0, 0, 0, 0.45);
    }

    .slv-contact .mobile-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        font-weight: 600;
        color: #fff;
        text-decoration: none;
        border-radius: 6px;
    }

    .slv-contact .mb-call {
        background: var(--navy-2);
        border: 1px solid rgba(255, 255, 255, 0.28);
    }

    .slv-contact .mb-wa {
        background: #187a47;
    }

    .slv-contact .mobile-bar a:focus-visible {
        outline: 3px solid #fff;
        outline-offset: -3px;
    }

    body.has-contact-bar {
        padding-bottom: 72px;
    }
}

@media (max-width: 480px) {

    .slv-contact .q-cell {
        padding: 16px 12px;
    }

    .slv-contact .q-hint {
        display: none;
    }

    .slv-contact .q-value {
        font-size: 0.8125rem;
    }

    .slv-contact .hero p {
        font-size: 0.9375rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .slv-contact *,
    .slv-contact *::before,
    .slv-contact *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
    }

    .slv-contact .tick-circle,
    .slv-contact .tick-check {
        stroke-dashoffset: 0;
    }
}
