@import url('style.css');

/* Contact Hero Section */
.contact-hero {
    padding: 140px 0 80px;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.contact-hero-image {
    position: relative;
    display: inline-block;
}

.contact-hero-image img {
    max-height: 500px;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255,255,255,0.5);
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
    transition: all 0.5s ease;
}

.contact-hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Contact Methods Cards */
.contact-method-card {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    background: white;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.5);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon), var(--gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-method-card:hover::before {
    transform: scaleX(1);
}

.contact-method-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255,255,255,0.5);
}

.contact-method-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(245, 176, 65, 0.1) 0%, rgba(107, 29, 29, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.contact-method-card:hover .contact-method-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--gold), var(--maroon));
}

.contact-method-icon i {
    font-size: 2rem;
    color: var(--gold);
    transition: all 0.4s ease;
}

.contact-method-card:hover .contact-method-icon i {
    color: white;
}

.contact-info h5 {
    margin-bottom: 0.5rem;
}

/* Contact Form Container */
.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-form .form-label {
    font-weight: 500;
    color: var(--maroon);
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(245, 176, 65, 0.25);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-check-input:checked {
    background-color: var(--gold);
    border-color: var(--gold);
}

.contact-form .form-check-label {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Info Sidebar */
.contact-info-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    height: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(245, 176, 65, 0.05);
    transform: translateX(5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(245, 176, 65, 0.1) 0%, rgba(107, 29, 29, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.2rem;
    color: var(--gold);
}

.info-content h5 {
    margin-bottom: 0.5rem;
}

.info-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.emergency-contact {
    background: linear-gradient(135deg, rgba(245, 176, 65, 0.1) 0%, rgba(107, 29, 29, 0.05) 100%);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.emergency-icon {
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.emergency-icon i {
    font-size: 1.5rem;
    color: white;
}

.emergency-content h5 {
    color: var(--maroon) !important;
    margin-bottom: 0.5rem;
}

.emergency-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* FAQ Section */
.accordion-item {
    border: 2px solid #e9ecef;
    border-radius: 10px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: white;
    color: var(--maroon);
    font-weight: 500;
    padding: 1.25rem;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(245, 176, 65, 0.1) 0%, rgba(107, 29, 29, 0.05) 100%);
    color: var(--maroon);
    border-bottom: 2px solid var(--gold);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b1d1d'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f5b041'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.25rem;
    background: white;
    line-height: 1.6;
}

/* Map Section */
.map-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.map-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 4rem 2rem;
    border: 2px dashed #dee2e6;
}

.map-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.map-content h4 {
    margin-bottom: 0.5rem;
}

/* Quick Contact Section */
.quick-contact {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--dark-maroon) 100%) !important;
    position: relative;
    overflow: hidden;
}

.quick-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 176, 65, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.quick-contact .container {
    position: relative;
    z-index: 2;
}

.quick-contact-buttons .btn {
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.quick-contact-buttons .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.3);
}

.quick-contact-buttons .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 176, 65, 0.4);
}

.quick-contact-buttons .btn-outline-light:hover {
    background: white;
    color: var(--maroon);
    transform: translateY(-2px);
}

/* Form Success States */
.form-success {
    border-color: #28a745 !important;
}

.form-error {
    border-color: #dc3545 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .quick-contact-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .quick-contact-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .map-container {
        padding: 2rem 1rem;
    }
    
    .map-placeholder {
        padding: 3rem 1rem;
    }
}

/* Contact Information Mobile Fixes - KEEP ICONS AND CONTENT IN SAME ROW */
@media (max-width: 768px) {
    .contact-info-sidebar {
        text-align: left;
        padding: 1.5rem;
    }
    
    .info-item {
        flex-direction: row;
        text-align: left;
        padding: 1rem 0.5rem;
        align-items: flex-start;
    }
    
    .info-icon {
        margin-right: 1rem;
        margin-bottom: 0;
        width: 45px;
        height: 45px;
    }
    
    .info-icon i {
        font-size: 1.1rem;
    }
    
    .info-content h5 {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
    
    .info-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .emergency-contact {
        padding: 1.5rem 1rem;
        text-align: center;
    }
    
    .emergency-content h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .info-item {
        padding: 0.75rem 0.25rem;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .info-icon i {
        font-size: 1rem;
    }
    
    .info-content p {
        font-size: 0.8rem;
    }
    
    .emergency-contact {
        padding: 1.25rem 0.75rem;
    }
    
    .emergency-icon {
        width: 50px;
        height: 50px;
    }
    
    .emergency-icon i {
        font-size: 1.25rem;
    }
}

/* Ensure proper spacing on mobile */
@media (max-width: 768px) {
    .contact-info-sidebar {
        margin-top: 2rem;
    }
}

/* Contact Hero Section Mobile Fixes */
@media (max-width: 768px) {
    .contact-hero {
        text-align: center;
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .contact-hero-image {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 2rem;
    }
    
    .contact-hero-image img {
        transform: none;
        margin: 0 auto;
    }
    
    .floating-badge {
        position: relative;
        margin-top: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
        text-align: center;
    }
    
    .stat-item {
        flex: 0 0 auto;
    }
}

@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .floating-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        display: inline-block;
    }
}

/* Animation Enhancements */
.contact-method-card,
.info-item,
.accordion-item,
.map-container {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.contact-method-card.animated,
.info-item.animated,
.accordion-item.animated,
.map-container.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for emergency contact */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 176, 65, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 176, 65, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 176, 65, 0);
    }
}

.emergency-contact.pulse {
    animation: pulse 2s infinite;
}