/* Contact Us page — TVR light-blue theme (scoped, safe with site header/footer) */
.tvr-contact-page {
    --tvr-navy: #0b2545;
    --tvr-navy-2: #123a66;
    --tvr-blue: #1f7ae0;
    --tvr-blue-dark: #1565c0;
    --tvr-red: #e5383b;
    --tvr-red-dark: #c92a2d;
    --tvr-text: #16324f;
    --tvr-muted: #5b7189;
    --tvr-line: #d6e6f5;
    --tvr-soft: #eef6fd;
    --tvr-ok: #188a4a;
    --tvr-err: #d93025;

    color: var(--tvr-text);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    overflow: hidden;
    background: #fff;
}

.tvr-contact-page *,
.tvr-contact-page *::before,
.tvr-contact-page *::after {
    box-sizing: border-box;
}

.tvr-contact-page h1,
.tvr-contact-page h2,
.tvr-contact-page h3 {
    font-family: 'Manrope', sans-serif;
    letter-spacing: -.01em;
}

.tvr-contact-page .tvr-shell {
    width: min(1210px, calc(100% - 48px));
    margin-inline: auto;
}

.tvr-contact-page .tvr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--tvr-blue);
    font-family: 'Manrope', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.5;
    text-transform: uppercase;
}

.tvr-contact-page .tvr-eyebrow::before {
    width: 22px;
    height: 2px;
    background: var(--tvr-red);
    content: "";
}

/* Hero */
.tvr-contact-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0 118px;
    background: radial-gradient(ellipse at 80% 40%, #d3e9ff 0, #e8f4ff 38%, #f6fbff 75%);
}

.tvr-contact-hero::before {
    position: absolute;
    inset: 0;
    /* background-image:
        linear-gradient(#1f7ae012 1px, transparent 1px),
        linear-gradient(90deg, #1f7ae012 1px, transparent 1px); */
    background-size: 36px 36px;
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
            mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
    content: "";
    pointer-events: none;
}

.tvr-contact-hero-inner {
    position: relative;
}

.tvr-contact-hero h1 {
    margin: 0 0 14px;
    color: var(--tvr-navy);
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1.18;
}

.tvr-contact-hero p {
    max-width: 56ch;
    margin: 0;
    color: #4a6580;
    font-size: 16.5px;
    line-height: 1.75;
}

/* Main grid: form overlaps hero */
.tvr-contact-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 7fr 5fr;
    align-items: stretch;
    gap: 26px;
    margin-block: -70px 60px;
}

