.rnins-contact {
    --rnins-primary: #07163d;
    --rnins-button: #287fc2;
    --rnins-field: #edf2f7;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
    gap: 32px;
    width: min(100%, 1100px);
    margin: 60px auto;
    color: #64708a;
    font-family: "DM Sans", sans-serif;
    line-height: 1.55;
    box-sizing: border-box;
}

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

.rnins-contact h2,
.rnins-contact h3,
.rnins-contact p {
    margin-top: 0;
}

.rnins-contact h2,
.rnins-contact h3 {
    color: var(--rnins-primary);
    font-family: "Outfit", sans-serif;
    letter-spacing: 0;
}

.rnins-contact h2 {
    margin-bottom: 12px;
    font-size: 38px;
    line-height: 1.21;
    font-weight: 600;
}

.rnins-contact__intro {
    max-width: 660px;
    margin-bottom: 24px;
    font-size: 16px;
}

.rnins-contact__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.rnins-contact__card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(7, 22, 61, 0.07);
}

.rnins-contact__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--rnins-primary);
    background: var(--rnins-field);
    border-radius: 8px;
    font-size: 30px;
}

.rnins-contact__card h3,
.rnins-contact__social h3 {
    margin-bottom: 3px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.rnins-contact__card span:not(.rnins-contact__icon),
.rnins-contact__card a {
    display: block;
    color: #64708a;
    font-size: 13px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.rnins-contact__card a:hover {
    color: var(--rnins-button);
}

.rnins-contact__social {
    margin-top: 28px;
}

.rnins-contact__social p {
    margin-bottom: 14px;
    font-size: 13px;
}

.rnins-contact__social > a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: var(--rnins-button);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.rnins-contact__form-panel {
    align-self: start;
    padding: 38px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(7, 22, 61, 0.09);
}

.rnins-contact__form-panel h2 {
    margin-bottom: 28px;
    text-align: center;
    font-size: 34px;
}

.rnins-contact__form {
    display: grid;
    gap: 16px;
}

.rnins-contact__form input,
.rnins-contact__form select,
.rnins-contact__form textarea {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 13px 16px;
    color: #4f596d;
    background: var(--rnins-field);
    border: 1px solid transparent;
    border-radius: 5px;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.rnins-contact__form textarea {
    min-height: 120px;
    resize: vertical;
}

.rnins-contact__form input:focus,
.rnins-contact__form select:focus,
.rnins-contact__form textarea:focus {
    border-color: var(--rnins-button);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rnins-button) 18%, transparent);
}

.rnins-contact__form button {
    min-height: 48px;
    padding: 12px 18px;
    color: #fff;
    background: var(--rnins-button);
    border: 0;
    border-radius: 4px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.rnins-contact__form button:hover {
    filter: brightness(0.92);
}

.rnins-contact__form button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.rnins-contact__status {
    display: none;
    padding: 11px 13px;
    border-radius: 4px;
    font-size: 13px;
}

.rnins-contact__status.is-success,
.rnins-contact__status.is-error {
    display: block;
}

.rnins-contact__status.is-success {
    color: #17633a;
    background: #e8f7ee;
}

.rnins-contact__status.is-error {
    color: #8b2635;
    background: #fcebed;
}

.rnins-contact__website {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.rnins-contact .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .rnins-contact {
        grid-template-columns: 1fr;
        padding-inline: 20px;
    }

    .rnins-contact__form-panel {
        width: min(100%, 620px);
    }
}

@media (max-width: 580px) {
    .rnins-contact {
        margin: 34px auto;
        padding-inline: 16px;
    }

    .rnins-contact__details {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rnins-contact__form-panel {
        padding: 28px 20px;
    }

    .rnins-contact__form-panel h2 {
        font-size: 30px;
    }

    .rnins-contact h2 {
        font-size: 32px;
    }
}