/* =========================================================
   TN45 CARS — CONTACT PAGE (scoped under .tn45-contact)
   ========================================================= */

.tn45-contact {
    /* ---- design tokens ---- */
    --brand:        #7a2fb5;
    --brand-dark:   #63268f;
    --brand-soft:   #f4edfa;
    --ink:          #141830;   /* headings */
    --text:         #464b60;   /* body     */
    --muted:        #6a7085;   /* secondary — all ≥ 4.5:1 on white */
    --line:         #e6e8f0;
    --line-strong:  #d7dae5;
    --surface:      #ffffff;
    --surface-soft: #f8f8fb;
    --danger:       #c23b2e;
    --danger-bg:    #fdf2f0;
    --danger-line:  #f3d3cd;
    --success:      #1d9e55;
    --success-bg:   #f4faf6;
    --success-line: #d9eee1;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;

    --shadow-sm: 0 2px 10px rgba(20, 24, 48, .06);
    --shadow-md: 0 16px 40px rgba(20, 24, 48, .09);

    color: var(--text);
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---------- buttons (self-contained for this page) ---------- */

.tn45-contact .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease,
                color .2s ease, transform .1s ease;
}

.tn45-contact .btn-primary {
    background: var(--brand);
    border: 1px solid var(--brand);
    color: #fff;
}
.tn45-contact .btn-primary:hover  { background: var(--brand-dark); border-color: var(--brand-dark); }
.tn45-contact .btn-primary:active { transform: translateY(1px); }

.tn45-contact .btn-outline {
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    color: var(--ink);
}
.tn45-contact .btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.tn45-contact a:focus-visible,
.tn45-contact button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ---------- hero ---------- */

.tn45-contact .contact-hero {
    padding: 72px 0 64px;
    text-align: center;
    background:
        radial-gradient(700px 320px at 50% -80px, rgba(122, 47, 181, .10), transparent 70%),
        linear-gradient(180deg, #fbfaff, #ffffff);
    border-bottom: 1px solid var(--line);
}

.tn45-contact .contact-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.tn45-contact .contact-hero h1 {
    margin: 20px 0 14px;
    color: var(--ink);
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}
.tn45-contact .contact-hero h1 span { color: var(--brand); }

.tn45-contact .contact-hero p {
    max-width: 580px;
    margin: 0 auto 30px;
    font-size: 16px;
    line-height: 1.65;
}

.tn45-contact .contact-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ---------- layout ---------- */

.tn45-contact .contact-section { padding: 64px 0; }

.tn45-contact .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
}
.tn45-contact .contact-grid > * { min-width: 0; }

.tn45-contact .contact-info { order: -1; }   /* info left on desktop */

.tn45-contact .contact-small-label {
    display: inline-block;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
}

.tn45-contact .contact-info-head h2,
.tn45-contact .contact-form-heading h2 {
    margin: 8px 0 0;
    color: var(--ink);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.tn45-contact .contact-intro {
    margin: 14px 0 22px;
    font-size: 14.5px;
    line-height: 1.65;
}

/* ---------- info cards ---------- */

.tn45-contact .contact-info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    margin-bottom: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tn45-contact .contact-info-card:hover {
    border-color: rgba(122, 47, 181, .4);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.tn45-contact .contact-info-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 10px;
}

.tn45-contact .contact-info-card > span:last-child { min-width: 0; }

.tn45-contact .contact-info-card strong {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.tn45-contact .contact-info-card small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.tn45-contact .contact-location-note {
    margin-top: 20px;
    padding: 16px 18px;
    background: var(--surface-soft);
    border-left: 3px solid var(--brand);
    border-radius: var(--r-md);
}
.tn45-contact .contact-location-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 700;
}
.tn45-contact .contact-location-note span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ---------- form card ---------- */

.tn45-contact .contact-form-card {
    box-sizing: border-box;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

.tn45-contact .contact-form-heading { margin-bottom: 24px; }

.tn45-contact .contact-form-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* honeypot — visually hidden, still in the DOM */
.tn45-contact .hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- fields ---------- */

.tn45-contact .contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
}

.tn45-contact .contact-field { margin-bottom: 18px; }

.tn45-contact .contact-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.tn45-contact .req { color: var(--danger); }
.tn45-contact .opt { color: var(--muted); font-weight: 500; }

.tn45-contact .contact-field input,
.tn45-contact .contact-field select,
.tn45-contact .contact-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.tn45-contact .contact-field input,
.tn45-contact .contact-field select {
    height: 48px;
    padding: 0 14px;
}

.tn45-contact .contact-field select {
    padding-right: 42px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a7085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.tn45-contact .contact-field textarea {
    min-height: 140px;
    padding: 12px 14px;
    line-height: 1.6;
    resize: vertical;
}

.tn45-contact .contact-field input::placeholder,
.tn45-contact .contact-field textarea::placeholder {
    color: #9aa0b0;
    opacity: 1;
}

.tn45-contact .contact-field input:focus,
.tn45-contact .contact-field select:focus,
.tn45-contact .contact-field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(122, 47, 181, .12);
}

/* invalid state */
.tn45-contact .contact-field input.is-invalid,
.tn45-contact .contact-field select.is-invalid,
.tn45-contact .contact-field textarea.is-invalid {
    border-color: var(--danger);
}
.tn45-contact .contact-field input.is-invalid:focus,
.tn45-contact .contact-field select.is-invalid:focus,
.tn45-contact .contact-field textarea.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(194, 59, 46, .12);
}

.tn45-contact .field-error {
    margin: 6px 0 0;
    color: var(--danger);
    font-size: 12.5px;
    line-height: 1.4;
}

