/*
|--------------------------------------------------------------------------
| Contact page
|--------------------------------------------------------------------------
*/

.contact-page {
    width: 100%;
    padding: 24px 0 30px;
    background: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Contact hero
|--------------------------------------------------------------------------
| Only the Contact heading appears in the editable hero area.
|--------------------------------------------------------------------------
*/

.contact-hero .hero-text-panel {
    color: #00163e !important;
}

.contact-hero .hero-title {
    display: block !important;

    width: 100%;
    margin: 0;
    padding: 0;

    color: #00163e !important;

    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    text-align: left !important;
}

.contact-hero .hero-description,
.contact-hero .hero-description:empty {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Remove decorative heading underlines
|--------------------------------------------------------------------------
*/

.contact-hero .hero-title::before,
.contact-hero .hero-title::after,
.contact-page h1::before,
.contact-page h1::after,
.contact-page h2::before,
.contact-page h2::after,
.contact-page h3::before,
.contact-page h3::after,
.contact-form-heading::before,
.contact-form-heading::after,
.contact-address-card::before,
.contact-address-card::after {
    display: none !important;

    width: 0 !important;
    height: 0 !important;

    content: none !important;
}

/*
|--------------------------------------------------------------------------
| Status messages
|--------------------------------------------------------------------------
*/

.contact-message {
    width: calc(100% - 40px);
    max-width: calc(var(--content-width) - 40px);

    margin: 0 auto 18px;
    padding: 14px 18px;

    border: 1px solid #cbd3df;
    border-radius: 7px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.55;
}

.contact-message p {
    margin: 0 0 6px;
    font-weight: 700;
}

.contact-message ul {
    margin: 0;
    padding-left: 20px;
}

.contact-message-success {
    border-color: #7fa88a;
    background: #f2f8f3;
    color: #173d22;
}

.contact-message-error {
    border-color: #bb8585;
    background: #fff5f5;
    color: #6a1818;
}

/*
|--------------------------------------------------------------------------
| Main layout
|--------------------------------------------------------------------------
*/

.contact-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, 0.85fr);
    align-items: start;
    gap: 24px;

    width: calc(100% - 40px);
    max-width: calc(var(--content-width) - 40px);

    margin: 0 auto;
}

/*
|--------------------------------------------------------------------------
| Contact form panel
|--------------------------------------------------------------------------
*/

.contact-form-panel {
    min-width: 0;
    padding: 22px;

    border: 1px solid #ccd4e0;
    border-radius: 9px;

    background: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Form card heading
|--------------------------------------------------------------------------
*/

.contact-form-heading {
    margin: 0 0 18px;
    padding: 0;

    color: #00163e;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
}

/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form-field {
    display: grid;
    gap: 6px;
}

.contact-form-field label {
    color: #111111;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.contact-form-field label span {
    font-weight: 400;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="file"],
.contact-form select,
.contact-form textarea {
    display: block;

    width: 100%;
    min-width: 0;

    border: 1px solid #cbd2dc;
    border-radius: 5px;

    background: #ffffff;
    color: #111111;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select {
    min-height: 43px;
    padding: 9px 12px;
}

.contact-form textarea {
    min-height: 150px;
    padding: 11px 12px;
    resize: vertical;
}

.contact-form input[type="file"] {
    min-height: 43px;
    padding: 7px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #777777;
    opacity: 1;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #001d50;
    outline: 2px solid rgba(0, 29, 80, 0.18);
    outline-offset: 1px;
}

/*
|--------------------------------------------------------------------------
| International telephone field
|--------------------------------------------------------------------------
*/

.contact-telephone-grid {
    display: grid;
    grid-template-columns:
        minmax(205px, 0.78fr)
        minmax(0, 1.22fr);
    gap: 12px;

    width: 100%;
}

.contact-telephone-grid select,
.contact-telephone-grid input {
    width: 100%;
    min-width: 0;
}

/*
|--------------------------------------------------------------------------
| Consent checkboxes
|--------------------------------------------------------------------------
*/

.contact-consent-group {
    display: grid;
    gap: 10px;
    padding-top: 2px;
}

.contact-checkbox {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 9px;

    color: #111111;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.45;
}

.contact-checkbox input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
}

.contact-checkbox a {
    color: #001d50;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.contact-checkbox a:hover,
.contact-checkbox a:focus-visible {
    text-decoration-thickness: 2px;
}

/*
|--------------------------------------------------------------------------
| Submit button
|--------------------------------------------------------------------------
*/

.contact-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 48px;
    padding: 10px 22px;

    border: 0;
    border-radius: 6px;

    background: #00163e;
    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.contact-submit-button:hover,
.contact-submit-button:focus-visible {
    background: #00275f;
    transform: translateY(-1px);
}

/*
|--------------------------------------------------------------------------
| Contact information column
|--------------------------------------------------------------------------
*/

.contact-information-column {
    display: grid;
    gap: 20px;

    min-width: 0;
}

/*
|--------------------------------------------------------------------------
| Registered address card
|--------------------------------------------------------------------------
*/

.contact-address-card {
    padding: 30px 34px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            120deg,
            #00163e 0%,
            #00275f 55%,
            #001235 100%
        );

    color: #ffffff;
}

.contact-address-card h2 {
    margin: 0 0 26px;
    padding: 0;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.contact-address-card h3 {
    margin: 0 0 8px;
    padding: 0;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.contact-address-card address {
    margin: 0;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
}

/*
|--------------------------------------------------------------------------
| Live map
|--------------------------------------------------------------------------
*/

.contact-map {
    width: 100%;
    height: 380px;

    overflow: hidden;

    border: 1px solid #ccd4e0;
    border-radius: 10px;

    background: #f3f5f8;
}

.contact-map iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}

/*
|--------------------------------------------------------------------------
| Spam-prevention field
|--------------------------------------------------------------------------
*/

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}

/*
|--------------------------------------------------------------------------
| Tablet layout
|--------------------------------------------------------------------------
*/

@media (max-width: 950px) {

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

    .contact-information-column {
        grid-template-columns:
            minmax(0, 0.85fr)
            minmax(0, 1.15fr);

        align-items: stretch;
    }

    .contact-address-card,
    .contact-map {
        min-height: 330px;
    }

    .contact-map {
        height: 330px;
    }
}

/*
|--------------------------------------------------------------------------
| Mobile layout
|--------------------------------------------------------------------------
*/

@media (max-width: 650px) {

    .contact-page {
        padding-top: 18px;
    }

    .contact-layout,
    .contact-message {
        width: calc(100% - 28px);
    }

    .contact-form-panel {
        padding: 17px 15px;
    }

    .contact-form-heading {
        margin-bottom: 16px;
        font-size: 16px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form input[type="file"],
    .contact-form select,
    .contact-form textarea {
        font-size: 16px;
    }

    .contact-telephone-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .contact-information-column {
        grid-template-columns: 1fr;
    }

    .contact-address-card {
        min-height: 0;
        padding: 24px 22px;
    }

    .contact-map {
        height: 320px;
        min-height: 0;
    }
}