/**
 * ENTROTERRA - Contact Mary Modal
 * Premium glassmorphism contact modal with multiple contact methods
 */

:root {
    --primary-green: #6B9F5C;
    --dark-green: #5a8a4c;
    --gold: #D4AF37;
    --whatsapp-green: #25D366;
}

/* ==========================================
   CONTACT MODAL
   ========================================== */

.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.contact-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.contact-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-modal-overlay.active .contact-modal {
    transform: scale(1);
}

.contact-modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.contact-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-green);
    margin: 0 0 0.5rem 0;
}

.contact-modal-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.contact-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.contact-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}

.contact-modal-body {
    padding: 2rem;
}

/* ==========================================
   CONTACT METHODS
   ========================================== */

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 12px;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.contact-method:hover::before {
    left: 100%;
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(107, 159, 92, 0.2);
    border-color: var(--primary-green);
}

.contact-method-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.contact-method-icon.whatsapp {
    background: linear-gradient(135deg, #25D366, #20BA5A);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.contact-method-icon.phone {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    box-shadow: 0 4px 16px rgba(107, 159, 92, 0.3);
}

.contact-method-icon.email {
    background: linear-gradient(135deg, #4285F4, #34A853);
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.3);
}

.contact-method-icon.instagram {
    background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
    box-shadow: 0 4px 16px rgba(221, 42, 123, 0.3);
}

.contact-method-content {
    flex: 1;
}

.contact-method-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.contact-method-description {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

.contact-method-arrow {
    font-size: 1.25rem;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.contact-method:hover .contact-method-arrow {
    transform: translateX(4px);
}

/* ==========================================
   FLOATING CONTACT BUTTON
   ========================================== */

.floating-contact-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(107, 159, 92, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-float 2s ease-in-out infinite;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(107, 159, 92, 0.5);
}

.floating-contact-btn:active {
    transform: scale(0.95);
}

@keyframes pulse-float {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(107, 159, 92, 0.4);
    }
    50% {
        box-shadow: 0 12px 32px rgba(107, 159, 92, 0.6);
    }
}

/* ==========================================
   CONTACT INFO FOOTER
   ========================================== */

.contact-modal-footer {
    padding: 1.5rem 2rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-hours {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: rgba(107, 159, 92, 0.05);
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.contact-hours i {
    color: var(--primary-green);
}

.contact-note {
    color: #999;
    font-size: 0.75rem;
    margin: 0.5rem 0 0 0;
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 767px) {
    .contact-modal {
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        align-self: flex-end;
    }
    
    .contact-modal-header {
        padding: 1.5rem;
    }
    
    .contact-modal-title {
        font-size: 1.75rem;
    }
    
    .contact-modal-body {
        padding: 1rem;
    }
    
    .contact-method {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .contact-method-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .floating-contact-btn {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.25rem;
    }
}

/* ==========================================
   DARK MODE SUPPORT (Bonus)
   ========================================== */

@media (prefers-color-scheme: dark) {
    .contact-modal {
        background: rgba(30, 30, 30, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .contact-modal-title {
        color: var(--primary-green);
    }
    
    .contact-modal-subtitle {
        color: #ccc;
    }
    
    .contact-method {
        background: rgba(40, 40, 40, 0.9);
    }
    
    .contact-method-title {
        color: #eee;
    }
    
    .contact-method-description {
        color: #aaa;
    }
    
    .contact-modal-close {
        background: rgba(255, 255, 255, 0.1);
        color: #eee;
    }
}
