/* Contact page. Same look as the old live page (sizes measured on it at 390, 768 and 1440 px). Written by XWorld; no third-party code. */

/* ---------- banner ---------- */
.xw-ct-banner {
    padding: clamp(120px, 15vw, 180px) 0 clamp(80px, 12vw, 140px);
    overflow-x: hidden;
    text-align: center;
    color: #fff;
    background: linear-gradient(to right, #3093f6 0%, #044f9b 100%);
}
.xw-ct-banner__tag {
    margin: 0 0 clamp(16px, 2vw, 24px);
    font-size: clamp(14px, 2vw, 23px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.5px;
    color: #fff;
}
.xw-ct-banner__tag span { color: #68b3ff; }
.xw-ct-banner h1,
.xw-ct-banner h2 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    color: #fff;
}
.xw-ct-banner h1 { margin-bottom: clamp(8px, 1vw, 12px); font-weight: 400; line-height: 1.121; letter-spacing: -0.05em; }
.xw-ct-banner h2 { font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }

/* ---------- content ---------- */
.xw-ct-content {
    padding: 40px 0;
    overflow-x: hidden;
    background-color: #fff;
    background-image:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.86) 45%, rgba(255, 255, 255, 0.9) 100%),
        var(--xw-ct-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.xw-ct-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-bottom: 36px;
    text-align: center;
}
.xw-ct-top__text { width: 100%; }
.xw-ct-top__text p { margin: 0 0 8px; font-size: 15px; line-height: 1.4375; color: #4b5563; }
.xw-ct-top__text h2 { margin: 0; font-size: 2.25rem; font-weight: 700; line-height: 2.5rem; letter-spacing: -0.03em; color: #000; }
.xw-ct-top__text h2:first-of-type { margin-bottom: 8px; }
.xw-ct-social { display: flex; flex-direction: row; justify-content: center; gap: 16px; }
.xw-ct-social a { display: block; flex: none; width: 36px; height: 36px; line-height: 0; }
.xw-ct-social img { display: block; width: 36px; height: 36px; transition: transform 0.3s ease; }
.xw-ct-social a:hover img { transform: scale(1.1); }

/* ---------- form ---------- */
.xw-ct-flash {
    width: 83.333%;
    margin: 0 auto 24px;
    padding: 12px 16px;
    border: 1px solid #a6f4c5;
    border-radius: 8px;
    background: #ecfdf3;
    font-size: 15px;
    color: #05603a;
}
.xw-ct-form { width: 100%; max-width: 896px; margin: 0 auto; }
.xw-ct-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
.xw-ct-form > .xw-ct-field { margin-bottom: 32px; }
.xw-ct-field { display: flex; flex-direction: column; }
.xw-ct-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 400; line-height: 21px; color: #1e2532; }
.xw-ct-field label span { color: #9ca3af; }
.xw-ct-field input,
.xw-ct-field textarea {
    width: 100%;
    margin: 0;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    background: transparent;
    outline: none;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #1e2532;
    transition: border-color 0.2s ease;
}
.xw-ct-field input:focus,
.xw-ct-field textarea:focus { border-bottom-color: #1e2532; }
.xw-ct-field textarea { min-height: 120px; resize: vertical; }
.xw-ct-error { margin-top: 6px; font-size: 13px; line-height: 1.3; color: #dc2626; }
.xw-hp { position: absolute; left: -9999px; }

.xw-ct-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 0;
    border-radius: 21px;
    background: #3b82f6;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.xw-ct-button:hover { background: #2563eb; transform: translateY(-1px); }
.xw-ct-button:active { transform: translateY(0); }
.xw-ct-button:disabled { opacity: 0.6; cursor: not-allowed; }
.xw-ct-button svg { flex: none; margin-left: 8px; }
.xw-ct-button__spin { display: none; animation: xw-ct-spin 1s linear infinite; }
.xw-ct-button.is-sending .xw-ct-button__arrow { display: none; }
.xw-ct-button.is-sending .xw-ct-button__spin { display: block; }
@keyframes xw-ct-spin { to { transform: rotate(360deg); } }

/* ---------- contact info ---------- */
.xw-ct-info {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    margin: 80px 0 40px;
    overflow: hidden;
    border-radius: 8px;
}
.xw-ct-info__bar { display: block; flex: none; width: 8px; background: #000; }
.xw-ct-info__in {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 117px 32px 32px;
}
.xw-ct-info__left { flex: 1; margin-bottom: 32px; }
.xw-ct-info__left h3 { margin: 0 0 24px; font-size: 18px; font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; color: #000; }
.xw-ct-info__left h2 { margin: 0; font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: #000; }
.xw-ct-info__right { max-width: fit-content; }
.xw-ct-info__right h3 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 32px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: #000; }
.xw-ct-info__rule { display: block; width: 24px; height: 3px; margin-bottom: 16px; background: #000; }
.xw-ct-info__right p { margin: 0 0 24px; font-size: 16px; font-weight: 400; line-height: 24px; color: #000; }
.xw-ct-info__right p:last-child { margin-bottom: 0; }
.xw-ct-info__right p.xw-ct-info__hours { margin-bottom: 8px; }
.xw-ct-info__right a { color: inherit; text-decoration: none; }
.xw-ct-info__right a:hover { text-decoration: underline; }

@media (min-width: 768px) {
    .xw-ct-banner .container { padding-left: 24px; padding-right: 24px; }
    .xw-ct-top { flex-direction: row; align-items: flex-start; justify-content: space-between; text-align: left; }
    .xw-ct-top__text { flex: 1; width: auto; }
    .xw-ct-top__text h2 { font-size: 3.75rem; line-height: 4.75rem; }
    .xw-ct-social { flex-direction: column; justify-content: flex-start; }
    .xw-ct-grid { grid-template-columns: repeat(3, 1fr); }
    .xw-ct-info { flex-direction: row; }
    .xw-ct-info__bar { width: 12px; }
    .xw-ct-info__in { flex-direction: row; justify-content: space-between; padding: 117px 48px 48px; }
    .xw-ct-info__left { margin-bottom: 0; }
    .xw-ct-info__right { margin-left: auto; text-align: right; }
}
@media (max-width: 1023px) { .xw-ct-flash { width: 100%; } }
@media (max-width: 767px) { .xw-ct-info__bar { height: 0; } }

/* ---------- parts come in as they scroll into view ---------- */
.xw-ct-js .xw-ct-reveal { opacity: 0; transition: opacity 0.8s ease var(--xw-d, 0ms), transform 0.8s ease var(--xw-d, 0ms), width 0.6s ease var(--xw-d, 0ms); }
.xw-ct-js .xw-ct-up { transform: translateY(30px); }
.xw-ct-js .xw-ct-left { transform: translateX(-50px); }
/* 24 px (the old page used 50): parts at the right edge must stay partly in view, or the scroll trigger cannot see them */
.xw-ct-js .xw-ct-right { transform: translateX(24px); }
.xw-ct-js .xw-ct-pop { transform: scale(0.5); transition-duration: 0.5s; }
.xw-ct-js .xw-ct-grow { width: 0; }
.xw-ct-js .xw-ct-reveal.is-in { opacity: 1; transform: none; }
.xw-ct-js .xw-ct-grow.is-in { width: 24px; }

@media (prefers-reduced-motion: reduce) {
    .xw-ct-js .xw-ct-reveal { opacity: 1; transform: none; transition: none; }
    .xw-ct-js .xw-ct-grow { width: 24px; }
    .xw-ct-button__spin { animation: none; }
}
