/* Contact page — scoped to the existing ContactPage.cshtml markup. */
.contact-page {
    --contact-yellow: #ffc31d;
    margin: 0;
    padding: 0;
    color: #fff;
    background: linear-gradient(105deg, #2435d9 0%, #2464ed 55%, #2455c7 100%);
    font-family: 'IBM Plex Sans', Arial, 'Liberation Sans', sans-serif;
    overflow: hidden;
}

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

/* Override the shared container widths, including their mobile rules. */
.contact-page > .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.contact-page .contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    min-height: 673px;
    align-items: stretch;
}

.contact-page .contact-page-content {
    min-width: 0;
    padding: 62px 32px 64px clamp(32px, 8.333333vw, 160px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.contact-page .contact-page-title {
    margin: 0 0 12px;
    padding: 0;
    color: #fff;
    font-family: 'Times New Roman', Times, 'Liberation Serif', serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 56px;
    letter-spacing: 0;
}

.contact-page .contact-page-subtitle {
    margin: 0 0 14px;
    padding: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    line-height: 28px;
}

.contact-page .contact-form {
    display: block;
    width: 100%;
    max-width: 376px;
    margin: 0;
    padding: 0;
}

.contact-page .contact-form-group { margin: 0 0 17px; }

.contact-page .contact-form-group > label {
    display: block;
    margin: 0 0 6px;
    padding-left: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.contact-page .contact-form input[type="text"],
.contact-page .contact-form input[type="email"],
.contact-page .contact-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    height: 41px;
    min-height: 41px;
    margin: 0;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    box-shadow: none;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 19px;
    transition: border-color .15s ease, background-color .15s ease;
}

.contact-page .contact-form textarea {
    resize: vertical;
    /* Initially one line, as in Figma; visitors can expand long messages. */
}

.contact-page .contact-form input::placeholder,
.contact-page .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, .78);
    opacity: 1;
}

.contact-page .contact-form input[type="text"]:focus,
.contact-page .contact-form input[type="email"]:focus,
.contact-page .contact-form textarea:focus {
    outline: 2px solid var(--contact-yellow);
    outline-offset: 2px;
    border-color: #fff;
    background: rgba(255, 255, 255, .19);
}

.contact-page .contact-form .contact-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    max-width: 100%;
    min-height: 18px;
    margin: 0 0 23px;
    padding: 0 3px;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: 18px;
    cursor: pointer;
}

.contact-page .contact-checkbox input[type="checkbox"] {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: var(--contact-yellow);
    cursor: pointer;
}

.contact-page .contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 2px;
    background: var(--contact-yellow);
    color: #073bec;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease;
}

.contact-page .contact-submit:hover {
    background: #ffd047;
    transform: none;
}

.contact-page .contact-submit:focus-visible,
.contact-page .contact-checkbox input:focus-visible,
.contact-page .contact-disclaimer a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.contact-page .contact-disclaimer {
    margin: 6px 0 0;
    padding: 0 4px;
    color: #fff;
    font-size: 9px;
    line-height: 14px;
    text-align: center;
    overflow-wrap: anywhere;
}

.contact-page .contact-disclaimer a {
    color: var(--contact-yellow);
    text-decoration: none;
}

.contact-page .contact-disclaimer a:hover { text-decoration: underline; }

.contact-page .contact-success,
.contact-page .contact-error.validation-summary-errors {
    width: 100%;
    max-width: 376px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 10px;
    background: rgba(0, 0, 0, .18);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.contact-page .contact-error.validation-summary-valid { display: none; }
.contact-page .contact-error ul { margin: 0; padding-left: 18px; list-style: disc; }

.contact-page .contact-page-image {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: #2455c7;
}

.contact-page .contact-page-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.contact-page .contact-page-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(31, 89, 218, .72);
    pointer-events: none;
}

@media (max-width: 1100px) and (min-width: 769px) {
    .contact-page .contact-page-content { padding-left: 40px; }
    .contact-page .contact-page-title { font-size: 34px; }
}

@media (max-width: 768px) {
    .contact-page .contact-page-grid {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .contact-page .contact-page-content {
        width: 100%;
        max-width: 560px;
        margin-inline: auto;
        padding: 42px 24px 36px;
    }

    .contact-page .contact-page-title {
        margin-bottom: 16px;
        font-size: clamp(30px, 7.8vw, 38px);
        line-height: 1.2;
    }

    .contact-page .contact-page-subtitle {
        margin-bottom: 22px;
        font-size: 22px;
        line-height: 28px;
    }

    .contact-page .contact-form,
    .contact-page .contact-success,
    .contact-page .contact-error.validation-summary-errors { max-width: none; }

    .contact-page .contact-form-group { margin-bottom: 18px; }
    .contact-page .contact-form-group > label { font-size: 13px; line-height: 20px; }

    .contact-page .contact-form input[type="text"],
    .contact-page .contact-form input[type="email"],
    .contact-page .contact-form textarea {
        height: 48px;
        min-height: 48px;
        padding: 12px;
        font-size: 16px;
        line-height: 22px;
    }

    .contact-page .contact-form textarea { height: 88px; }

    .contact-page .contact-form .contact-checkbox {
        min-height: 44px;
        margin-bottom: 16px;
        font-size: 13px;
        gap: 10px;
    }

    .contact-page .contact-checkbox input[type="checkbox"] {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
    }

    .contact-page .contact-submit { min-height: 50px; font-size: 16px; }
    .contact-page .contact-disclaimer { margin-top: 10px; padding: 0; font-size: 11px; line-height: 17px; }

    .contact-page .contact-page-image {
        min-height: 0;
        height: clamp(260px, 70vw, 420px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-page .contact-form input,
    .contact-page .contact-form textarea,
    .contact-page .contact-submit { transition: none; }
}
