/* ==========================================================================
   W3 SMS - contact page (v3)

   Loaded after home-v3.css, whose .hv3 scope and hero background rules the
   page reuses. Everything new is cv3-*, so nothing leaks onto other pages.

   Artwork is optional: the hero draws its gradient (or the home hero picture)
   when public/web/img/contact/hero-bg.* is not there.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hv3 .cv3-hero { padding: clamp(34px, 4vw, 54px) 0 clamp(104px, 10vw, 128px); }

.cv3-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 24px;
    align-items: center;
}

.cv3-hero__title {
    margin-top: 18px !important;
    font-size: clamp(2.6rem, 5.4vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: #fff;
}
.cv3-hero__title em { font-style: normal; color: #2fb4ff; }

.cv3-hero__sub {
    max-width: 480px;
    margin-top: 16px !important;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.6;
    color: #eaf2ff;
}

.cv3-perks { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 24px !important; }
.cv3-perks li { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 700; color: #fff; }
.cv3-perks i {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #2fd08f, #14a46a);
    font-size: .72rem;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
}

/* ---- the drawn headset ---- */
.cv3-art { position: relative; min-height: 300px; }
.cv3-art__headset { position: absolute; left: 50%; top: 50%; transform: translate(-46%, -52%); filter: drop-shadow(0 22px 28px rgba(0, 20, 90, .4)); }
.cv3-art__plane { position: absolute; filter: drop-shadow(0 10px 14px rgba(0, 20, 90, .3)); }
.cv3-art__plane--a { left: 22%; top: 4%; transform: rotate(-12deg); }
.cv3-art__plane--b { right: 6%; top: 24%; }
.cv3-art__trail { position: absolute; right: 2%; bottom: 4%; opacity: .9; }
.cv3-art__tile {
    position: absolute;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 16px 28px rgba(0, 20, 90, .38), inset 0 2px 6px rgba(255, 255, 255, .35);
}
.cv3-art__tile--phone { left: 4%; top: 8%; width: 70px; height: 70px; font-size: 1.9rem; background: linear-gradient(145deg, #4aa3ff, #1b5fe6); transform: rotate(-6deg); }
.cv3-art__tile--mail  { left: 18%; bottom: 14%; width: 56px; height: 56px; font-size: 1.5rem; background: linear-gradient(145deg, #1fd0c0, #0a9fb0); }
.cv3-art__tag {
    position: absolute;
    right: 0; top: 4%;
    padding: 10px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(0, 20, 90, .3);
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--c-navy);
}
.cv3-art__tag i { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #17c37b; }

/* --------------------------------------------------------------------------
   Info tiles - they ride up over the bottom of the hero
   -------------------------------------------------------------------------- */

.hv3 .cv3-info { margin-top: -78px; padding: 0; position: relative; z-index: 3; }

.cv3-info__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }

.cv3-tile {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e6eefb;
    box-shadow: 0 16px 38px rgba(10, 50, 140, .13);
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}
a.cv3-tile:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(10, 50, 140, .2); }

.cv3-tile__icon {
    flex: 0 0 54px;
    width: 54px; height: 54px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 10px 20px rgba(20, 70, 170, .25), inset 0 2px 6px rgba(255, 255, 255, .35);
}
.cv3-tile__icon--blue   { background: linear-gradient(145deg, #3da2ff, #1262e8); }
.cv3-tile__icon--green  { background: linear-gradient(145deg, #2fd08f, #0f9f6a); }
.cv3-tile__icon--violet { background: linear-gradient(145deg, #b78bff, #7c3aed); }
.cv3-tile__icon--orange { background: linear-gradient(145deg, #ffa24a, #ee5a1e); }

.cv3-tile__text { display: block; min-width: 0; }
.cv3-tile__label { display: block; font-size: .92rem; font-weight: 700; color: #0b1f4d; }
.cv3-tile__value { display: block; margin-top: 3px; font-size: 1.02rem; font-weight: 800; line-height: 1.25; color: #0b1f4d; overflow-wrap: anywhere; }
.cv3-tile__value--mail { font-size: .76rem; letter-spacing: -.01em; overflow-wrap: normal; }
.cv3-tile__value--hours { font-size: .9rem; }
.cv3-tile__note { display: block; margin-top: 5px; font-size: .76rem; color: var(--c-mute); }

/* --------------------------------------------------------------------------
   Form and office cards
   -------------------------------------------------------------------------- */

.hv3 .cv3-main { padding: 26px 0 clamp(48px, 6vw, 80px); }

.cv3-main__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }

.cv3-card {
    display: flex; flex-direction: column;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e6eefb;
    box-shadow: 0 16px 40px rgba(10, 50, 140, .12);
}

.cv3-card__head {
    position: relative;
    display: flex; align-items: center; gap: 18px;
    padding: 26px 28px 46px;
    border-radius: 20px 20px 0 0;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(360px 160px at 100% 0, rgba(47, 180, 255, .45), transparent 70%),
        linear-gradient(110deg, #0a2f86 0%, #0b54d0 55%, #1a8bff 100%);
}
.cv3-card__icon {
    flex: 0 0 60px;
    width: 60px; height: 60px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #3da2ff, #1262e8);
    border: 2px solid rgba(255, 255, 255, .55);
    box-shadow: 0 10px 22px rgba(0, 20, 90, .35), inset 0 2px 6px rgba(255, 255, 255, .35);
    font-size: 1.45rem;
    color: #fff;
}
.cv3-card__head h2 { font-size: 1.4rem; font-weight: 800; color: #fff; }
.cv3-card__head p { margin-top: 5px !important; font-size: .86rem; line-height: 1.5; color: #dbe9ff; }
.cv3-card__art { position: absolute; right: 18px; bottom: 6px; }
.cv3-card__head--office { padding-right: 180px; }

.cv3-card__body {
    position: relative;
    flex: 1 1 auto;
    margin-top: -26px;
    padding: 26px 28px 28px;
    border-radius: 24px 24px 20px 20px;
    background: #fff;
}

/* ---- the form ---- */
.cv3-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.cv3-field--full { grid-column: 1 / -1; }

.cv3-field label { display: block; margin-bottom: 8px; font-size: .86rem; font-weight: 700; color: #0b1f4d; }
.cv3-field label small { font-weight: 500; color: var(--c-mute); font-size: inherit; }
.cv3-field .req { color: #e5322d; }

.cv3-input { position: relative; display: block; }
.cv3-input > i {
    position: absolute;
    left: 15px; top: 50%;
    transform: translateY(-50%);
    font-size: .95rem;
    color: #6b7e9e;
    pointer-events: none;
}
.cv3-input input,
.cv3-input textarea {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 44px;
    border: 1px solid #d9e4f5;
    border-radius: 10px;
    background: #f6f9ff;
    font: inherit;
    font-size: .88rem;
    color: #0b1f4d;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.cv3-input input::placeholder,
.cv3-input textarea::placeholder { color: #8394b3; }
.cv3-input input:focus,
.cv3-input textarea:focus {
    outline: 0;
    border-color: #2f8bff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47, 139, 255, .16);
}
.cv3-input input.is-invalid { border-color: #e5322d; background: #fff6f6; }

.cv3-input--area textarea { height: 130px; padding: 14px 14px 30px 44px; resize: vertical; line-height: 1.5; }
.cv3-input--area > i { top: 22px; transform: none; }
.cv3-count { position: absolute; right: 14px; bottom: 9px; font-size: .74rem; color: #6b7e9e; pointer-events: none; }

.cv3-hint { display: block; margin-top: 7px; font-size: .76rem; color: var(--c-mute); }
.cv3-error { display: block; margin-top: 6px; font-size: .78rem; font-weight: 600; color: #d4261f; }
.cv3-error[hidden] { display: none; }

.cv3-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.cv3-submit {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%;
    margin-top: 22px;
    padding: 16px 22px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(100deg, #0a3fb0 0%, #1a7bff 60%, #19a7ff 100%);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 14px 28px rgba(11, 91, 232, .34);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}
.cv3-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(11, 91, 232, .46); }

/* ---- the office ---- */
.cv3-details li { display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: .9rem; line-height: 1.5; color: #1d3361; }
.cv3-details li + li { border-top: 1px dashed #e3ebf7; }
.cv3-details .ico {
    flex: 0 0 38px;
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #e6f0ff;
    color: #1a62f0;
}
.cv3-details a { font-weight: 700; color: #0b1f4d; word-break: break-word; }
.cv3-details a:hover { color: var(--c-blue); }

.cv3-map { margin-top: 16px; overflow: hidden; border-radius: 14px; border: 1px solid #e0e9f7; line-height: 0; }
.cv3-map iframe { display: block; width: 100%; height: 260px; border: 0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .cv3-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .cv3-art { min-height: 260px; margin-top: 10px; }
    .cv3-main__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
    .cv3-art { display: none; }
    .cv3-form__grid { grid-template-columns: minmax(0, 1fr); }
    .cv3-card__art { display: none; }
    .cv3-card__head--office { padding-right: 20px; }
    .cv3-card__head, .cv3-card__body { padding-inline: 20px; }
}

/* --------------------------------------------------------------------------
   Between a phone and a laptop
   -------------------------------------------------------------------------- */

/* Four tiles need about 1200px. Below that they were three and a lone fourth;
   two by two keeps the grid even. */
@media (min-width: 576px) and (max-width: 1199.98px) {
    .cv3-info__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .cv3-info__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .cv3-info__grid { grid-template-columns: minmax(0, 1fr); }
}

/* The tiles climb 78px into the hero; once the hero is one column its picture sits
   directly above them, so the hero keeps room under it. */
@media (max-width: 991.98px) {
    .hv3 .cv3-hero { padding-bottom: 130px; }
}

/* an email address is a link people tap */
.cv3-list a { display: inline-block; padding-block: 4px; overflow-wrap: anywhere; }