/* ---------- summary error / success / submit ---------- */

.tn45-contact .contact-error {
    margin-bottom: 18px;
    padding: 12px 16px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-line);
    border-radius: var(--r-sm);
    color: var(--danger);
    font-size: 13.5px;
}

.tn45-contact .contact-submit {
    width: 100%;
    min-height: 50px;
    font-size: 15px;
}

.tn45-contact .contact-form-note {
    margin: 12px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.tn45-contact .contact-success {
    padding: 36px 24px;
    text-align: center;
    background: var(--success-bg);
    border: 1px solid var(--success-line);
    border-radius: var(--r-md);
}

.tn45-contact .contact-success-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
}

.tn45-contact .contact-success h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
}

.tn45-contact .contact-success p {
    max-width: 420px;
    margin: 0 auto 20px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
}

.tn45-contact .contact-reset-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--brand);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}
.tn45-contact .contact-reset-link:hover { text-decoration: underline; }

/* ---------- map ---------- */

.tn45-contact .contact-map-section { padding: 0 0 64px; }

.tn45-contact .contact-map-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tn45-contact .contact-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px;
}
.tn45-contact .contact-map-header h2 {
    margin: 6px 0 4px;
    color: var(--ink);
    font-size: 24px;
    font-weight: 800;
}
.tn45-contact .contact-map-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

.tn45-contact .contact-map-frame { background: var(--surface-soft); }
.tn45-contact .contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

/* ---------- SEO content ---------- */

.tn45-contact .contact-seo-section { padding: 0 0 60px; }
.tn45-contact .contact-seo-section .seo-content { max-width: 780px; }
.tn45-contact .contact-seo-section h2 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 24px;
    font-weight: 800;
}
.tn45-contact .contact-seo-section h3 {
    margin: 26px 0 8px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
}
.tn45-contact .contact-seo-section p {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.7;
}
.tn45-contact .contact-seo-section a {
    color: var(--brand);
    font-weight: 600;
}

/* ---------- tablet / mobile ---------- */

@media (max-width: 900px) {
    .tn45-contact .contact-grid { grid-template-columns: 1fr; gap: 34px; }

    /* form first on small screens — it's the main action */
    .tn45-contact .contact-form-card { order: 1; }
    .tn45-contact .contact-info      { order: 2; }
}

@media (max-width: 767px) {
    .tn45-contact .contact-hero { padding: 48px 0 44px; }
    .tn45-contact .contact-hero-actions { flex-direction: column; align-items: stretch; }
    .tn45-contact .contact-hero-actions .btn { width: 100%; }

    .tn45-contact .contact-section { padding: 44px 0; }

    /* 16px prevents iOS Safari auto-zoom on focus */
    .tn45-contact .contact-field input,
    .tn45-contact .contact-field select,
    .tn45-contact .contact-field textarea { font-size: 16px; }

    .tn45-contact .contact-form-row { grid-template-columns: 1fr; }
    .tn45-contact .contact-form-card { padding: 24px 20px; border-radius: var(--r-md); }

    .tn45-contact .contact-info-head h2,
    .tn45-contact .contact-form-heading h2 { font-size: 22px; }

    .tn45-contact .contact-map-header {
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
    }
    .tn45-contact .contact-map-header .btn { width: 100%; }
    .tn45-contact .contact-map-frame iframe { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
    .tn45-contact *, .tn45-contact *::before, .tn45-contact *::after {
        transition: none !important;
    }
}

/* =========================================================
   HERO — tn45-* class names, immune to theme CSS
   ========================================================= */

.tn45-hero {
    --orange:      #f26b1d;
    --orange-dark: #d4560a;
    --navy:        #141830;

    position: relative;
    padding: 78px 0 66px;
    text-align: center;
    background:
        radial-gradient(640px 300px at 50% -60px, rgba(242, 107, 29, .09), transparent 70%),
        linear-gradient(180deg, #fffaf6, #ffffff 65%);
    border-bottom: 1px solid #eef0f5;
    overflow: hidden;
}

.tn45-hero-eyebrow {
    display: inline-block;
    padding: 7px 16px;
    background: #fdeee1;
    color: var(--orange-dark);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.tn45-hero-title {
    max-width: 720px;
    margin: 20px auto 14px;
    color: var(--navy);
    font-size: clamp(30px, 4.5vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.tn45-hero-title span { color: var(--orange); }

.tn45-hero-text {
    max-width: 560px;
    margin: 0 auto 30px;
    color: #4a5065;
    font-size: 16px;
    line-height: 1.65;
}

/* buttons — self-contained, correct width guaranteed */
.tn45-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.tn45-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    width: auto;
    min-height: 50px;
    padding: 13px 28px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .1s ease;
}

/* WhatsApp — green to match your header button */
.tn45-btn-whatsapp {
    background: #1fae55;
    border: 1px solid #1fae55;
    color: #fff;
    box-shadow: 0 8px 20px rgba(31, 174, 85, .22);
}
.tn45-btn-whatsapp:hover {
    background: #189a47;
    border-color: #189a47;
    color: #fff;
}

/* Call — white outline */
.tn45-btn-call {
    background: #fff;
    border: 1.5px solid #dfe2ea;
    color: var(--navy);
}
.tn45-btn-call:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.tn45-btn:active { transform: translateY(1px); }

.tn45-hero a:focus-visible {
    outline: 2px solid var(--orange-dark);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .tn45-hero { padding: 48px 0 44px; }
    .tn45-hero-text { font-size: 15px; }
    .tn45-hero-actions { flex-direction: column; align-items: stretch; }
    .tn45-hero-actions .tn45-btn { width: 100%; }
}