.resimap-content-page,
.resimap-content-page * {
    box-sizing: border-box;
}

.resimap-content-page {
    min-height: calc(100vh - 244px);
    background: #fff;
    color: var(--resimap-text);
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.resimap-content-page__inner {
    width: min(var(--resimap-content-width), calc(100% - 48px));
    margin-inline: auto;
    padding-block: 52px 76px;
}

.resimap-content-page__header {
    max-width: 720px;
    margin-bottom: 42px;
}

.resimap-content-page__eyebrow {
    margin: 0 0 12px;
    color: var(--resimap-accent-dark);
    font-size: 13px;
    font-weight: 600;
}

.resimap-content-page__title {
    margin: 0;
    color: var(--resimap-text);
    font-family: Manrope, sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.resimap-content-page__lead {
    max-width: 680px;
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.6;
}

.resimap-content-page a:focus-visible,
.resimap-content-page button:focus-visible,
.resimap-content-page input:focus-visible,
.resimap-content-page textarea:focus-visible {
    outline: 2px solid var(--resimap-accent);
    outline-offset: 3px;
}

.resimap-feedback-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: 72px;
    align-items: start;
}

.resimap-feedback-aside {
    padding-top: 8px;
}

.resimap-feedback-aside h2,
.resimap-feedback-form > h2,
.resimap-resources-section__title {
    margin: 0;
    color: var(--resimap-text);
    font-family: Manrope, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}

.resimap-feedback-aside > p {
    margin: 16px 0 0;
    color: #4b5563;
}

.resimap-feedback-contact {
    display: grid;
    gap: 4px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--resimap-border);
}

.resimap-feedback-contact__label {
    color: var(--resimap-muted);
    font-size: 12px;
    font-weight: 600;
}

.resimap-feedback-contact a {
    width: fit-content;
    color: var(--resimap-accent-dark);
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.resimap-feedback-contact a:hover {
    text-decoration: underline;
}

.resimap-feedback-form {
    padding: 30px 32px 34px;
    border: 1px solid var(--resimap-border);
    border-radius: 8px;
    background: var(--resimap-surface);
}

.resimap-feedback-form > h2 {
    margin-bottom: 26px;
}

.resimap-feedback-form .wp-block-uagb-forms,
.resimap-feedback-form .uagb-forms__outer-wrap,
.resimap-feedback-form .uagb-forms-main-form {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
}

.resimap-feedback-form .uagb-forms-field-set {
    margin: 0 0 22px;
    padding: 0;
}

.resimap-feedback-form .uagb-forms-input-label {
    display: block;
    margin: 0 0 8px;
    color: #374151;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.resimap-feedback-form .uagb-forms-input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cfd6df;
    border-radius: 6px;
    outline: 0;
    background: #fff;
    color: var(--resimap-text);
    font-family: Inter, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.resimap-feedback-form textarea.uagb-forms-input {
    min-height: 132px;
    resize: vertical;
}

.resimap-feedback-form .uagb-forms-input:focus {
    border-color: var(--resimap-accent);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.12);
}

.resimap-feedback-form .uagb-forms-input::placeholder {
    color: #8b95a3;
    opacity: 1;
}

.resimap-feedback-form .uagb-forms-radio-wrap {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.resimap-feedback-form .uagb-forms-radio-label {
    grid-column: 1 / -1;
}

.resimap-feedback-form .uagb-forms-radio-wrap br {
    display: none;
}

.resimap-feedback-form .uagb-forms-radio-wrap input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--resimap-accent);
}

.resimap-feedback-form .uagb-forms-radio-wrap input[type="radio"] + label {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
}

.resimap-feedback-form .uagb-forms-form-hidden-data {
    display: none;
}

.resimap-feedback-form .uagb-forms-main-submit-button-wrap {
    margin: 4px 0 0;
    text-align: left !important;
}

.resimap-feedback-form .uagb-forms-main-submit-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid var(--resimap-accent);
    border-radius: 8px !important;
    background: var(--resimap-accent) !important;
    color: #fff;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s;
}

.resimap-feedback-form .uagb-forms-main-submit-button:hover {
    border-color: var(--resimap-accent-dark);
    background: var(--resimap-accent-dark) !important;
}

.resimap-feedback-form .uagb-forms-success-message-4276e585,
.resimap-feedback-form .uagb-forms-failed-message-4276e585,
.resimap-feedback-form__fallback {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.resimap-feedback-form .uagb-forms-success-message-4276e585 {
    background: #ecfdf5;
    color: #065f46;
}

.resimap-feedback-form .uagb-forms-failed-message-4276e585,
.resimap-feedback-form__fallback {
    background: #fff1f2;
    color: #9f1239;
}

.resimap-resources-section__title {
    margin-bottom: 18px;
}

.resimap-resources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.resimap-resource-card {
    min-height: 196px;
    padding: 24px;
    border: 1px solid var(--resimap-border);
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.resimap-resource-card:hover {
    border-color: #cfd6df;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.resimap-resource-card__category {
    margin: 0 0 12px;
    color: var(--resimap-accent-dark);
    font-size: 12px;
    font-weight: 600;
}

.resimap-resource-card__title {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}

.resimap-resource-card__title a {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--resimap-text);
    text-decoration: none;
}

.resimap-resource-card__title a:hover {
    color: var(--resimap-accent-dark);
}

.resimap-resource-card__arrow {
    flex: 0 0 auto;
    color: var(--resimap-accent);
}

.resimap-resource-card__description {
    margin: 14px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 760px) {
    .resimap-content-page__inner {
        padding-block: 44px 60px;
    }

    .resimap-content-page__header {
        margin-bottom: 34px;
    }

    .resimap-content-page__title {
        font-size: 34px;
    }

    .resimap-feedback-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 560px) {
    .resimap-content-page__inner {
        width: min(100% - 32px, var(--resimap-content-width));
        padding-block: 38px 50px;
    }

    .resimap-content-page__title {
        font-size: 31px;
    }

    .resimap-content-page__lead {
        font-size: 17px;
    }

    .resimap-feedback-form {
        padding: 24px 20px 26px;
    }

    .resimap-feedback-form .uagb-forms-main-submit-button {
        width: 100% !important;
    }

    .resimap-resources-grid {
        grid-template-columns: 1fr;
    }

    .resimap-resource-card {
        min-height: 0;
        padding: 21px;
    }
}
