/* ==========================================================================
   PAGE CONTATO PREMIUM - DESIGN SYSTEM EXTENSION
   ========================================================================== */

/* =========================================================
   1. CONTACT ROUTER: PROTOCOLO 1% (REFINADO)
   Foco: Squircle Design, Alinhamento de Topo e Estabilidade
   ========================================================= */

.contact-router-wrapper {
    position: relative;
    z-index: 30;
    margin-top: -80px; /* Overlap intencional sobre o breadcrumb */
    padding-bottom: 40px;
}

/* O CARD (ACTION TICKET) */
.action-ticket {
    display: flex;
    align-items: flex-start; /* Alinhamento editorial pelo topo */
    background: var(--color-branco);
    padding: 32px;
    border-radius: 24px; /* Unificado com o Form Surface */
    text-decoration: none;
    border: 1px solid rgba(0, 123, 78, 0.05);
    box-shadow: 0 10px 30px rgba(0, 23, 25, 0.04);
    gap: 24px; /* Precisão no espaçamento entre ícone e texto */
    transition: all 0.5s var(--bezier-premium);
    height: 100%;
}

.action-ticket:hover {
    transform: translateY(-8px); /* Apenas movimento vertical para elevação */
    border-color: rgba(0, 123, 78, 0.15);
    box-shadow: 0 25px 50px rgba(0, 23, 25, 0.08);
}

/* ICON SQUIRCLE (16px Radius) */
.icon-squircle {
    width: 56px;
    height: 56px;
    background-color: var(--color-verde-claro);
    color: var(--color-principal);
    border-radius: 16px; /* Raio Squircle técnico */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.5s var(--bezier-premium);
}

.action-ticket:hover .icon-squircle {
    background-color: var(--color-principal);
    color: var(--color-branco);
    transform: rotate(-10deg) scale(1.05);
}

/* CONTEÚDO E TEXTO */
.ticket-content {
    flex-grow: 1; /* ESSENCIAL: Força o container a ocupar 100% da largura restante */
    display: flex;
    flex-direction: column;
    min-width: 0; /* Previne quebras de layout em textos longos */
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Garante que o 'between' use a borda do card como limite */
    margin-bottom: 4px;
}

.ticket-header h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-escuro);
    letter-spacing: -0.02em;
    margin: 0;
}

.ticket-content p {
    font-size: 0.95rem;
    color: var(--color-text-card);
    line-height: 1.5;
    margin: 0;
}

/* VARIAÇÃO: HIGHLIGHT (WHATSAPP) */
.action-ticket.highlight-ticket {
    background: linear-gradient(135deg, #FFFFFF 0%, #F4FAF8 100%);
    border: 1.5px solid rgba(0, 123, 78, 0.1);
}

.badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #25D366; /* Verde Oficial WhatsApp */
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.ticket-badge {
    background-color: rgba(0, 123, 78, 0.08);
    color: var(--color-principal);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 30px;
    letter-spacing: 0.1em;
}

/* SETA DE INTERAÇÃO (FADE IN NO HOVER) */
.ticket-arrow {
    width: 24px; /* Largura fixa garante que o eixo vertical seja idêntico em todos os cards */
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Impede que o ícone seja esmagado por títulos longos */
    
    color: var(--color-principal);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-15px); /* Inicia mais "dentro" para um slide-in elegante */
    transition: all 0.5s var(--bezier-premium);
}

.action-ticket:hover .ticket-arrow {
    opacity: 1;
    transform: translateX(0); /* Alinhamento final perfeito na margem direita */
}

/* =========================================================
   FORMULÁRIO PREMIUM: PROTOCOLO 1% (CONSOLIDADO)
   Foco: Superfícies, Profundidade e Hierarquia
   ========================================================= */

/* 1. SEÇÃO E TRANSIÇÃO DE RITMO */
.premium-form-section {
    /* Gradiente sutil para criar a transição sem usar linhas */
    background: linear-gradient(180deg, var(--color-branco) 0%, var(--color-verde-claro) 100%);
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    position: relative;
}

/* Substitui o <hr> - Linhas quebram o design, o espaço o define */
.section-divider-soft {
    display: none; 
}

/* 2. A SUPERFÍCIE (THE FORM CARD) */
.form-surface-wrapper {
    background: var(--color-branco);
    padding: clamp(30px, 5vw, 60px);
    border-radius: 32px; /* Raio editorial (estilo Apple) */
    box-shadow: 0 40px 100px rgba(0, 23, 25, 0.04); /* Sombra de levitação */
    border: 1px solid rgba(0, 123, 78, 0.05);
    margin-top: 60px;
    transition: transform 0.6s var(--bezier-premium);
}

