/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 0;
    background: var(--light-gray);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--highlight-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-content h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.info-content p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.form-group .error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group .error-message.show {
    display: block;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.form-group.checkbox label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-group.checkbox a {
    color: var(--highlight-color);
    text-decoration: underline;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.form-submit .btn {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.form-submit .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== MAP SECTION ===== */
.map-section {
    background: white;
    padding: 60px 0;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.map-container h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.map-frame {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: var(--light-gray);
    padding: 60px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-container h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question.active {
    background: var(--highlight-color);
    color: white;
}

.faq-question i {
    transition: var(--transition);
    font-size: 1.2rem;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.faq-answer.show {
    max-height: 200px;
}

.faq-answer-content {
    padding: 0 20px 20px;
    color: var(--text-color);
    line-height: 1.6;
}

/* ===== FLOATING ELEMENTS ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-hover);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.back-to-top .btn:hover {
    background: var(--highlight-color);
    transform: translateY(-3px);
}

/* ===== FORM VALIDATION STYLES ===== */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #27ae60;
}

.form-group.success .success-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #27ae60;
    font-size: 1.2rem;
}

.form-group.error .error-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #e74c3c;
    font-size: 1.2rem;
}

/* ===== LOADING STATES ===== */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}

.form-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--highlight-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* ===== SUCCESS/ERROR MESSAGES ===== */
.form-message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: none;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }
    
    .info-item {
        padding: 15px;
    }
    
    .info-item i {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .map-frame {
        height: 300px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float .btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
    }
    
    .back-to-top .btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact-info,
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .form-submit .btn {
        min-width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .map-frame {
        height: 250px;
    }
}