.contact-section {
    /* background: linear-gradient(180deg, var(--color-light-blue), var(--color-median-blue));     */
    border-top: 0.8rem solid var(--color-terracotta);
    background-color: var(--color-fondo);
    padding: 2rem 0 2rem 0;
    color: white;
}

/* .contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, var(--color-fondo), rgba(255, 255, 255, 0));
    pointer-events: none;
} */

.contact-section h2 {
    color: var(--color-dark-blue);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.contact-section .lead {
    color: var(--color-terracotta);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0px;
    text-transform: uppercase;
}

.contact-section .btn-primary {
    background-color: var(--color-terracotta);
    border-color: var(--color-terracotta);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
}

.contact-section .btn-primary:hover {
    background-color: var(--color-deep-rose);
    border-color: var(--color-deep-rose);
    transform: translateY(-2px);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Form Controls */
.contact-form .form-floating > .form-control,
.contact-form .form-floating > .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.contact-form .form-floating > .form-control:focus,
.contact-form .form-floating > .form-select:focus {
    border-color: var(--color-light-blue);
    box-shadow: 0 0 0 0.2rem rgba(29, 45, 131, 0.25);
}

/* Form Labels */
.contact-form .form-floating > label {
    color: #6c757d;
    font-weight: 500;
    padding: 0 8px;
}

.contact-form .form-floating > .form-control:focus ~ label,
.contact-form .form-floating > .form-control:not(:placeholder-shown) ~ label,
.contact-form .form-floating > .form-select:focus ~ label,
.contact-form .form-floating > .form-select:not([value=""]) ~ label {
    color: var(--color-light-blue);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Form Text and Help */
.contact-form .form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 6px;
}

/* Checkboxes */
.contact-form .form-check {
    margin-bottom: 0;
}

.contact-form .form-check-input {
    border: 2px solid #dee2e6;
    border-radius: 4px;
}

.contact-form .form-check-input:checked {
    background-color: var(--color-light-blue);
    border-color: var(--color-light-blue);
}

.contact-form .form-check-label {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-form .form-check-label a {
    color: var(--color-light-blue);
}

.contact-form .form-check-label a:hover {
    color: var(--color-median-blue);
}

/* Submit Button */
.contact-submit-btn {
    background: linear-gradient(135deg, var(--color-light-blue), var(--color-median-blue));
    border: none;
    border-radius: 25px;
    padding: 14px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 200px;
    transition: all 0.3s ease;
    color: white;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, var(--color-median-blue), var(--color-dark-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 45, 131, 0.3);
}

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

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Outline Button (Email Fallback) */
.btn-outline-primary {
    border: 2px solid var(--color-light-blue);
    color: var(--color-light-blue);
    border-radius: 25px;
    padding: 14px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--color-light-blue);
    border-color: var(--color-light-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 45, 131, 0.2);
}

/* Form Messages */
.form-message .alert {
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

.form-message .alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.form-message .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.form-message .alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Contact Info Cards */
.contact-info-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* border: 1px solid rgba(185, 102, 57, 0.3); */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%; 
    background: linear-gradient(135deg, var(--color-light-blue), var(--color-median-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-icon-wrapper i {
    color: white;
    font-size: 1.5rem;
}

.contact-info-card h5 {
    color: var(--color-dark-blue);
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-info-card p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Form Validation States */
.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form .form-control.is-valid,
.contact-form .form-select.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.contact-form .invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.contact-form .valid-feedback {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .contact-submit-btn, 
    .btn-outline-primary {
        width: 100%;
        margin: 5px 0;
    }

    .contact-info-card {
        margin-bottom: 20px;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .contact-form-wrapper {
        padding: 20px 15px;
    }

    .contact-form .form-floating > .form-control,
    .contact-form .form-floating > .form-select {
        font-size: 0.9rem;
    }

    .contact-submit-btn {
        padding: 12px 30px;
        font-size: 1rem;
        min-width: 180px;
    }

    .btn-outline-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .contact-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .contact-icon-wrapper i {
        font-size: 1.3rem;
    }
}

/* Small mobile phones */
@media (max-width: 320px) {
    .contact-form-wrapper {
        padding: 15px 10px;
    }

    .contact-submit-btn,
    .btn-outline-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 160px;
    }
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: whatsappPulse 2s infinite;
    backdrop-filter: blur(10px);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    z-index: -1;
    transition: all 0.3s ease;
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(18, 140, 126, 0.2));
    z-index: -2;
    opacity: 0;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.whatsapp-float:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

.whatsapp-float:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.whatsapp-float i {
    font-size: 28px;
    line-height: 1;
    transition: all 0.3s ease;
}

.whatsapp-float:hover i {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* WhatsApp floating button animations */
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
}

@keyframes whatsappBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* WhatsApp notification badge (optional) */
.whatsapp-float .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Hide WhatsApp button when scheduler modal is open */
.modal-backdrop ~ .whatsapp-float {
    opacity: 0.3;
    pointer-events: none;
}

/* WhatsApp responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 15px;
        left: 15px;
    }
    
    .whatsapp-float i {
        font-size: 22px;
    }
}

/* WhatsApp tooltip  */
.whatsapp-float .tooltip-text {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float .tooltip-text::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.whatsapp-float:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

@media (max-width: 768px) {
    .whatsapp-float .tooltip-text {
        display: none;
    }
}
