/* =================================
   NIBED — PÁGINA DE CONTATO
   ================================= */

/* ========== CARD PRINCIPAL DE EMAIL ========== */
.contact-primary {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: 6px;
    text-decoration: none !important;
    transition: transform 0.25s var(--anim-easing, cubic-bezier(0.4,0,0.2,1)),
                box-shadow 0.25s var(--anim-easing, cubic-bezier(0.4,0,0.2,1));
    margin-bottom: 30px;
}

.contact-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(45, 27, 78, 0.25);
}

.contact-primary-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #FFFFFF;
}

.contact-primary-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.contact-primary-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-primary-address {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    word-break: break-all;
}

.contact-primary-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.contact-primary-action {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    transition: transform 0.2s;
}

.contact-primary:hover .contact-primary-action {
    transform: translateX(4px);
}

/* ========== SEÇÃO DE REDES SOCIAIS ========== */
.contact-social-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.contact-social-section h2 {
    font-size: 18px;
    color: var(--accent-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-social-section > p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

/* ========== REDES SOCIAIS (só ícones) ========== */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-link {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--primary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s,
                transform 0.2s var(--anim-easing, ease), box-shadow 0.2s;
}

.social-link:hover,
.social-link:focus-visible {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 27, 78, 0.18);
    outline: none;
}

/* tooltip com nome e @ */
.social-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    color: #FFFFFF;
    background: var(--text-main);
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 5;
}

.social-link:hover::after,
.social-link:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== FORMULÁRIO DE BUG ========== */
.bug-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    max-width: 720px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-actions {
    margin-top: 8px;
    flex-direction: row;
}

.form-row label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row input,
.form-row select,
.form-row textarea {
    padding: 10px 12px;
    font-family: var(--font);
    font-size: 13px;
    color: var(--text-main);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 27, 78, 0.1);
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
    font-family: var(--font);
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.form-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.form-disclaimer a {
    color: var(--primary);
    font-weight: 600;
}

/* ========== FAQ ========== */
.faq-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.faq-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 700px;
}

.faq-item a {
    color: var(--primary);
    font-weight: 600;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    .contact-primary {
        grid-template-columns: 48px 1fr;
        padding: 20px;
        gap: 14px;
    }

    .contact-primary-icon {
        width: 48px;
        height: 48px;
    }

    .contact-primary-address {
        font-size: 16px;
    }

    .contact-primary-action {
        grid-column: 2;
        margin-top: 6px;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
    }
}

/* =================================
   ACORDEÃO DE DICAS
================================= */

.tips-box {
    margin: 4px 0 8px;
    max-width: 720px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.tips-box summary {
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tips-box summary::-webkit-details-marker { display: none; }

.tips-box summary::after {
    content: "+";
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
}

.tips-box[open] summary::after { content: "−"; }

.tips-box ul {
    margin: 0;
    padding: 0 14px 14px 32px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.tips-box a {
    color: var(--primary);
    font-weight: 600;
}

/* =================================
   CAMPOS ESCONDIDOS
================================= */

/* garante que [hidden] vença o display do .form-row */
.form-row[hidden] { display: none; }

/* honeypot anti-spam */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* =================================
   UPLOAD: CLICAR OU ARRASTAR
================================= */

.file-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 22px 16px;
    text-align: center;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

/* o input cobre a área toda: clicar ou soltar um arquivo funciona */
.form-row .file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    border: none;
}

.file-drop:hover,
.file-drop.dragging {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(45, 27, 78, 0.05);
}

.file-drop-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
}

.file-drop-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.file-drop.has-file {
    border-style: solid;
    border-color: var(--free, #1A7F5A);
    background: var(--free-soft, rgba(26, 127, 90, 0.08));
}

.file-drop.has-file svg { color: var(--free, #1A7F5A); }

.form-error {
    font-size: 12px;
    font-weight: 600;
    color: #B42318;
}

.form-error[hidden] { display: none; }