/* TG007new Build 0163 — Contact runtime modernization. */

.tg-contact-section {
    padding: clamp(2.2rem, 4vw, 4rem) 0 clamp(3.25rem, 6vw, 5.5rem);
}

.tg-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}

.tg-contact-main {
    min-width: 0;
}

.tg-contact-heading {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.tg-contact-heading h2,
.tg-contact-note h2 {
    margin: .35rem 0 .65rem;
    font-family: "Space Grotesk", sans-serif;
    color: #182737;
}

.tg-contact-heading h2 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.tg-contact-heading p,
.tg-contact-note p {
    margin: 0;
    color: #52616f;
    line-height: 1.75;
}

.tg-contact-form {
    position: relative;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #dbe2e8;
    background: #fff;
    border-radius: var(--tg007-radius);
    box-shadow: var(--tg007-shadow-soft);
}

.tg-contact-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tg-contact-field {
    margin-bottom: 1.15rem;
}

.tg-contact-field label,
.tg-contact-captcha-label {
    display: block;
    margin-bottom: .45rem;
    color: #1e3345;
    font-weight: 700;
}

.tg-contact-field input,
.tg-contact-field textarea {
    display: block;
    width: 100%;
    border: 1px solid #cbd5de;
    border-radius: var(--tg007-radius-sm);
    background: #fbfcfd;
    color: #172532;
    font: inherit;
    line-height: 1.5;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.tg-contact-field input {
    min-height: 48px;
    padding: .7rem .8rem;
}

.tg-contact-field textarea {
    min-height: 190px;
    padding: .8rem;
    resize: vertical;
}

.tg-contact-field input[readonly] {
    background: #eef2f5;
    color: #53616d;
}

.tg-contact-field input:focus,
.tg-contact-field textarea:focus {
    outline: none;
    border-color: #3f6f9c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(63, 111, 156, .16);
}

.tg-contact-field small {
    display: block;
    margin-top: .4rem;
    color: #74818c;
}

.tg-contact-captcha {
    margin: .3rem 0 1.35rem;
    max-width: 100%;
    overflow-x: auto;
}

.tg-contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .85rem 1rem;
}

.tg-contact-actions > span {
    color: #6a7782;
    font-size: .9rem;
}

.tg-contact-alert {
    display: grid;
    gap: .25rem;
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border: 1px solid;
    border-left-width: 4px;
    border-radius: var(--tg007-radius-sm);
    background: #fff;
}

.tg-contact-alert strong {
    color: #1a2b39;
}

.tg-contact-alert span {
    color: #52616f;
}

.tg-contact-alert-success {
    border-color: #9cc7ae;
    border-left-color: #357a51;
    background: #f5fbf7;
}

.tg-contact-alert-error {
    border-color: #ddb3b0;
    border-left-color: #a84640;
    background: #fff7f6;
}

.tg-contact-sidebar {
    display: grid;
    gap: 1rem;
}

.tg-contact-note {
    padding: 1.25rem;
    border-top: 3px solid #4d7397;
    border-radius: var(--tg007-radius);
    background: #f2f5f7;
    box-shadow: var(--tg007-shadow-soft);
}

.tg-contact-note h2 {
    font-size: 1.12rem;
}

.tg-contact-note a {
    display: inline-flex;
    gap: .4rem;
    margin-top: .9rem;
    color: #244f76;
    font-weight: 700;
    text-decoration: none;
}

.tg-contact-note a:hover,
.tg-contact-note a:focus-visible {
    color: var(--tg007-blue-dark);
    text-decoration: none;
}

.tg-contact-note-muted {
    border-top-color: #8997a2;
    background: #f7f8f9;
}

.tg-contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 900px) {
    .tg-contact-layout {
        grid-template-columns: 1fr;
    }

    .tg-contact-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tg-contact-note-muted {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .tg-contact-field-grid,
    .tg-contact-sidebar {
        grid-template-columns: 1fr;
    }

    .tg-contact-note-muted {
        grid-column: auto;
    }

    .tg-contact-form {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tg-contact-field input,
    .tg-contact-field textarea {
        transition: none;
    }
}
