.at-feedback {
    padding: clamp(48px, 5.8vw, 78px) 0;
    background: #06090c;
}

.at-feedback__inner {
    display: block;
}

.at-feedback__intro {
    max-width: 760px;
    margin-bottom: clamp(24px, 3vw, 38px);
}

.at-feedback__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--at-color-muted-2);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.at-feedback__title {
    margin: 0 0 12px;
    color: var(--at-color-text);
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
}

.at-feedback__text {
    max-width: 700px;
    margin: 0;
    color: var(--at-color-muted);
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.5;
}

.at-feedback__form {
    position: relative;
    min-width: 0;
}

.at-feedback__form .wpcf7 form {
    display: block;
}

.at-feedback-form__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

/* Contact Form 7 can wrap the grid contents in an automatic <p>.
   display: contents keeps the four labels as real grid items. */
.at-feedback-form__grid > p {
    display: contents;
}

.at-feedback-form__grid > br,
.at-feedback-form__grid > p > br {
    display: none;
}

.at-feedback-form__field {
    display: grid;
    gap: 8px;
    margin: 0;
}

.at-feedback-form__field > span:first-child {
    color: var(--at-color-text);
    font-size: 14px;
    font-weight: 600;
}

.at-feedback__form .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    color: var(--at-color-text);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.at-feedback__form .wpcf7 input::placeholder {
    color: rgba(235, 239, 242, 0.38);
}

.at-feedback__form .wpcf7 input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.035);
    transform: translateY(-1px);
}

.at-feedback__form .wpcf7 .wpcf7-not-valid {
    border-color: rgba(255, 108, 108, 0.65) !important;
}

.at-feedback__form .wpcf7 .wpcf7-not-valid-tip {
    margin-top: 5px;
    color: #ff9c9c;
    font-size: 12px;
    line-height: 1.3;
}

.at-feedback-form__consent {
    margin-top: 18px;
    color: var(--at-color-muted);
    font-size: 13px;
    line-height: 1.45;
}

.at-feedback-form__consent .wpcf7-list-item {
    margin: 0;
}

.at-feedback-form__consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.at-feedback-form__consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 1px 0 0;
    accent-color: #fff;
    cursor: pointer;
}

.at-feedback-form__consent a {
    color: var(--at-color-text);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,.35);
    text-underline-offset: 3px;
}

.at-feedback-form__consent a:hover,
.at-feedback-form__consent a:focus-visible {
    text-decoration-color: currentColor;
}

.at-feedback-form__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 18px;
}

.at-feedback__form .wpcf7 input[type="submit"] {
    position: relative;
    min-width: 180px;
    min-height: 52px;
    padding: 13px 28px;
    border: 0;
    border-radius: 7px;
    color: #06090c;
    background: var(--at-color-text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease, background .2s ease, box-shadow .2s ease;
}

.at-feedback__form .wpcf7 input[type="submit"]:hover:not(:disabled),
.at-feedback__form .wpcf7 input[type="submit"]:focus-visible:not(:disabled) {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.at-feedback__form .wpcf7 input[type="submit"]:disabled {
    opacity: .42;
    cursor: not-allowed;
    transform: none;
}

.at-feedback__form .wpcf7 form.at-feedback-form--sending input[type="submit"] {
    color: transparent;
    pointer-events: none;
}

.at-feedback__form .wpcf7 form.at-feedback-form--sending .at-feedback-form__actions {
    position: relative;
}

.at-feedback__form .wpcf7 form.at-feedback-form--sending .at-feedback-form__actions::after {
    content: "";
    position: absolute;
    left: 80px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(6, 9, 12, .28);
    border-top-color: #06090c;
    border-radius: 50%;
    animation: at-feedback-spin .7s linear infinite;
    pointer-events: none;
}

.at-feedback__form .wpcf7-spinner {
    display: none !important;
}

/* CF7 keeps its technical response node for compatibility; the site shows its own animated status below. */
.at-feedback__form .wpcf7 form .wpcf7-response-output {
    display: none !important;
}

.at-feedback-status {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 720px;
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;
    color: var(--at-color-text);
    background: rgba(255, 255, 255, .045);
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, border-color .25s ease, background .25s ease;
}

.at-feedback-status[hidden] {
    display: none;
}

.at-feedback-status.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.at-feedback-status__icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.at-feedback-status--sending .at-feedback-status__icon {
    border-color: rgba(255,255,255,.25);
    border-top-color: currentColor;
    animation: at-feedback-spin .75s linear infinite;
}

.at-feedback-status--success {
    border-color: rgba(112, 230, 160, .24);
    background: rgba(72, 183, 116, .08);
}

.at-feedback-status--success .at-feedback-status__icon::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    width: 7px;
    height: 11px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.at-feedback-status--error {
    border-color: rgba(255, 108, 108, .25);
    background: rgba(255, 82, 82, .07);
}

.at-feedback-status--error .at-feedback-status__icon::before,
.at-feedback-status--error .at-feedback-status__icon::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 4px;
    width: 2px;
    height: 12px;
    background: currentColor;
}

.at-feedback-status--error .at-feedback-status__icon::before { transform: rotate(45deg); }
.at-feedback-status--error .at-feedback-status__icon::after { transform: rotate(-45deg); }

.at-feedback__setup-notice {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    color: var(--at-color-muted);
    background: rgba(255, 255, 255, 0.035);
}

.at-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.contacts-page .at-feedback {
    margin-top: clamp(48px, 6vw, 78px);
    padding-bottom: 0;
    background: transparent;
}

.contacts-page .at-feedback__inner {
    padding: 0;
}

@keyframes at-feedback-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
    .at-feedback-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .at-feedback {
        padding: 42px 0;
    }

    .at-feedback__intro {
        margin-bottom: 24px;
    }

    .at-feedback-form__grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .at-feedback__form .wpcf7 input[type="submit"] {
        width: 100%;
    }

    .at-feedback__form .wpcf7 form.at-feedback-form--sending .at-feedback-form__actions::after {
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
    }

    .at-feedback-form__consent {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .at-feedback__form *,
    .at-feedback-status {
        transition: none !important;
    }
}
