/* MUFEPREC - Contact Page Styles */
/* File Location: css/contact.css */

/* ===== CONTACT HERO SECTION ===== */
.contact-hero {
    background: var(--gradient);
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.05"><polygon points="0,100 1000,0 1000,100"/></svg>');
    background-size: cover;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    line-height: 1.6;
}

.hero-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.method-icon {
    font-size: 2rem;
    color: var(--accent-color);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.method-info p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 120%; /* Increased from 100% */
    max-width: 600px; /* Added max-width for control */
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

/* ===== QUICK CONTACT BAR ===== */
.quick-contact-bar {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.quick-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.quick-contact-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.quick-contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-detail strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.contact-detail span,
.contact-detail a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-detail a:hover {
    color: var(--primary-color);
}

.whatsapp-quick-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.whatsapp-quick-btn:hover {
    background: #128C7E;
    transform: scale(1.05);
}

/* ===== CONTACT FORMS SECTION ===== */
.contact-forms {
    background: var(--secondary-color);
    padding: 6rem 0;
}

.forms-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Form Tabs */
.form-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.form-tab {
    flex: 1;
    padding: 1.5rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: #666;
    font-weight: 500;
}

.form-tab:hover {
    background: rgba(0, 86, 179, 0.05);
    color: var(--primary-color);
}

.form-tab.active {
    background: var(--primary-color);
    color: white;
}

.form-tab i {
    font-size: 1.5rem;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    display: none;
    padding: 3rem;
}

.contact-form-wrapper.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Checkbox Group */
.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Form Actions */
.form-actions {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-note {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* ===== LOCATION SECTION ===== */
.location-section {
    padding: 6rem 0;
    background: white;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.address-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.address-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.address-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.address-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.address-details p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.address-details p:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

.address-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.transport-info,
.landmarks {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.transport-info h4,
.landmarks h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transport-list,
.landmarks-list {
    list-style: none;
}

.transport-list li,
.landmarks-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.transport-list li:last-child,
.landmarks-list li:last-child {
    border-bottom: none;
}

.transport-list li::before {
    content: '🚌';
    position: absolute;
    left: 0;
}

.landmarks-list li::before {
    content: '📍';
    position: absolute;
    left: 0;
}

.transport-list li strong {
    color: var(--primary-color);
}

/* Map Container */
.map-container {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    padding: 3rem;
}

.map-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-content p {
    color: #666;
    margin-bottom: 2rem;
}

/* ===== OFFICE HOURS SECTION ===== */
.office-hours {
    background: var(--secondary-color);
    padding: 6rem 0;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.hours-card,
.contact-methods-card,
.emergency-contact {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hours-header,
.contact-header,
.emergency-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.hours-header i,
.contact-header i,
.emergency-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.hours-header h3,
.contact-header h3,
.emergency-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.day {
    font-weight: 600;
    color: var(--text-color);
}

.time {
    color: var(--success-color);
    font-weight: 500;
}

.time.closed {
    color: #dc3545;
}

.time.catch-up {
    color: var(--accent-color);
}

.hours-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 86, 179, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.hours-note p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.hours-note i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Contact Methods Card */
.contact-methods-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-method-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.contact-method-item .method-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.method-details h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.method-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.method-details a {
    color: var(--text-color);
    text-decoration: none;
}

.method-details a:hover {
    color: var(--primary-color);
}

.method-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-weight: 500;
}

.method-status.available {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.method-status.always {
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
}

.method-status.response {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.whatsapp-link,
.chat-link {
    background: none;
    border: none;
    color: #25D366;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: underline;
}

.whatsapp-link:hover {
    color: #128C7E;
}

.chat-link {
    color: var(--primary-color);
}

.chat-link:hover {
    color: #004494;
}

/* Emergency Contact */
.emergency-content {
    text-align: center;
}

.emergency-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

.emergency-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.emergency-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

/* ===== FAQ SECTION ===== */
.contact-faq {
    padding: 6rem 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.faq-category h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    padding-right: 1rem;
}

.faq-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-toggle:hover {
    background: #004494;
    transform: scale(1.1);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: var(--accent-color);
    color: var(--text-color);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* ===== FINAL CTA SECTION ===== */
.contact-cta {
    background: var(--gradient);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.cta-option {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cta-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.option-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.cta-option h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.cta-option p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.cta-option .btn {
    padding: 0.8rem 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-contacts {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-tabs {
        flex-direction: column;
    }
    
    .form-tab {
        flex-direction: row;
        justify-content: center;
        padding: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .address-actions {
        flex-direction: column;
    }
    
    .emergency-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image img {
        width: 100%; /* Reset to 100% on mobile for better fit */
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 4rem 0 2rem;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .contact-method {
        padding: 1rem;
    }
    
    .method-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-option {
        padding: 1.5rem;
    }
    
    .option-icon {
        font-size: 2.5rem;
    }
    
    .hero-image img {
        width: 100%;
        max-width: 100%;
    }
}

/* ===== ANIMATIONS FOR CONTACT PAGE ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-image {
    animation: slideInRight 1s ease-out 0.2s both;
}

.contact-method {
    animation: slideInLeft 0.6s ease-out;
}

.contact-method:nth-child(2) {
    animation-delay: 0.1s;
}

.contact-method:nth-child(3) {
    animation-delay: 0.2s;
}