/* Contact page — light + dark */

:root {
    --iti-path-flags-1x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@26.9.1/build/img/flags.webp");
    --iti-path-flags-2x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@26.9.1/build/img/flags@2x.webp");
}

.cp {
    --cp-card: #ffffff;
    --cp-card-border: rgba(15, 23, 42, 0.08);
    --cp-card-shadow: 0 18px 44px -26px rgba(15, 23, 42, 0.28);
    --cp-title: #0f172a;
    --cp-muted: #4b5563;
    --cp-hint: #6b7280;
    --cp-input: #ffffff;
    --cp-input-border: #e5e7eb;
    --cp-input-text: #0f172a;
    --cp-ico-bg: #fff4e8;
    --cp-ico-border: rgba(255, 123, 0, 0.28);
    --cp-captcha: rgba(255, 123, 0, 0.1);
    --cp-captcha-border: rgba(255, 123, 0, 0.18);
    background: #ffffff;
    width: 100%;
    max-width: 100%;
}

html[data-theme='dark'] .cp {
    --cp-card: #14161c;
    --cp-card-border: rgba(255, 255, 255, 0.08);
    --cp-card-shadow: none;
    --cp-title: #ffffff;
    --cp-muted: #d1d5db;
    --cp-hint: #9ca3af;
    --cp-input: #0f1116;
    --cp-input-border: rgba(255, 255, 255, 0.12);
    --cp-input-text: #f3f4f6;
    --cp-ico-bg: rgba(255, 123, 0, 0.12);
    --cp-ico-border: rgba(255, 123, 0, 0.35);
    --cp-captcha: rgba(255, 123, 0, 0.12);
    --cp-captcha-border: rgba(255, 123, 0, 0.22);
    background: var(--site-bg);
}

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

.cp-inner {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 640px) {
    .cp-inner { padding-inline: 1.5rem; }
}

@media (min-width: 1024px) {
    .cp-inner { padding-inline: 2rem; }
}

.cp-kicker {
    margin: 0;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cp-kicker--lines {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.cp-kicker--lines::before,
.cp-kicker--lines::after {
    content: '';
    width: 2.4rem;
    height: 1px;
    background: var(--accent);
}

.cp-ico {
    flex: 0 0 2.55rem;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.7rem;
    background: var(--cp-ico-bg);
    border: 1px solid var(--cp-ico-border);
    display: grid;
    place-items: center;
}

.cp-ico img {
    width: 1.2rem;
    height: 1.2rem;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 123, 0, 0.45));
}

/* ---- Hero ---- */
.cp-hero {
    display: block;
    padding: 3.25rem 0 2.5rem;
}

@media (min-width: 1024px) {
    .cp-hero {
        display: block;
        grid-template-columns: none;
        padding: 4.25rem 0 2.75rem;
    }
}

.cp-hero__header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 1.5rem;
}

.cp-hero__heading {
    margin: 0.9rem 0 0;
    font-size: clamp(1.85rem, 4.2vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--cp-title);
}

.cp-hero__heading span {
    color: var(--accent);
}

.cp-hero__lede {
    margin: 1rem auto 0;
    max-width: 38rem;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--cp-muted);
}

.cp-office-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin: 0 auto 2.25rem;
    padding: 0;
    list-style: none;
    max-width: 54rem;
}

.cp-office-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--cp-card);
    border: 1px solid var(--cp-card-border);
    box-shadow: var(--cp-card-shadow);
    color: var(--cp-title);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.3;
}

.cp-office-bar__icon {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.cp-office-bar__icon img {
    width: 0.95rem;
    height: 0.95rem;
    object-fit: contain;
}

.cp-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .cp-main {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        gap: 2rem;
    }
}

.cp-touch {
    position: relative;
    min-width: 0;
    overflow: visible;
    padding: 0.35rem 0.15rem 0.15rem;
}

.cp-touch__map {
    position: absolute;
    inset: 8% -12% -6% -16%;
    z-index: 0;
    pointer-events: none;
    opacity: var(--cp-map-opacity);
    filter: var(--cp-map-filter);
}

.cp-touch__map img {
    width: 100%;
    height: 100%;
    max-width: none !important;
    object-fit: contain;
    object-position: left center;
}

.cp-touch__heading,
.cp-touch__list {
    position: relative;
    z-index: 1;
}

.cp-touch__heading {
    margin: 0 0 1.35rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--cp-title);
}

.cp-touch__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1.2rem;
}

.cp-touch__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.cp-touch__label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cp-hint);
}

.cp-touch__value {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--cp-title);
    text-decoration: none;
    word-break: break-word;
}

.cp-touch__value:hover {
    color: var(--accent);
}

.cp-touch__offices {
    margin: 0.2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.15rem;
}

.cp-touch__offices li {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--cp-title);
}

.cp-touch__hint {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: var(--cp-hint);
}

.cp-form-card {
    min-width: 0;
    padding: 1.5rem 1.25rem;
    border-radius: 1.35rem;
    background: var(--cp-card);
    border: 1px solid var(--cp-card-border);
    box-shadow: var(--cp-card-shadow);
}

@media (min-width: 640px) {
    .cp-form-card {
        padding: 1.75rem 1.6rem;
    }
}

.cp-form-card__heading {
    margin: 0 0 1.15rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--cp-title);
}

.cp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cp-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.cp-field {
    min-width: 0;
}

.cp-field-full {
    grid-column: 1 / -1;
}

.cp-field label,
.cp-captcha label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cp-title);
}

.cp-req {
    color: #ef4444;
}

