/* Contact Page Specific Styles */

/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(rgba(22, 106, 234, 0.9), rgba(13, 79, 156, 0.9)), 
                url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    text-align: center;
    padding: 80px 0;
    margin-bottom: 60px;
}

.contact-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Contact Container */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 80px;
}

/* Contact Info Section */
.contact-info {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.contact-info h3 {
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item i {
    background: var(--gradient-primary);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.contact-form h3 {
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

/* Contact Info Card - Matching Contact Form Size */
.contact-info-matched {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-light);
    overflow: hidden;
    height: fit-content;
    width: 100%;
}

/* Header - Matching Contact Form Header */
.contact-header-matched {
    background: var(--gradient-primary);
    padding: 30px;
    position: relative;
}

.contact-header-matched h3 {
    color: var(--text-white);
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-right: 45px; /* Space for toggle */
}

/* Mobile Toggle */
.mobile-collapse-toggle-matched {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: absolute;
    right: 25px;
    top: 25px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-collapse-toggle-matched:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Content Area - Matching Contact Form Padding */
.contact-content-matched {
    padding: 30px;
    max-height: 600px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Contact Items - Similar spacing to form fields */
.contact-item-matched {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.contact-item-matched:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item-matched i {
    background: var(--gradient-primary);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 0px;
}

.contact-details h4 {
    color: var(--text-color);
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-light);
    margin: 0 0 5px 0;
    font-size: 16px;
    line-height: 1.5;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Subitems (for branch offices) */
.contact-subitem {
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.5;
}

.contact-subitem:last-child {
    margin-bottom: 0;
}

.contact-subitem strong {
    color: var(--text-color);
    display: inline-block;
    min-width: 70px;
}

/* Desktop - Always visible, matching form size */
@media (min-width: 769px) {
    .contact-info-matched {
        max-width: 100%;
        min-height: 600px; /* Match form height */
    }
    
    .contact-content-matched {
        display: block !important;
    }
    
    /* Make both cards equal height in grid */
    .contact-form, .contact-info-matched {
        height: auto;
        min-height: 600px;
    }
}

/* Mobile - Collapsible */
@media (max-width: 768px) {
    .contact-info-matched {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .mobile-collapse-toggle-matched {
        display: flex;
    }
    
    .contact-header-matched {
        padding: 20px;
    }
    
    .contact-header-matched h3 {
        font-size: 24px;
        padding-right: 50px;
        padding-bottom: 20px;
        cursor: pointer;
    }
    
    .contact-content-matched {
        padding: 20px;
        max-height: 900px;
    }
    
    .contact-info-matched.collapsed .contact-content-matched {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
    }
    
    .mobile-collapse-toggle-matched i {
        font-size: 16px;
        transition: transform 0.3s ease;
    }
    
    .contact-info-matched.collapsed .mobile-collapse-toggle-matched i {
        transform: rotate(-180deg);
    }
    
    /* Adjust for mobile */
    .contact-item-matched {
        gap: 0px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .contact-item-matched i {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .contact-details h4 {
        font-size: 16px;
    }
    
    .contact-details p,
    .contact-subitem {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contact-header-matched {
        padding: 15px;
    }
    
    .contact-header-matched h3 {
        font-size: 22px;
        padding-right: 40px;
    }
    
    .mobile-collapse-toggle-matched {
        width: 32px;
        height: 32px;
        right: 15px;
        top: 15px;
    }
    
    .contact-content-matched {
        padding: 15px;
    }
    
    .contact-item-matched {
        flex-direction: column;
        gap: 0px;
        text-align: center;
    }
    
    .contact-item-matched i {
        margin: 0 auto;
    }
    
    .contact-details {
        width: 100%;
    }
    
    .contact-subitem {
        text-align: left;
        margin-bottom: 8px;
    }
    
    .contact-subitem strong {
        min-width: 60px;
    }
}

/* Form Styling */
.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #fafafa;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(22, 106, 234, 0.1);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

/* Form Button */
.btn-submit {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    position: relative;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 106, 234, 0.3);
}

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

.btn-text {
    display: block;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-loader i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Message */
.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

.form-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e9ecef 100%);
    padding: 60px 0;
    margin-bottom: 80px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.faq-item {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-light);
}

.faq-item h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

.faq-item p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 36px;
    }
    
    .contact-hero p {
        font-size: 18px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* NOTE: .social-links already defined in main.css */
    
    .map-section {
        margin: 50px 0;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 60px 0;
    }
    
    .contact-hero h1 {
        font-size: 30px;
    }
    
    .contact-info h3,
    .contact-form h3 {
        font-size: 24px;
    }
    
    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .btn-submit {
        padding: 14px 20px;
        font-size: 16px;
    }
}