/* =============================================================
   contato.css — Página "Fale Conosco" da ByteBox
   Depende das variáveis CSS definidas em style.css
   ============================================================= */

/* ---- Garante que o footer fique no rodapé em páginas curtas ---- */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

main {
    flex: 1;
}

/* ================================================================
   CONTEÚDO PRINCIPAL
================================================================ */
.content-contact {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ================================================================
   HERO DA PÁGINA
================================================================ */
.contact-hero {
    text-align: center;
    margin-bottom: 56px;
    animation: fadeInDown 0.6s ease both;
}

.contact-hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: 48px;
    background: linear-gradient(90deg, var(--sky), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.contact-hero p {
    color: var(--muted);
    font-size: 17px;
}

/* ================================================================
   GRID PRINCIPAL (Formulário + Info)
================================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* ================================================================
   FORMULÁRIO DE CONTATO
================================================================ */
.contact-form-wrapper {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    transition: box-shadow 0.3s ease;
}

.contact-form-wrapper:hover {
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.08);
}

.contact-form-wrapper h2,
.info-card h2,
.whatsapp-card h2,
.map-card h2 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    color: var(--sky);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Grupos de campo --- */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 7px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* --- Wrapper dos inputs (ícone + campo) --- */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--muted);
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

.icon-top {
    top: 14px;
    align-self: flex-start;
}

/* --- Inputs e selects --- */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: #1e293b;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    padding-left: 42px;
    line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sky);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

/* Campo inválido */
.campo-invalido {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12) !important;
}

/* Mensagem de erro */
.error-msg {
    display: none;
    color: #f87171;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 2px;
    animation: fadeIn 0.2s ease;
}

/* Contador de caracteres */
.char-counter {
    text-align: right;
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

/* --- Checkbox de privacidade --- */
.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--sky);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--sky);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* --- Botão de envio --- */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, var(--sky), var(--indigo));
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.25s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-submit:hover:not(:disabled) {
    opacity: 0.88;
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-text,
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Ícone girando no loading */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spin {
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

/* --- Mensagem de sucesso --- */
.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    gap: 12px;
    animation: fadeInUp 0.5s ease both;
}

.success-message i {
    font-size: 52px;
    color: #4ade80;
}

.success-message strong {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    color: var(--text);
}

.success-message p {
    color: var(--muted);
    font-size: 14px;
}

/* ================================================================
   PAINEL DE INFORMAÇÕES (coluna direita)
================================================================ */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Card de informações --- */
.info-card,
.whatsapp-card,
.map-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 28px;
    transition: box-shadow 0.3s ease;
}

.info-card:hover,
.whatsapp-card:hover,
.map-card:hover {
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.08);
}

/* Itens de informação (ícone + texto) */
.info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item > i {
    color: var(--sky);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}

.info-item p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.info-item a {
    color: var(--sky);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* ================================================================
   CARD DO WHATSAPP / QR CODE
================================================================ */
.whatsapp-card p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ── Toast de sucesso ── */
        #toastSucesso {
            display: none;
            position: fixed;
            top: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(-20px);
            background: linear-gradient(135deg, #00c8ff, #0099cc);
            color: #fff;
            padding: 18px 32px;
            border-radius: 14px;
            font-family: 'DM Sans', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            box-shadow: 0 8px 32px rgba(0,200,255,0.35);
            z-index: 9999;
            text-align: center;
            max-width: 90vw;
            opacity: 0;
            transition: opacity 0.4s ease, transform 0.4s ease;
        }
        #toastSucesso.show {
            display: block;
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        #toastSucesso i {
            margin-right: 8px;
            font-size: 1.2rem;
        }

        /* Wrapper do QR Code */

.qr-wrapper {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background: #0f172a; /* Cor de fundo do card */
    padding: 12px;
    margin: 12px auto;
    border-radius: 12px;
    border: 1px solid #1e293b;
    width: fit-content;
}

#qrCodeCanvas {
    display: block !important;
    max-width: 150px;
    height: auto !important;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid #1e293b; /* Uma borda subtil */
}

.qr-wrapper p {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Botão do WhatsApp */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: #25d366;
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
}

.btn-whatsapp:hover {
    background: #1fb855;
    transform: translateY(-1px);
}

.btn-whatsapp i {
    font-size: 18px;
}

/* ================================================================
   CARD DO MAPA
================================================================ */
.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 4px;
}

.map-wrapper iframe {
    display: block;
}

/* ================================================================
   RODAPÉ COMPLETO
================================================================ */
.site-footer {
    background: #0a0f1a;
    border-top: 1px solid var(--border);
    padding: 56px 20px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* --- Coluna do logo / sobre --- */
.footer-logo {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    color: var(--text);
    margin: 0 0 12px;
    background: linear-gradient(90deg, var(--sky), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Redes sociais */
.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #64748b;
    font-size: 17px;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-links a:hover {
    color: var(--sky);
    border-color: var(--sky);
    background: rgba(56, 189, 248, 0.07);
}

/* --- Colunas de links --- */
.footer-col h4 {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--sky);
}

/* --- Coluna de atendimento --- */
.footer-col p {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.footer-col p i {
    color: var(--sky);
    font-size: 13px;
}

/* Formas de pagamento */
.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.payment-icons span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
    color: #94a3b8;
    background: #0f172a;
}

.payment-icons i {
    color: var(--sky);
    font-size: 14px;
}

/* --- Linha de copyright --- */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-bottom p {
    color: #475569;
    font-size: 12px;
    margin: 4px 0;
}

.footer-bottom strong {
    color: #94a3b8;
}

/* ================================================================
   ANIMAÇÕES
================================================================ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Elemento que entra na tela via Intersection Observer */
.fade-in-element {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-element.visivel {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   RESPONSIVIDADE
================================================================ */

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
    .contact-hero h1 {
        font-size: 32px;
    }

    .contact-form-wrapper {
        padding: 24px 18px;
    }

    .info-card,
    .whatsapp-card,
    .map-card {
        padding: 22px 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .social-links {
        gap: 8px;
    }
}
