/* =========================
   Contacts Page
========================= */

.sr-contact-page {
    padding: 40px 0 80px;
    background: #F2F2F2;
}

.sr-contact-page .sr-container {
    max-width: 1170px;
    padding-left: 0;
    padding-right: 0;
}

/* Hero */

.sr-contact-hero {
    width: 100%;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 10px;
    background: #D6DAE0;
    text-align: center;
}

.sr-contact-hero__label {
    margin-bottom: 8px;
    color: #A7ACB5;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.sr-contact-hero h1 {
    margin: 0 0 12px;
    color: #464855;
    font-family: var(--sr-font-main);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.sr-contact-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: #8592A4;
    font-size: 16px;
    line-height: 1.4;
}

/* Main layout */

.sr-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 370px) minmax(0, 770px);
    gap: 30px;
    align-items: start;
}

.sr-contact-sidebar {
    display: grid;
    gap: 30px;
}

.sr-contact-card,
.sr-contact-form-section {
    overflow: hidden;
    border: 1px solid #D6DAE0;
    border-radius: 10px;
    background: #FFFFFF;
}

.sr-contact-card__head,
.sr-contact-form-head {
    padding: 24px 30px;
    background: #D6DAE0;
}

.sr-contact-card__head h2,
.sr-contact-form-head h2 {
    margin: 0 0 10px;
    color: #464855;
    font-family: var(--sr-font-main);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.sr-contact-card__head p,
.sr-contact-form-head p {
    margin: 0;
    color: #8592A4;
    font-size: 14px;
    line-height: 1.4;
}

.sr-contact-card--compact .sr-contact-card__head h2 {
    margin-bottom: 0;
}

.sr-contact-card__body {
    padding: 0 30px;
}

.sr-contact-detail {
    padding: 20px 0;
    border-bottom: 1px solid #ECEFF2;
}

.sr-contact-detail:last-child {
    border-bottom: 0;
}

.sr-contact-detail__label {
    display: block;
    margin-bottom: 7px;
    color: #8592A4;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.sr-contact-detail a,
.sr-contact-detail > span:not(.sr-contact-detail__label) {
    color: #464855;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.sr-contact-detail a {
    text-decoration: none;
    transition: color .2s ease;
}

.sr-contact-detail a:hover {
    color: #537892;
}

.sr-contact-card--compact .sr-contact-card__body {
    padding-top: 20px;
    padding-bottom: 20px;
}

.sr-contact-card--compact .sr-contact-card__body p {
    margin: 0 0 14px;
    color: #464855;
    font-size: 14px;
    line-height: 1.45;
}

.sr-contact-card--compact .sr-contact-card__body p:last-child {
    margin-bottom: 0;
    color: #8592A4;
    font-weight: 700;
}

/* Form */

.sr-contact-form-head {
    text-align: center;
}

.sr-contact-form-head h2 {
    font-size: 24px;
}

.sr-contact-form-head p {
    max-width: 570px;
    margin-left: auto;
    margin-right: auto;
}

.sr-contact-form-body {
    padding: 30px;
}

.sr-contact-form {
    position: relative;
    display: grid;
    gap: 20px;
}

.sr-contact-fields-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.sr-contact-form label {
    display: grid;
    gap: 9px;
    margin: 0;
}

.sr-contact-form label > span:first-child {
    color: #464855;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.sr-contact-form label > span small {
    margin-left: 5px;
    color: #8592A4;
    font-size: 11px;
    font-weight: 400;
}

.sr-contact-form input,
.sr-contact-form select,
.sr-contact-form textarea {
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #D6DAE0;
    border-radius: 10px;
    outline: 0;
    background: #FFFFFF;
    box-shadow: none;
    color: #464855;
    font-family: var(--sr-font-main);
    font-size: 14px;
    line-height: 1.3;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.sr-contact-form input,
.sr-contact-form select {
    height: 48px;
}

.sr-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

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

.sr-contact-form input:focus,
.sr-contact-form select:focus,
.sr-contact-form textarea:focus {
    border-color: #8592A4;
    box-shadow: 0 0 0 3px rgba(83, 120, 146, 0.12);
}

.sr-contact-form .sr-contact-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    cursor: pointer;
}

.sr-contact-form .sr-contact-consent input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    padding: 0;
    accent-color: #464855;
}

.sr-contact-form .sr-contact-consent span {
    color: #8592A4;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.sr-contact-button {
    width: 100%;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: #464855;
    color: #FFFFFF;
    font-family: var(--sr-font-main);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color .2s ease,
        transform .2s ease;
}

.sr-contact-button:hover,
.sr-contact-button:focus-visible {
    background: #537892;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.sr-contact-button--secondary {
    width: auto;
    min-width: 230px;
}

.sr-contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Messages */

.sr-contact-alert {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #E2B5AE;
    border-radius: 10px;
    background: #FFF4F2;
    color: #7A3B34;
    font-size: 14px;
    line-height: 1.4;
}

.sr-contact-notice {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.sr-contact-notice__icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #D6DAE0;
    color: #464855;
    font-size: 24px;
    font-weight: 700;
}

.sr-contact-notice h2 {
    margin: 0 0 12px;
    color: #464855;
    font-size: 24px;
    font-weight: 700;
}

.sr-contact-notice p {
    max-width: 460px;
    margin: 0 0 28px;
    color: #8592A4;
    font-size: 14px;
    line-height: 1.45;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1200px) {
    .sr-contact-page .sr-container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .sr-contact-layout {
        grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
    }
}

@media (max-width: 768px) {
    .sr-contact-page {
        padding: 28px 0 60px;
    }

    .sr-contact-page .sr-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .sr-contact-hero {
        margin-bottom: 24px;
        padding: 24px 18px;
    }

    .sr-contact-hero h1 {
        font-size: 26px;
    }

    .sr-contact-hero p {
        font-size: 14px;
    }

    .sr-contact-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sr-contact-sidebar {
        gap: 16px;
    }

    .sr-contact-card__head,
    .sr-contact-form-head {
        padding: 20px 18px;
    }

    .sr-contact-card__head h2,
    .sr-contact-form-head h2 {
        font-size: 20px;
    }

    .sr-contact-card__body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .sr-contact-form-body {
        padding: 20px 18px;
    }

    .sr-contact-fields-row {
        grid-template-columns: 1fr;
    }

    .sr-contact-form input,
    .sr-contact-form select,
    .sr-contact-form textarea {
        font-size: 14px;
    }

    .sr-contact-button--secondary {
        width: 100%;
    }
}
