/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    padding: 4rem 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

.contact-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Card Styles */
.info-card,
.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover,
.form-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.contact-info-wrapper h2,
.contact-form-wrapper h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.form-description {
    color: #666;
    margin-bottom: 2rem;
    padding: 0 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #791F53;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-icon.whatsapp {
    background: #25D366;
}

.contact-details h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.contact-details a {
    color: #791F53;
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details p {
    margin: 0.25rem 0;
    color: #666;
}

.response-time {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

.response-time i {
    margin-right: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #791F53;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #5a0a3a;
}

.office-hours {
    padding: 2rem;
}

.hours-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.hours-header i {
    color: #791F53;
    font-size: 1.3rem;
}

.hours-header h3 {
    color: #333;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.hours-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.hours-item:hover {
    border-color: #791F53;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 31, 83, 0.15);
}

.hours-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(121, 31, 83, 0.2);
}

.hours-content {
    flex: 1;
}

.hours-item strong {
    display: block;
    color: #791F53;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.hours-time {
    margin: 0.5rem 0;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.hours-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hours-note i {
    color: #791F53;
    font-size: 0.8rem;
}

.contact-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #791F53;
    background: white;
    box-shadow: 0 0 0 4px rgba(121, 31, 83, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #999;
    opacity: 0.7;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-error::before {
    content: '⚠';
    font-size: 1rem;
}

.form-submit {
    margin-top: 2rem;
}

.btn-block {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
}

.btn-submit {
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(121, 31, 83, 0.3);
    position: relative;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(121, 31, 83, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    margin-right: 0.5rem;
}

.map-section {
    margin-top: 5rem;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-header i {
    font-size: 2rem;
    color: #791F53;
}

.map-section h2 {
    font-size: 2rem;
    color: #791F53;
    margin: 0;
    font-weight: 600;
}

.map-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.map-btn {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid #791F53;
    color: #791F53;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-btn:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(121, 31, 83, 0.25);
    border-color: #006239;
}

.map-btn.active {
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(121, 31, 83, 0.4);
}

.map-btn i {
    font-size: 1rem;
}

.map-container {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    border: 2px solid #e9ecef;
}

.map-note {
    text-align: center;
    color: #666;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.map-note i {
    color: #791F53;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-title i {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .card-header {
        padding: 1.25rem 1.5rem;
    }
    
    .card-header h2 {
        font-size: 1.3rem;
    }
    
    .form-description {
        padding: 0 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .office-hours {
        padding: 1.5rem;
    }
    
    .map-section {
        padding: 2rem 1.5rem;
    }

    /* Os 3 primeiros elementos lado a lado */
    .contact-methods {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem !important;
    }

    .contact-method {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1rem 0.5rem !important;
    }

    .contact-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        margin: 0 auto 0.5rem !important;
    }

    .contact-details {
        text-align: center !important;
    }

    .contact-details h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }

    .contact-details a,
    .contact-details p {
        font-size: 0.8rem !important;
    }

    .response-time {
        font-size: 0.7rem !important;
        margin-top: 0.25rem !important;
    }

    /* O 4º elemento (Social Media) pode ficar abaixo ou também lado a lado */
    .contact-method:nth-child(4) {
        grid-column: 1 / -1; /* Ocupa toda a largura */
        flex-direction: row !important;
        justify-content: center !important;
    }

    .hours-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .office-hours {
        padding: 1.5rem;
    }

    .map-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .map-btn {
        width: 100%;
        justify-content: center;
    }

    .map-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    /* Em telas muito pequenas, os 3 elementos continuam lado a lado */
    .contact-methods {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }

    .contact-method {
        padding: 0.75rem 0.25rem !important;
    }

    .contact-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }

    .contact-details h4 {
        font-size: 0.8rem !important;
    }

    .contact-details a,
    .contact-details p {
        font-size: 0.75rem !important;
    }

    .response-time {
        font-size: 0.65rem !important;
    }

    .map-container {
        height: 350px;
    }

    .map-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
