/* ==========================================================================
   Contact (Contato) Page - EDITORIAL MINIMALIST
   Architecture: High-End Agency Style / Asymmetric Grid / Floating Labels
   ========================================================================== */

:root {
    --editorial-primary: #1b4f29;
    --editorial-secondary: #0ea5e9;
    --editorial-accent: #f59e0b;
    --editorial-bg: #fdfdfd;
    --editorial-surface: #ffffff;
    --editorial-text: #0f172a;
    --editorial-muted: #64748b;
    --editorial-border: #f1f5f9;
    --editorial-radius: 40px;
    --platinum-shadow: 0 20px 50px rgba(0,0,0,0.08);
    --platinum-glass: rgba(255, 255, 255, 0.7);
}

/* Dark Mode Overrides */
html.dark-theme {
    --editorial-primary: #22c55e; /* Lighter green for dark mode contrast */
    --editorial-bg: #0f172a;
    --editorial-surface: #1e293b;
    --editorial-text: #f8fafc;
    --editorial-muted: #94a3b8;
    --editorial-border: #334155;
    --platinum-glass: rgba(30, 41, 59, 0.8);
    --platinum-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.contact-editorial-page {
    background: var(--editorial-bg);
    min-height: 100vh;
}

/* 1. Immersive Hero & Spacing Fixes */
.contact-editorial-header {
    padding: 30px 0 40px; /* Reduced due to official breadcrumbs existence */
    text-align: left;
    background: var(--editorial-bg);
    border-bottom: 1px solid var(--editorial-border);
}

/* Neutralize common breadcrumb margin for tighter integration */
.breadcrumbs-container {
    margin-bottom: 0 !important;
    background: transparent !important;
    border-bottom: none !important;
}

.breadcrumb-platinum {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--editorial-muted);
    margin-bottom: 15px; /* Compact margin */
}

