﻿/* ──────────────────────────────────────────────
   ProTemplate1 • Contact — card form + reveal
   Respects: --primary-bg, --text-color, --accent, --accent-2
   ────────────────────────────────────────────── */

.pt1-contact {
    --_bg: var(--primary-bg, #0b1b2b);
    --_text: var(--text-color, #e7eef6);
    --_accent: var(--accent, #c96d36);
    --_accent2: var(--accent-2, #d88346);
    --_panel: color-mix(in srgb, var(--_bg) 86%, #fff 14%);
    background: color-mix(in srgb, var(--_bg) 92%, #fff 8%);
    color: var(--_text);
    padding: clamp(42px, 6vw, 84px) 24px;
}

.pt1-contact__inner {
    max-width: min(900px, 94vw);
    margin: 0 auto;
    text-align: left;
}

.pt1-contact__title {
    font-weight: 900;
    font-size: clamp(2rem, 4.8vw, 3.2rem);
    line-height: 1.08;
    margin: 0 0 clamp(18px, 3vw, 32px);
    position: relative;
    text-wrap: balance;
}

    .pt1-contact__title::after {
        content: "";
        display: block;
        width: 72px;
        height: 4px;
        margin-top: 10px;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--_accent), var(--_accent2));
    }

/* Card */
.ct-formwrap {
    background: var(--_panel);
    border: 1px solid color-mix(in srgb, var(--_text) 14%, transparent);
    border-radius: 14px;
    padding: clamp(18px, 2.4vw, 28px);
    position: relative;
    overflow: clip;
    box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

    .ct-formwrap::before,
    .ct-formwrap::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, transparent, var(--_accent), transparent);
    }

    .ct-formwrap::before {
        top: -2px;
    }

    .ct-formwrap::after {
        bottom: -2px;
    }

.ct-heading {
    margin: 0 0 6px;
    color: var(--_accent);
    font-weight: 800;
    letter-spacing: .2px;
}

.ct-sub {
    margin: 0 0 16px;
    color: color-mix(in srgb, var(--_text) 75%, transparent);
}

/* Form */
.ct-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ct-row {
    display: flex;
    gap: 12px;
}

@media (max-width: 640px) {
    .ct-row {
        flex-direction: column;
    }
}

.ct-form input,
.ct-form textarea {
    width: 100%;
    padding: .9rem 1.1rem;
    border: 1px solid color-mix(in srgb, var(--_accent) 25%, transparent);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: var(--_text);
    font-family: inherit;
    transition: border-color .25s, box-shadow .25s;
}

    .ct-form input::placeholder,
    .ct-form textarea::placeholder {
        color: color-mix(in srgb, var(--_text) 55%, transparent);
    }

    .ct-form input:focus,
    .ct-form textarea:focus {
        outline: none;
        border-color: var(--_accent);
        box-shadow: 0 0 8px color-mix(in srgb, var(--_accent) 55%, transparent);
    }

/* Submit */
.ct-submit {
    align-self: flex-end;
    position: relative;
    overflow: hidden;
    border: none;
    background: linear-gradient(135deg, var(--_accent), var(--_accent2));
    color: #fff;
    padding: .95rem 2.2rem;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--_accent) 45%, transparent);
    transition: transform .2s, box-shadow .25s, filter .25s;
}

    .ct-submit:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px color-mix(in srgb, var(--_accent) 60%, transparent);
        filter: brightness(1.05);
    }

/* Reveal hooks */
[data-reveal] {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0,24px,0);
    transition: opacity .45s ease, transform .45s ease, filter .45s ease;
}

    [data-reveal].in {
        opacity: 1;
        filter: none;
        transform: none;
    }