.cp-field input[type="text"],
.cp-field input[type="email"],
.cp-field input[type="tel"],
.cp-field input[type="number"],
.cp-field select,
.cp-field textarea,
.cp-captcha input {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--cp-input-border);
    border-radius: 0.7rem;
    background: var(--cp-input);
    padding: 0.78rem 0.9rem;
    font-size: 0.9rem;
    color: var(--cp-input-text);
}

.cp-field textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.cp-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m19 9-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 2.25rem;
}

.cp-field input::placeholder,
.cp-field textarea::placeholder {
    color: #9ca3af;
}

.cp-field input:focus,
.cp-field select:focus,
.cp-field textarea:focus,
.cp-captcha input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.16);
}

.cp-form-card,
.cp-field,
.cp-grid {
    overflow: visible;
}

.cp .iti {
    position: relative;
    width: 100% !important;
    max-width: 100%;
    display: block !important;
}

.cp .iti .iti__country-container {
    z-index: 3;
}

.cp .iti .iti__tel-input,
.cp .iti input[type="tel"] {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: 2.85rem;
    border: 1px solid var(--cp-input-border);
    border-radius: 0.7rem;
    background: var(--cp-input);
    font-size: 0.9rem;
    color: var(--cp-input-text);
    box-sizing: border-box;
}

.cp .iti .iti__tel-input:focus,
.cp .iti input[type="tel"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.16);
}

.cp .iti__flag {
    max-width: none;
    width: var(--iti-flag-width, 16px);
    height: var(--iti-flag-height, 12px);
    flex-shrink: 0;
}

.cp .iti__dropdown-content {
    z-index: 40;
}

.cp-error {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    color: #dc2626;
}

.cp-alert {
    margin: 0.9rem 0 0;
    padding: 0.75rem 0.9rem;
    border-radius: 0.7rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.875rem;
}

html[data-theme='dark'] .cp-alert {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(248, 113, 113, 0.28);
    color: #fecaca;
}

.cp-captcha {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.9rem;
    background: var(--cp-captcha);
    border: 1px solid var(--cp-captcha-border);
}

.cp-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.15rem;
    border: 0;
    cursor: pointer;
    border-radius: 0.75rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.85rem 1.35rem;
    box-shadow: 0 12px 24px -12px rgba(255, 123, 0, 0.7);
}

.cp-submit:hover {
    background: var(--accent-hover);
}

.cp-submit img {
    width: 1.05rem;
    height: 1.05rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ---- Alternate contact ---- */
.cp-alt {
    padding: 1.25rem 0 2.75rem;
    text-align: center;
}

.cp-alt__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.6rem;
}

@media (min-width: 640px) {
    .cp-alt__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .cp-alt__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.15rem;
    }
}

.cp-alt__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    padding: 1.45rem 1.1rem 1.3rem;
    background: var(--cp-card);
    border: 1px solid var(--cp-card-border);
    border-radius: 1.15rem;
    box-shadow: var(--cp-card-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cp-alt__card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 123, 0, 0.3);
}

.cp-alt__icon {
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    margin-bottom: 0.9rem;
    border-radius: 0.85rem;
    background: var(--cp-ico-bg);
    border: 1px solid var(--cp-ico-border);
}

.cp-alt__icon img {
    width: 1.45rem;
    height: 1.45rem;
    object-fit: contain;
    filter: drop-shadow(0 0 7px rgba(255, 123, 0, 0.5));
}

.cp-alt__card h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--cp-title);
}

.cp-alt__card p {
    margin: 0.35rem 0 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--cp-muted);
}

.cp-alt__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.8rem;
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 700;
}

.cp-alt__link svg {
    width: 0.9rem;
    height: 0.9rem;
}

/* ---- Visit / map ---- */
.cp-visit {
    padding: 0.5rem 0 4rem;
}

.cp-visit__header {
    text-align: center;
    max-width: 38rem;
    margin: 0 auto 1.75rem;
}

.cp-visit__heading {
    margin: 0.75rem 0 0;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--cp-title);
}

.cp-visit__lede {
    margin: 0.8rem 0 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--cp-muted);
}

.cp-visit__card {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border-radius: 1.35rem;
    background: var(--cp-card);
    border: 1px solid var(--cp-card-border);
    box-shadow: var(--cp-card-shadow);
}

@media (min-width: 1024px) {
    .cp-visit__card {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        min-height: 22rem;
    }
}

.cp-offices {
    min-width: 0;
    display: grid;
    gap: 1px;
    background: var(--cp-card-border);
}

.cp-offices__card {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 1.25rem 1.35rem;
    background: var(--cp-card);
}

.cp-offices__card b {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cp-hint);
}

.cp-offices__card p {
    margin: 0.2rem 0 0;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--cp-title);
}

.cp-map {
    min-width: 0;
    background: #e5e7eb;
    min-height: 16rem;
}

.cp-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 16rem;
    border: 0;
}

@media (min-width: 1024px) {
    .cp-map,
    .cp-map iframe,
    .cp-offices,
    .cp-office {
        min-height: 22rem;
    }
}

.cp-office {
    min-width: 0;
    padding: 1.5rem 1.35rem;
    display: flex;
    flex-direction: column;
}

.cp-office h3 {
    margin: 0 0 1.15rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--cp-title);
}

.cp-office__row {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cp-office__row b {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cp-hint);
}

.cp-office__row p {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--cp-title);
}

.cp-maps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: auto;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1.5px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.cp-maps:hover {
    background: rgba(255, 123, 0, 0.08);
}

.cp-maps svg {
    width: 0.95rem;
    height: 0.95rem;
}

@media (max-width: 639px) {
    .cp-hero__heading {
        font-size: 1.75rem;
    }

    .cp-touch__map {
        inset: 0 -20% auto -18%;
        height: 11rem;
    }
}
