/* ========================================
   CONTACT PAGE STYLES - ALL HOMES PH
   ======================================== */

.contact-hero {
    background: linear-gradient(135deg, #0B1D3A 0%, #2C0F2F 50%, #5C0A0A 100%);
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(11, 29, 58, 0.3);
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(238, 186, 43, 0.08) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.contact-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.contact-hero p {
    font-size: 1.1rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* Contact Info Cards */
.contact-info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0B1D3A 0%, #2C0F2F 50%, #5C0A0A 100%);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: rgba(11, 29, 58, 0.15);
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0B1D3A 0%, #2C0F2F 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 3px 12px rgba(11, 29, 58, 0.2);
    position: relative;
}

.contact-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(238, 186, 43, 0.3) 0%, transparent 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info-card:hover .contact-icon-wrapper::after {
    opacity: 1;
}

.contact-icon-wrapper i {
    font-size: 1.3rem;
    color: white;
    position: relative;
    z-index: 1;
}

.contact-info-card h5 {
    color: #0B1D3A;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 3px 20px rgba(0,0,0,0.06);
    border: 2px solid #f8f9fa;
}

.contact-form-card h4 {
    color: #0B1D3A;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.contact-form-card .form-label {
    color: #0B1D3A;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form-card .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.contact-form-card .form-control:focus {
    border-color: #0B1D3A;
    box-shadow: 0 0 0 0.2rem rgba(11, 29, 58, 0.1);
}

.btn-send {
    background: linear-gradient(135deg, #0B1D3A 0%, #2C0F2F 100%);
    border: none;
    color: white;
    padding: 0.85rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(11, 29, 58, 0.3);
    position: relative;
    overflow: hidden;
}

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

.btn-send:hover::before {
    left: 100%;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(11, 29, 58, 0.4);
    background: linear-gradient(135deg, #2C0F2F 0%, #5C0A0A 100%);
    color: white;
}

/* Agent Card */
.agent-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(11, 29, 58, 0.12);
    height: 100%;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.agent-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #0B1D3A, #2C0F2F, #5C0A0A);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.agent-card:hover::before {
    opacity: 1;
}

.agent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(11, 29, 58, 0.2);
}

.agent-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #0B1D3A, #2C0F2F, #5C0A0A) border-box;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    box-shadow: 0 5px 20px rgba(11, 29, 58, 0.2);
    transition: all 0.4s ease;
}

.agent-card:hover .agent-avatar {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(11, 29, 58, 0.3);
}

.agent-card h5 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0B1D3A;
    transition: all 0.3s ease;
}

.agent-card:hover h5 {
    background: linear-gradient(135deg, #0B1D3A, #2C0F2F, #5C0A0A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agent-card .position {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.agent-card .agent-message {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-style: italic;
}

/* Social Links */
.social-links-contact {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link-contact {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B1D3A;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.social-link-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0B1D3A, #2C0F2F, #5C0A0A);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 10px;
}

.social-link-contact i {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.social-link-contact:hover::before {
    opacity: 1;
}

.social-link-contact:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(11, 29, 58, 0.25);
    border-color: transparent;
}

.social-link-contact:hover i {
    color: white;
    transform: scale(1.1);
}

/* Map Section */
.map-section {
    margin-top: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #0B1D3A 0%, #2C0F2F 50%, #5C0A0A 100%) border-box;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero {
        padding: 2.5rem 1.5rem;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .agent-card {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .map-section iframe {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .contact-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon-wrapper i {
        font-size: 1.1rem;
    }
    
    .agent-avatar {
        width: 80px;
        height: 80px;
    }
    
    .social-link-contact {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}