/* 3. TIPOGRAFIA DE CABEÇALHO */
.form-header .section-main-title {
    font-size: var(--font-size-h1);
    font-weight: 850; /* Máximo impacto */
    letter-spacing: -0.04em;
    color: var(--color-escuro);
    margin-bottom: 24px;
}

.form-header .lead-text {
    font-size: var(--font-size-lead);
    color: var(--color-text-lead);
    max-width: 580px;
    margin: 0 auto;
}

/* 4. INPUTS E TEXTAREAS (INDUSTRIAL LOOK) */
.input-group-premium {
    position: relative;
    width: 100%;
}

.form-control-premium {
    width: 100%;
    height: 72px;
    background-color: #F9FBFB; /* Cinza técnico suave */
    border: 1.5px solid transparent;
    border-radius: 16px;
    padding: 28px 24px 8px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-escuro);
    transition: all 0.4s var(--bezier-premium);
    outline: none;
    -webkit-appearance: none;
}

.form-control-premium.textarea-premium {
    height: 180px;
    padding-top: 32px;
    resize: none;
}

/* Estados do Input */
.form-control-premium:hover {
    background-color: #F2F5F4;
}

.form-control-premium:focus {
    background-color: var(--color-branco);
    border-color: var(--color-principal);
    box-shadow: 0 10px 30px rgba(0, 123, 78, 0.06);
}

/* 5. LABELS FLUTUANTES (MICRO-INTERAÇÃO) */
.input-group-premium label {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #8A9995;
    pointer-events: none;
    transition: all 0.3s var(--bezier-premium);
}

/* Floating State */
.form-control-premium:focus + label,
.form-control-premium:not(:placeholder-shown) + label,
.always-float {
    top: 16px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 800;
    color: var(--color-principal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* 6. BOTÃO DE ENVIO (COMMAND CENTER STYLE) */
.btn-submit-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 72px;
    padding: 0 12px 0 32px;
    background-color: var(--color-escuro);
    color: var(--color-branco);
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s var(--bezier-premium);
}

.btn-submit-wide:hover {
    background-color: var(--color-principal);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 123, 78, 0.25);
}

.icon-circle-small {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--bezier-premium);
}

.btn-submit-wide:hover .icon-circle-small {
    background: var(--color-branco);
    color: var(--color-principal);
    transform: rotate(-10deg);
}

/* Refinamento da Seta do Select */
.select-group {
    display: flex; /* Garante que o container se comporte bem com absolutos */
    align-items: center;
}

.select-group .form-control-premium {
    cursor: pointer;
    padding-right: 50px; /* Abre espaço para a seta não sobrepor o texto */
}

.select-group .select-arrow {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%); /* Centralização matemática perfeita */
    color: var(--color-principal);
    pointer-events: none;
    font-size: 16px; /* Aumento leve para legibilidade */
    z-index: 10;
    transition: transform 0.3s ease;
}

/* Micro-interação: Gira a seta quando o foco está no select */
.select-group .form-control-premium:focus ~ .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Posicionamento do Label em Campos de Mensagem */
.input-group-premium textarea + label {
    top: 24px; /* Alinha com o início do padding superior do input */
    transform: none; /* Remove a centralização vertical do label padrão */
}

/* Quando o usuário clica ou escreve (Floating State) */
.input-group-premium textarea:focus + label,
.input-group-premium textarea:not(:placeholder-shown) + label {
    top: 12px; /* Sobe para o topo técnico */
    transform: translateY(0) scale(0.85); /* Redução elegante */
}

select.form-control-premium {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none; /* Remove a seta padrão do Windows/Safari */
}

/* 7. RESPONSIVIDADE RIGOROSA */
@media (max-width: 768px) {
    .form-surface-wrapper {
        padding: 40px 24px;
        border-radius: 24px;
    }
    .form-control-premium, .btn-submit-wide {
        height: 64px;
    }
}

/* =========================================================
   3. LOCATION & MAP: PROTOCOLO 1% GLOBAL
   Foco: Precisão Técnica e Impacto Editorial
   ========================================================= */

.location-area {
    background-color: var(--color-branco);
    position: relative;
    z-index: 1;
}

/* --- 1. CABEÇALHO E TIPOGRAFIA --- */
.loc-header .eyebrow-text {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 800;
    color: var(--color-principal);
    margin-bottom: 16px;
}