.tvr-contact-card {
    border: 1px solid var(--tvr-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px #1f5f9e14;
}

/* Contact details panel */
.tvr-contact-info {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 30px;
    border-radius: 16px;
    background: whitesmoke;
    color: #fff;
    box-shadow: 0 14px 34px #0b254533;
}

.tvr-contact-page .tvr-contact-info h2 {
    margin: 0;
    color: var(--tvr-navy-2);
    font-size: 24px;
    font-weight: 800;
}

.tvr-info-sub {
    margin: -10px 0 4px;
    color: var(--tvr-blue);
    font-size: 15px;
}

.tvr-info-row {
    padding-top: 16px;
    border-top: 1px solid #ffffff22;
}

.tvr-info-row b {
    display: block;
    margin-bottom: 4px;
    color: var(--tvr-navy);
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tvr-info-row a,
.tvr-info-row span {
    display: block;
    color: var(--tvr-blue-dark);
    font-family: 'Manrope', sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

.tvr-info-row a:hover {
    color: #7fc0ff;
}

.tvr-contact-info .tvr-contact-btn.wa {
    margin-top: 6px;
    text-align: center;
}

/* Form */
.tvr-contact-form {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 30px;
}

.tvr-contact-form h2,
.tvr-contact-loc h3 {
    margin: 0;
    color: var(--tvr-navy);
    font-weight: 800;
}

.tvr-contact-form h2 {
    font-size: 24px;
}

.tvr-contact-form .tvr-contact-sub {
    margin: -8px 0 4px;
    color: var(--tvr-muted);
    font-size: 15px;
}

.tvr-contact-form label {
    display: grid;
    gap: 6px;
    color: var(--tvr-navy-2);
    font-size: 14px;
    font-weight: 700;
}

.tvr-contact-form label .opt {
    color: var(--tvr-muted);
    font-weight: 400;
}

.tvr-contact-form input,
.tvr-contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c4d7ea;
    border-radius: 8px;
    background: #fbfdff;
    color: var(--tvr-text);
    font: inherit;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.tvr-contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.tvr-contact-form input:hover,
.tvr-contact-form textarea:hover {
    border-color: #9fc3e8;
}

.tvr-contact-form input:focus,
.tvr-contact-form textarea:focus {
    border-color: var(--tvr-blue);
    background: #fff;
    box-shadow: 0 0 0 4px #1f7ae022;
    outline: none;
}

.tvr-contact-form input.bad,
.tvr-contact-form textarea.bad {
    border-color: var(--tvr-err);
}

.tvr-contact-page .fe {
    display: none;
    color: var(--tvr-err);
    font-size: 12.5px;
    font-weight: 500;
}

.tvr-contact-page .bad + .fe {
    display: block;
}

.tvr-contact-page button:focus-visible,
.tvr-contact-page a:focus-visible {
    outline: 3px solid var(--tvr-blue);
    outline-offset: 2px;
}

/* honeypot */
.tvr-contact-page .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tvr-contact-send {
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid var(--tvr-red);
    border-radius: 6px;
    background: var(--tvr-red);
    color: #fff;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 22px #e5383b30;
    transition: transform .2s, background .2s, box-shadow .2s;
}

.tvr-contact-send:hover {
    transform: translateY(-2px);
    background: var(--tvr-red-dark);
    box-shadow: 0 14px 28px #e5383b40;
}

.tvr-contact-send:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.tvr-contact-msg {
    display: none;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
}

.tvr-contact-msg.show {
    display: block;
}

.tvr-contact-msg.err {
    background: #fdecea;
    color: var(--tvr-err);
}

/* Thank-you state */
.tvr-contact-thanks {
    display: none;
    padding: 36px 10px;
    text-align: center;
}

.tvr-contact-thanks.show {
    display: block;
}

.tvr-contact-thanks .tick {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: #e6f5ec;
    color: var(--tvr-ok);
    font-size: 2rem;
}

.tvr-contact-thanks h2 {
    margin-bottom: 6px;
}

.tvr-contact-thanks p {
    margin: 0 0 6px;
    color: var(--tvr-muted);
}

.tvr-contact-thanks .ref {
    color: var(--tvr-navy);
    font-weight: 700;
}

.tvr-contact-thanks button {
    margin-top: 14px;
    padding: 10px 20px;
    border: 1.5px solid var(--tvr-blue);
    border-radius: 6px;
    background: #fff;
    color: var(--tvr-blue);
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s, color .2s;
}

.tvr-contact-thanks button:hover {
    background: var(--tvr-blue);
    color: #fff;
}

/* Offices section */
.tvr-contact-offices {
    margin-bottom: 80px;
}

.tvr-contact-head {
    margin-bottom: 22px;
}

.tvr-contact-head h2 {
    margin: 0;
    color: var(--tvr-navy);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
}

/* Office cards: 2 columns */
.tvr-contact-locs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.tvr-contact-loc {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tvr-contact-loc iframe {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
}

.tvr-contact-loc-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-top: 4px solid var(--tvr-blue);
}

.tvr-contact-loc-body h3 {
    font-size: 19px;
}

.tvr-contact-loc-body p {
    margin: 3px 0 0;
    color: var(--tvr-muted);
    font-size: 15px;
}

.tvr-contact-loc-body p a {
    color: inherit;
}

.tvr-contact-loc-body p a:hover {
    color: var(--tvr-blue);
}

.tvr-contact-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tvr-contact-btn {
    padding: 10px 18px;
    border: 1.5px solid var(--tvr-blue);
    border-radius: 6px;
    color: var(--tvr-blue);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.tvr-contact-btn:hover {
    transform: translateY(-2px);
    background: var(--tvr-blue);
    color: #fff;
}

.tvr-contact-btn.wa {
    border-color: #25d366;
    background: #25d366;
    color: #fff;
}

.tvr-contact-btn.wa:hover {
    border-color: #1ebe5a;
    background: #1ebe5a;
}

/* Responsive */
@media (max-width: 860px) {
    .tvr-contact-main,
    .tvr-contact-locs {
        grid-template-columns: 1fr;
    }

    .tvr-contact-main {
        margin-top: -60px;
    }
}

@media (max-width: 680px) {
    .tvr-contact-page .tvr-shell {
        width: calc(100% - 32px);
    }

    .tvr-contact-hero {
        padding: 40px 0 100px;
    }

    .tvr-contact-form,
    .tvr-contact-info {
        padding: 22px 18px;
    }

    .tvr-contact-loc iframe {
        height: 240px;
    }

    .tvr-contact-loc-body {
        padding: 16px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tvr-contact-page *,
    .tvr-contact-page *::before,
    .tvr-contact-page *::after {
        transition-duration: .01ms !important;
    }
}