.breadcrumb-platinum a {
    color: var(--editorial-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-platinum a:hover {
    color: var(--editorial-primary);
}

.breadcrumb-platinum .sep {
    font-size: 0.6rem;
    opacity: 0.5;
}

.breadcrumb-platinum .current {
    color: var(--editorial-primary);
    opacity: 0.7;
}

.hero-inner {
    max-width: 850px;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--editorial-primary);
    opacity: 0.8;
}

.editorial-title {
    font-size: 3.8rem;
    font-weight: 900;
    margin: 15px auto;
    color: var(--editorial-text);
    line-height: 1.1;
    letter-spacing: -0.05em;
    max-width: 800px;
}

.text-italic {
    font-family: serif;
    font-style: italic;
    font-weight: 400;
    color: var(--editorial-secondary);
}

.editorial-lead {
    font-size: 1.25rem;
    color: var(--editorial-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Asymmetric Editorial Grid */
.editorial-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 80px; /* Increased to ensure complete separation from header */
    position: relative;
    z-index: 10;
}

.info-sticky {
    position: sticky;
    top: 140px;
}

/* Info Elements */
.info-block {
    display: flex;
    gap: 25px; /* Increased gap between icon and text */
    padding: 35px; /* More generous internal padding */
    border-radius: 30px;
    background: var(--platinum-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    margin-bottom: 30px; /* Essential breathing room between blocks */
}

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

.info-block:hover {
    transform: translateY(-8px);
    box-shadow: var(--platinum-shadow);
    border-color: var(--editorial-primary);
    background: var(--editorial-surface); /* Adaptive background */
}

.info-icon {
    width: 54px;
    height: 54px;
    background: var(--color-surface-hover, #f1f5f9);
    color: var(--color-primary, #1b4f29);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.icon-site-primary { 
    background: rgba(27, 79, 41, 0.08); 
    color: #1b4f29; 
}

.icon-site-gold { 
    background: rgba(242, 183, 5, 0.12); 
    color: #c29104; 
}

html.dark-theme .icon-site-primary {
    background: rgba(27, 79, 41, 0.2);
    color: #34d399; /* Emerald for better visibility */
}

html.dark-theme .icon-site-gold {
    background: rgba(242, 183, 5, 0.2);
    color: #fbbf24;
}


.info-content h4 {
    font-size: 1rem;
    font-weight: 900;
    margin: 0 0 5px;
    color: var(--editorial-text);
}

.info-content p {
    font-size: 0.95rem;
    color: var(--editorial-muted);
    margin: 0 0 10px;
}

.link-action {
    font-size: 0.85rem;
    font-weight: 800;
    color: #475569; /* Neutral Slate instead of blue/green */
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.link-action:hover {
    gap: 12px;
}

/* Horário Card - Harmonized */
.horario-card {
    border-radius: 30px;
    background: var(--platinum-glass) !important;
}

.horario-card .info-content h4,
.horario-card .info-content p {
    color: var(--editorial-text) !important;
}

/* 3. The Platinum Form/* 2. Enhanced Card Styling */
.form-platinum {
    background: var(--editorial-surface);
    padding: 50px;
    border-radius: var(--editorial-radius);
    border: 1px solid var(--editorial-border);
    position: relative;
    overflow: hidden;
}

html.dark-theme .form-platinum {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-header h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 10px;
    color: var(--editorial-text);
    letter-spacing: -0.04em;
}

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

/* Floating Input Logic */
.floating-group {
    position: relative;
    padding-top: 10px;
}

.floating-input,
.floating-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--editorial-border);
    padding: 12px 0;
    font-size: 1rem;
    color: var(--editorial-text);
    outline: none;
    transition: all 0.3s ease;
}

html.dark-theme .floating-input,
html.dark-theme .floating-textarea {
    border-bottom-color: #334155;
}

.floating-label {
    position: absolute;
    top: 25px;
    left: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label,
.floating-textarea:focus ~ .floating-label,
.floating-textarea:not(:placeholder-shown) ~ .floating-label {
    top: -5px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--editorial-primary);
    letter-spacing: 2px;
}

.focus-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--editorial-primary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-input:focus ~ .focus-line, 
.floating-textarea:focus ~ .focus-line {
    width: 100%;
    left: 0;
}

/* Select Styling */
.select-modern-platinum {
    width: 100%;
    background: var(--editorial-bg);
    border: 2px solid var(--editorial-border);
    padding: 15px 20px;
    border-radius: 15px;
    color: var(--editorial-text);
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    transition: all 0.3s ease;
}

/* Redesigned Button */
.btn-editorial-send {
    width: 100%;
    padding: 25px;
    border-radius: 20px;
    background: #1e293b;
    color: white !important;
    border: none;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-editorial-send:hover {
    background: #0f172a;
    transform: scale(1.02);
    box-shadow: 0 30px 40px -10px rgba(15, 23, 42, 0.2);
}

.form-notice {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--editorial-muted);
    text-align: center;
}

/* Status Alert */
.form-alert {
    padding: 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    display: none;
    animation: slideUp 0.3s ease-out;
}

.status-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

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

/* 4. Map Section Immersive */
.immersive-map {
    position: relative;
    border-top: 1px solid var(--editorial-border);
    transition: all 0.5s ease;
}

.map-overlay-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-overlay-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 60px -10px rgba(0, 0, 0, 0.2);
}

/* 5. Mobile Adjustments */
@media (max-width: 1100px) {
    .editorial-grid { grid-template-columns: 1fr; gap: 40px; }
    .editorial-title { font-size: 3.2rem; }
    .form-platinum { padding: 40px; }
    .hero-inner { padding: 0 20px; }
}

@media (max-width: 640px) {
    .editorial-title { font-size: 2.5rem; }
    .contact-editorial-header { padding: 80px 0 40px; }
    .editorial-grid { gap: 30px; }
    .info-block { padding: 20px; border-radius: 20px; }
}

.btn-loader {
    display: none;
    margin-left: 15px;
}

.btn-editorial-send.loading .btn-loader {
    display: inline-block;
}

.btn-editorial-send.loading span, 
.btn-editorial-send.loading i:not(.btn-loader) {
    display: none;
}

/* Ninja Forms Standard Support Override */
.ninja-forms-custom .nf-field-label label {
    font-weight: 900 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    color: var(--editorial-primary) !important;
    letter-spacing: 1.5px !important;
}

.ninja-forms-custom .ninja-forms-field {
    border: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 15px 0 !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    color: var(--editorial-text) !important;
}

.ninja-forms-custom .ninja-forms-field:focus {
    border-bottom-color: var(--editorial-primary) !important;
}
/* Dark Mode Enhancements for Contact page */
html.dark-theme .link-action {
    color: #ffffff !important; /* Pure white for maximum contrast */
}

html.dark-theme .link-action:hover {
    color: var(--editorial-secondary) !important;
    opacity: 1;
}

html.dark-theme .info-icon {
    background: rgba(255, 255, 255, 0.05);
}

html.dark-theme .info-block:hover {
    border-color: var(--editorial-secondary);
}
