.contact-wrap {
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px 80px;
}

.contact-card {
    width: 100%;
    max-width: 680px;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px 40px 40px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, .07);
}

/* ── Header ── */
.contact-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.contact-header-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(var(--rgb-underline-color), .1);
    color: var(--underline-color);
}

.contact-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--title-color);
    line-height: 1.2;
}

.contact-subtitle {
    margin: 4px 0 0;
    font-size: .84rem;
    color: var(--text-muted-input);
}

/* ── Flash ── */
.contact-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid transparent;
    line-height: 1.4;
}

.contact-flash-ok  { background: rgba(34,197,94,.1);  color: #16a34a; border-color: rgba(34,197,94,.25); }
.contact-flash-err { background: rgba(239,68,68,.1);  color: #ef4444; border-color: rgba(239,68,68,.25); }
.contact-flash i   { flex-shrink: 0; margin-top: 1px; }

/* ── Form ── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    font-size: .8rem;
    font-weight: 800;
    color: var(--title-color);
    letter-spacing: .01em;
}

.contact-req  { color: #ef4444; margin-left: 2px; }
.contact-opt  { color: var(--text-muted-input); font-weight: 600; font-size: .75rem; }

.contact-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 9px;
    background: var(--bg-input);
    color: var(--p-color);
    font-family: inherit;
    font-size: .88rem;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

.contact-input:focus {
    outline: none;
    border-color: var(--underline-color);
    box-shadow: 0 0 0 3px rgba(var(--rgb-underline-color), .12);
}

.contact-input::placeholder { color: var(--text-muted-input); opacity: .7; }

.contact-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.contact-hint {
    font-size: .73rem;
    color: var(--text-muted-input);
    margin-top: -2px;
}

/* ── Footer ── */
.contact-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border: none;
    border-radius: 9px;
    background: var(--underline-color);
    color: #fff;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.contact-btn:hover { opacity: .88; transform: translateY(-1px); }

.contact-privacy {
    font-size: .74rem;
    color: var(--text-muted-input);
    line-height: 1.5;
}

.contact-privacy a {
    color: var(--underline-color);
    text-decoration: none;
}

.contact-privacy a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .contact-card  { padding: 24px 18px 28px; }
    .contact-row   { grid-template-columns: 1fr; }
    .contact-footer { flex-direction: column; align-items: flex-start; }
}
