/* --- RESET E VARIÁVEIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-color: #0b0c10;
    --bg-darker: #05070b;
    --card-bg: #14161f;
    --card-tactical: #101626;
    --border-subtle: #1f222f;
    --border-tactical: #1e293b;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-neon: #00ffcc;
    --accent-purple: #7000ff;
    --accent-green: #2ed573;
    --accent-error: #ff4757;
    --gradient-primary: linear-gradient(135deg, #00ffcc 0%, #7000ff 100%);
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(0, 255, 204, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(112, 0, 255, 0.07) 0%, transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- CABEÇALHO (TRAVA DE SEGURANÇA MANTIDA) --- */
.site-header, header {
    height: 80px;
    width: 100%;
    border-bottom: 1px solid #1e293b;
    background-color: rgba(5, 7, 11, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container, header .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-rs {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -2px;
    display: flex;
    gap: 0px;
}

.logo-rs span {
    background: linear-gradient(135deg, #00ffcc 0%, #7000ff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
}

.logo-rs span.mirrored {
    transform: scaleX(-1);
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.btn-voltar, .btn-back-home, .btn-voltar-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(0, 255, 204, 0.08);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-voltar:hover, .btn-back-home:hover, .btn-voltar-home:hover {
    background: #00ffcc;
    color: #05070b;
    box-shadow: 0 0 18px rgba(0, 255, 204, 0.4);
    transform: translateY(-1px);
}

/* --- CONTEÚDO PRINCIPAL (GRID 2 COLUNAS DESKTOP) --- */
main {
    flex: 1;
    padding: 68px 0 96px 0;
    display: flex;
    align-items: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: start;
    width: 100%;
}

/* --- COLUNA ESQUERDA: CANAIS E INFORMAÇÕES --- */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 255, 204, 0.08);
    border: 1px solid rgba(0, 255, 204, 0.25);
    color: var(--accent-neon);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.contact-info h1 {
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text-main);
}

.contact-info h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 36px;
}

.info-cards-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 204, 0.3);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-icon.neon {
    background-color: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.25);
    color: var(--accent-neon);
}

.info-icon.purple {
    background-color: rgba(112, 0, 255, 0.12);
    border: 1px solid rgba(112, 0, 255, 0.3);
    color: #a855f7;
}

.info-icon.green {
    background-color: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.25);
    color: var(--accent-green);
}

.info-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.55;
}

.info-highlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-neon);
    transition: opacity 0.2s;
}

.info-highlight:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.info-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #c084fc;
    background-color: rgba(112, 0, 255, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
}

.info-sla {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--accent-green);
}

.sla-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

/* --- COLUNA DIREITA: CARD DO FORMULÁRIO --- */
.contact-card {
    background: linear-gradient(160deg, var(--card-tactical) 0%, var(--card-bg) 100%);
    border: 1px solid var(--border-tactical);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.form-header {
    margin-bottom: 28px;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: -0.4px;
}

.form-header p {
    font-size: 0.94rem;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-main);
}

.required-mark {
    color: var(--accent-neon);
}

.optional-mark {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 1.15rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

input,
textarea,
select {
    width: 100%;
    background-color: rgba(11, 12, 16, 0.65);
    border: 1px solid var(--border-tactical);
    padding: 13px 14px 13px 42px;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.96rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

textarea {
    padding: 14px 16px;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
    color: #6b7280;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

select option {
    background-color: var(--card-bg);
    color: var(--text-main);
}

.select-arrow {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-neon);
    background-color: rgba(11, 12, 16, 0.9);
    box-shadow: 0 0 0 3px rgba(0, 255, 204, 0.12);
}

.input-wrapper:focus-within .input-icon,
.input-wrapper:focus-within .select-arrow {
    color: var(--accent-neon);
}

input.input-error,
textarea.input-error,
select.input-error {
    border-color: var(--accent-error);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.12);
}

.form-error-msg {
    color: var(--accent-error);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 14px;
    min-height: 20px;
    display: none;
}

.form-error-msg.visible {
    display: block;
}

.btn-submit {
    background: var(--gradient-primary);
    color: var(--bg-darker);
    padding: 15px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    width: 100%;
    font-size: 1.02rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    margin-top: 4px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 255, 204, 0.25);
}

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

/* --- ESTADO DE SUCESSO ANIMADO (SUBSTITUI O ALERT) --- */
.success-state {
    text-align: center;
    padding: 32px 16px;
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-state[hidden] {
    display: none !important;
}

.success-icon-ring {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-color: rgba(46, 213, 115, 0.12);
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    font-size: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    box-shadow: 0 0 32px rgba(46, 213, 115, 0.3);
    animation: pulseGreen 2s infinite;
}

.success-state h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.success-state p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto 24px auto;
}

.success-state p strong {
    color: var(--text-main);
}

.success-meta {
    background-color: rgba(11, 12, 16, 0.6);
    border: 1px solid var(--border-tactical);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    display: inline-block;
}

.success-meta span {
    color: var(--accent-neon);
    font-weight: 600;
}

.btn-reset-form {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid var(--border-tactical);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-reset-form:hover {
    border-color: var(--accent-neon);
    color: var(--accent-neon);
    background-color: rgba(0, 255, 204, 0.06);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.4);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(46, 213, 115, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ph-spinner {
    animation: spin 1s linear infinite;
}

/* --- RODAPÉ (TRAVA DE SEGURANÇA MANTIDA) --- */
.site-footer, footer {
    border-top: 1px solid #1e293b;
    background-color: #0b0f19;
    padding: 44px 0 28px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* LINK DA PÁGINA ATIVA DESTACADO EM VERDE/CIANO NEON */
.footer-links a.active,
.footer-links a[aria-current="page"] {
    color: #00ffcc !important;
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 14px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #111827;
    border: 1px solid #1e293b;
    color: #94a3b8;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    color: #00ffcc;
    border-color: #00ffcc;
    background: rgba(0, 255, 204, 0.08);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: 100%;
}

.footer-bottom p {
    margin: 0;
}

.footer-update-note {
    color: #475569;
    font-size: 0.75rem;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 960px) {
    main {
        padding: 44px 0 72px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .contact-card {
        padding: 28px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}