/* ============================================================
 * contato.css — Página de Contato (Opção A: formulário centralizado)
 * eHamburguers · eSysMint
 * ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.contato-hero {
    background: var(--primary);
    padding: 3rem 1rem 2rem;
    text-align: center;
}

.contato-hero-title {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    margin: 0 0 .5rem;
    color: #fff;
}

.contato-hero-sub {
    font-size: .95rem;
    opacity: .88;
    margin: 0;
    color: #fff;
}

/* ── Wrapper centralizado ──────────────────────────────────── */
.contato-wrap {
    max-width: 640px;
    margin: 2.5rem auto 3rem;
    padding: 0 1rem;
}

@media (max-width: 680px) {
    .contato-wrap { margin: 1.5rem auto 2rem; }
}

/* ── Card do formulário ────────────────────────────────────── */
.contato-form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    padding: 2rem 2.25rem;
}

@media (max-width: 520px) {
    .contato-form-wrap { padding: 1.5rem 1.25rem; }
}

.contato-form-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 .35rem;
}

.contato-form-desc {
    font-size: .88rem;
    color: var(--text-muted, #888);
    margin: 0 0 1.75rem;
    line-height: 1.6;
}

/* ── Campos ────────────────────────────────────────────────── */
.cf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .cf-field-row { grid-template-columns: 1fr; }
}

.cf-field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.cf-field-full {
    margin-bottom: 1rem;
}

.cf-label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: .02em;
}

.cf-req { color: #ef4444; }

.cf-input,
.cf-textarea {
    padding: .7rem .95rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--surface2, #f0ede8);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s, background .2s;
    width: 100%;
    box-sizing: border-box;
}

.cf-input:focus,
.cf-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

.cf-input::placeholder,
.cf-textarea::placeholder {
    color: var(--text-muted, #aaa);
    opacity: 1;
}

.cf-textarea {
    resize: vertical;
    min-height: 140px;
}

.cf-char-count {
    font-size: .75rem;
    color: var(--text-muted, #888);
    text-align: right;
    display: block;
    margin-top: .25rem;
}

/* ── Feedback ──────────────────────────────────────────────── */
.cf-feedback {
    display: none;
    padding: .9rem 1.1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.5;
    border-left: 4px solid transparent;
    border-radius: 0 10px 10px 0;
}

.cf-feedback.success {
    background: #e8f8f2;
    color: #14532d;
    border-left-color: #22c55e;
}

.cf-feedback.error {
    background: #fdecec;
    color: #7f1d1d;
    border-left-color: #ef4444;
}

/* ── Botão ─────────────────────────────────────────────────── */
.cf-btn {
    width: 100%;
    padding: .9rem;
    margin-top: .25rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background .2s, opacity .2s, transform .1s;
}

.cf-btn:hover  { background: var(--primary-dk, #2A7A5E); }
.cf-btn:active { transform: scale(.98); }
.cf-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}
