/* =================================================================== */
/* ESTILOS DA P�GINA DE CONTATO                                       */
/* =================================================================== */

:root {
    --primary-red: #d62828;
    --primary-red-light: #ff4444;
    --dark-bg: #0a0a0a;
    --dark-bg-secondary: #1a1a1a;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #999999;
    --text-gray: #cccccc;
}

/* =================================================================== */
/* HERO SECTION COMPACTA                                              */
/* =================================================================== */

.contact-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(214, 40, 40, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(214, 40, 40, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(214, 40, 40, 0.15);
    border: 1px solid rgba(214, 40, 40, 0.3);
    border-radius: 50px;
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =================================================================== */
/* CONTACT SECTION - LAYOUT PRINCIPAL                                 */
/* =================================================================== */

.contact-section {
    background: var(--dark-bg);
    padding: 4rem 0 5rem;
}

/* =================================================================== */
/* CONTACT INFO COLUMN                                                */
/* =================================================================== */

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(214, 40, 40, 0.15);
    border: 1px solid rgba(214, 40, 40, 0.3);
    border-radius: 50px;
    color: var(--primary-red);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    width: fit-content;
}

.contact-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Contact Info List */
.contact-info-list {
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item:hover {
    background: rgba(214, 40, 40, 0.05);
    border-color: rgba(214, 40, 40, 0.2);
    transform: translateX(5px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 15px rgba(214, 40, 40, 0.3);
}

.contact-info-content h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-info-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(214, 40, 40, 0.3);
}

/* =================================================================== */
/* MAP CARD - INTEGRADO NA COLUNA DE INFO                             */
/* =================================================================== */

.map-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 2rem;
}

.map-card-header {
    padding: 1rem 1.25rem;
    background: rgba(214, 40, 40, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-card-header i {
    color: var(--primary-red);
    font-size: 1.1rem;
}

.map-card-header span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
}

.map-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(70%) contrast(1.1) brightness(0.85);
    transition: filter 0.4s ease;
}

.map-container:hover iframe {
    filter: grayscale(20%) contrast(1.1) brightness(0.95);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.map-overlay i {
    font-size: 2rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.map-overlay span {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.map-overlay:hover {
    background: rgba(214, 40, 40, 0.4);
    color: white;
    text-decoration: none;
}

.map-overlay:hover i {
    opacity: 1;
    transform: scale(1.2);
}

.map-overlay:hover span {
    opacity: 1;
    transform: translateY(0);
}

/* =================================================================== */
/* PHONE FIELD WITH COUNTRY SELECTOR                                  */
/* =================================================================== */

.phone-field {
    display: flex;
    flex-direction: column;
}

.phone-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.phone-label i {
    color: var(--primary-red);
    margin-right: 6px;
}

.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: visible;
}

.phone-input-wrapper:focus-within {
    background: rgba(214, 40, 40, 0.05);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.12);
}

.country-select {
    position: relative;
    flex-shrink: 0;
}

.country-select-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.9rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px 0 0 10px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.country-select-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.country-flag-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.country-dial-code {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
}

.country-arrow {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.country-dropdown.open ~ .country-select-btn .country-arrow,
.country-select-btn[aria-expanded="true"] .country-arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    overflow: hidden;
}

.country-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.country-option:hover {
    background: rgba(214, 40, 40, 0.1);
}

.country-option.selected {
    background: rgba(214, 40, 40, 0.15);
}

.country-option .country-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-light);
}

.country-option .country-dial-code {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.phone-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    border-radius: 0 10px 10px 0 !important;
    color: var(--text-light);
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    box-shadow: none !important;
}

.phone-input:focus {
    outline: none;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--text-light) !important;
}

.phone-input:-webkit-autofill,
.phone-input:-webkit-autofill:hover,
.phone-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: var(--text-light) !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s;
}

.phone-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* =================================================================== */
/* CONTACT FORM CARD                                                  */
/* =================================================================== */

.contact-form-wrapper {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.form-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-title i {
    color: var(--primary-red);
}

/* Form Floating Custom */
.form-floating-custom {
    position: relative;
}

.form-floating-custom .form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    height: auto;
    transition: all 0.3s ease;
}

.form-floating-custom .form-control:focus {
    background: rgba(214, 40, 40, 0.05);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.12);
    color: var(--text-light);
    outline: none;
}

.form-floating-custom .form-control::placeholder {
    color: transparent;
}

.form-floating-custom label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.25s ease;
    background: transparent;
    padding: 0 4px;
}

.form-floating-custom label i {
    margin-right: 6px;
    color: var(--primary-red);
}

.form-floating-custom textarea ~ label {
    top: 1.25rem;
    transform: translateY(0);
}

.form-floating-custom .form-control:focus ~ label,
.form-floating-custom .form-control:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.75rem;
    background: var(--card-bg);
    color: var(--primary-red);
}

.form-floating-custom textarea.form-control {
    min-height: 120px;
    resize: none;
}

/* Submit Button */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(214, 40, 40, 0.3);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(214, 40, 40, 0.4);
}

.btn-submit:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover:not(:disabled) i {
    transform: translateX(4px);
}

/* Alerts */
.alert {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #5cb85c;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* reCAPTCHA */
.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.g-recaptcha {
    transform: scale(1.05);
    transform-origin: center;
}

/* =================================================================== */
/* RESPONSIVE                                                         */
/* =================================================================== */

@media (max-width: 991px) {
    .contact-hero {
        padding: 120px 0 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-section {
        padding: 3rem 0 4rem;
    }
    
    .contact-title {
        font-size: 1.75rem;
    }
    
    .contact-form-wrapper {
        margin-top: 2.5rem;
    }
    
    .map-container {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .contact-hero {
        padding: 110px 0 40px;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-section {
        padding: 2.5rem 0 3rem;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .contact-subtitle {
        font-size: 0.95rem;
    }
    
    .contact-info-item {
        padding: 0.85rem;
    }
    
    .contact-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 1.1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .form-title {
        font-size: 1.2rem;
    }
    
    .map-container {
        height: 160px;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-info-item:hover {
        transform: translateY(-3px);
    }

    .social-links {
        justify-content: center;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .map-container {
        height: 150px;
    }

    .g-recaptcha {
        transform: scale(0.77);
    }

    .country-select-btn {
        padding: 0.75rem 0.5rem;
        gap: 4px;
    }

    .country-dial-code {
        font-size: 0.8rem;
    }

    .phone-input {
        padding: 0.75rem 0.75rem;
        font-size: 0.9rem;
    }
}
