﻿.ag-contact-page {
    background: #f4f5f6;
    padding: 24px 0 42px;
}

.ag-contact-hero {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(17,21,24,.96), rgba(17,21,24,.82), rgba(17,21,24,.54)), linear-gradient(120deg, #151a1e, #3a4249);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: center;
    padding: 42px;
    margin-bottom: 28px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .14);
}

.ag-contact-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--ag-red);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.ag-contact-hero h1 {
    margin: 18px 0 12px;
    max-width: 760px;
    font-family: Montserrat, Roboto, Arial, sans-serif;
    font-size: clamp(34px, 4.8vw, 54px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -1.6px;
}

.ag-contact-hero p {
    max-width: 720px;
    margin: 0;
    color: #d8dde2;
    font-size: 15px;
    line-height: 1.75;
}

.ag-contact-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.ag-contact-btn {
    height: 42px;
    padding: 0 17px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
}

.ag-contact-btn--primary {
    background: var(--ag-red);
    color: #fff;
}

.ag-contact-btn--dark {
    background: #fff;
    color: #151a1e;
}

.ag-contact-hero__visual {
    display: flex;
    justify-content: center;
}

.ag-contact-visual {
    position: relative;
    width: 230px;
    height: 180px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.ag-contact-visual__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--ag-red);
    color: #fff;
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    font-size: 12px;
}

.ag-contact-visual__line {
    position: absolute;
    left: 18px;
    right: 18px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.20);
}

.ag-contact-visual__line--1 {
    top: 72px;
}

.ag-contact-visual__line--2 {
    top: 98px;
    right: 56px;
}

.ag-contact-visual__line--3 {
    top: 124px;
    right: 88px;
}

.ag-contact-visual__circle {
    position: absolute;
    border-radius: 999px;
    background: rgba(228,38,38,.45);
}

.ag-contact-visual__circle--1 {
    right: 24px;
    top: 32px;
    width: 46px;
    height: 46px;
}

.ag-contact-visual__circle--2 {
    right: 46px;
    bottom: 26px;
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,.25);
}

.ag-contact-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.ag-contact-card {
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(15,23,42,.04);
}

.ag-contact-card__head {
    margin-bottom: 20px;
}

    .ag-contact-card__head h2 {
        margin: 0;
        color: #171c20;
        font-family: Montserrat, Roboto, Arial, sans-serif;
        font-size: 22px;
        font-weight: 900;
    }

    .ag-contact-card__head p {
        margin: 7px 0 0;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.65;
    }

.ag-contact-info-list {
    display: grid;
    gap: 14px;
}

.ag-contact-info {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid #edf0f2;
    border-radius: 8px;
    background: #fafafa;
}

.ag-contact-info__icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #151a1e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ag-contact-info__icon svg {
        width: 21px;
        height: 21px;
    }

.ag-contact-info span {
    display: block;
    color: #7b848c;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ag-contact-info a,
.ag-contact-info strong {
    display: block;
    margin-top: 4px;
    color: #171c20;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.45;
    word-break: break-word;
}

    .ag-contact-info a:hover {
        color: var(--ag-red);
    }

.ag-contact-card--support {
    margin-top: 16px;
    background: #151a1e;
    border-color: #151a1e;
    color: #fff;
}

    .ag-contact-card--support h3 {
        margin: 0 0 8px;
        font-size: 17px;
        font-weight: 900;
    }

    .ag-contact-card--support p {
        color: #cbd5e1;
        line-height: 1.65;
        font-size: 13px;
        margin: 0;
    }

.ag-contact-form {
    display: grid;
    gap: 18px;
}

.ag-contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ag-contact-field {
    display: grid;
    gap: 7px;
}

    .ag-contact-field label {
        color: #171c20;
        font-size: 12px;
        font-weight: 900;
    }

    .ag-contact-field input,
    .ag-contact-field textarea {
        width: 100%;
        border: 1px solid #e0e4e8;
        border-radius: 5px;
        background: #fff;
        color: #171c20;
        outline: 0;
        font-size: 14px;
        transition: border-color .16s ease, box-shadow .16s ease;
    }

    .ag-contact-field input {
        height: 44px;
        padding: 0 12px;
    }

    .ag-contact-field textarea {
        min-height: 150px;
        resize: vertical;
        padding: 12px;
        line-height: 1.55;
    }

        .ag-contact-field input:focus,
        .ag-contact-field textarea:focus {
            border-color: var(--ag-red);
            box-shadow: 0 0 0 3px rgba(228,38,38,.10);
        }

.ag-contact-field--full {
    grid-column: 1 / -1;
}

.ag-contact-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #7b848c;
    font-size: 12px;
}

.ag-field-error,
.ag-validation-summary {
    color: #dc2626;
    font-size: 12px;
}

    .ag-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

.ag-contact-actions {
    display: flex;
    justify-content: flex-end;
}

.ag-contact-submit {
    height: 48px;
    min-width: 185px;
    border: 0;
    border-radius: 5px;
    background: var(--ag-red);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

    .ag-contact-submit:hover {
        background: var(--ag-red-dark);
    }

    .ag-contact-submit:disabled {
        opacity: .7;
        cursor: wait;
    }

.ag-contact-submit__icon {
    width: 18px;
    height: 18px;
    transition: transform .16s ease;
}

.contact-toast-wrap {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: min(420px, calc(100vw - 32px));
}

.contact-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #151a1e;
    color: #fff;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.08);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease;
    word-break: break-word;
}

    .contact-toast.is-show {
        opacity: 1;
        transform: translateY(0);
    }

.contact-toast--success {
    background: #14532d;
}

.contact-toast--error {
    background: #7f1d1d;
}

.contact-toast__icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-weight: 900;
}

.contact-toast__text {
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 1040px) {
    .ag-contact-grid,
    .ag-contact-hero {
        grid-template-columns: 1fr;
    }

    .ag-contact-hero__visual {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .ag-contact-page {
        padding-top: 18px;
    }

    .ag-contact-hero {
        padding: 28px;
        min-height: 0;
    }

        .ag-contact-hero h1 {
            font-size: 31px;
        }

    .ag-contact-form-grid {
        grid-template-columns: 1fr;
    }

    .ag-contact-actions {
        justify-content: stretch;
    }

    .ag-contact-submit {
        width: 100%;
    }

    .contact-toast-wrap {
        top: auto;
        right: 16px;
        left: 16px;
        bottom: 20px;
        max-width: none;
    }
}