.loc-header .location-city {
    font-size: var(--font-size-h2);
    font-weight: 850;
    color: var(--color-escuro);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.loc-header .location-desc {
    font-size: var(--font-size-lead);
    color: var(--color-text-lead);
    line-height: var(--line-height-padrao);
    max-width: 340px;
}

/* --- 2. SWITCHER DE LOCALIZAÇÃO (SEGMENTED CONTROL) --- */
.location-switcher-wrapper {
    display: inline-flex;
    background: var(--color-verde-claro);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(0, 123, 78, 0.08);
    margin-bottom: 48px;
}

.nav-switch {
    all: unset;
    padding: 10px 24px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: var(--color-nota);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.5s var(--bezier-premium);
    white-space: nowrap;
}

.nav-switch:hover:not(.active) {
    color: var(--color-principal);
}

.nav-switch.active {
    background: var(--color-branco);
    color: var(--color-principal);
    box-shadow: 0 4px 12px rgba(0, 23, 25, 0.06);
}

/* --- 3. GRID DE INFORMAÇÕES TÉCNICAS --- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
    margin-top: 48px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
    color: #9AA6A2;
    margin-bottom: 10px;
}

.info-value {
    font-size: var(--font-size-p);
    color: var(--color-escuro);
    font-weight: 600;
    line-height: 1.6;
}

.info-value .separator {
    color: var(--color-principal);
    font-weight: 300;
    margin: 0 6px;
}

/* Links com Underline Editorial */
.link-underline {
    text-decoration: none;
    background-image: linear-gradient(var(--color-principal), var(--color-principal));
    background-size: 0% 1.5px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.4s var(--bezier-premium);
    padding-bottom: 2px;
}

.link-underline:hover {
    background-size: 100% 1.5px;
}

/* --- 4. BOTÃO DE DIREÇÃO PREMIUM --- */
.btn-direction-premium {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--color-escuro);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 48px;
    transition: all 0.4s var(--bezier-premium);
}

.btn-direction-premium .circle-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-verde-claro);
    border: 1px solid rgba(0, 123, 78, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-principal);
    transition: all 0.5s var(--bezier-premium);
}

.btn-direction-premium:hover {
    color: var(--color-principal);
}

.btn-direction-premium:hover .circle-icon {
    background-color: var(--color-principal);
    color: var(--color-branco);
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 10px 20px rgba(0, 123, 78, 0.15);
}

/* --- 5. MAPA CINEMÁTICO (THE WINDOW) --- */
.map-cinematic-wrapper {
    position: relative;
    height: 690px;
    width: 100%;
    border-radius: 32px; /* Uniformizado com o form surface */
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 23, 25, 0.08); 
    background-color: #E5E3DF;
    transform: translateZ(0);
}

.map-overlay-texture {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 23, 25, 0.02), rgba(0, 23, 25, 0.08));
    z-index: 2;
    pointer-events: none;
}

.grayscale-map-bg {
    width: 100%;
    height: 100%;
    filter: grayscale(100%) contrast(0.95) brightness(1.02);
    transition: filter 1.2s var(--bezier-premium);
}

.map-cinematic-wrapper:hover .grayscale-map-bg {
    filter: grayscale(0%) contrast(1) brightness(1);
}

/* Marcador Pulsante UI */
.location-pulse-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pulse-dot {
    width: 18px;
    height: 18px;
    background-color: var(--color-principal);
    border: 4px solid var(--color-branco);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-principal);
    border-radius: 50%;
    z-index: 1;
    animation: pulse-green 2.5s infinite var(--bezier-premium);
}

/* Card Informativo do Pin */
.marker-card {
    position: absolute;
    left: 32px;
    background: var(--color-branco);
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 23, 25, 0.12);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-15px);
    transition: all 0.6s var(--bezier-premium);
    pointer-events: auto;
}

.marker-card strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--color-escuro);
    margin-bottom: 4px;
}

.marker-card span {
    font-size: 11px;
    color: var(--color-nota);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.map-cinematic-wrapper:hover .marker-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* --- 6. COREOGRAFIA DE TRANSIÇÃO --- */
#location-dynamic-content {
    transition: opacity 0.6s var(--bezier-premium), transform 0.6s var(--bezier-premium);
    will-change: opacity, transform;
}

.map-loading #location-iframe {
    filter: grayscale(100%) blur(4px);
    opacity: 0.7;
}

.map-loading .marker-card {
    opacity: 0;
    transform: translateY(10px);
}

@keyframes pulse-green {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(4.5); opacity: 0; }
}

/* --- 7. RESPONSIVIDADE RIGOROSA --- */
@media (max-width: 991px) {
    .map-cinematic-wrapper {
        height: 450px;
        margin-top: 60px;
        border-radius: 24px;
    }
    .info-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .location-switcher-wrapper {
        display: flex;
        width: 100%;
    }
    .nav-switch {
        flex: 1;
        text-align: center;
        padding: 12px 8px;
        font-size: 10px;
    }
}