/* 
 * Contact Page Stylesheet
 * Maintains consistent styling with the LoanBazzar theme
 */

/* Contact Page Header - Adopting About Page Style */
.page-header {
    background-color: var(--light-gray);
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header .page-title {
    font-size: 2.8rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header .page-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section Layout - Adopting About Page Style */
.section {
    padding: 80px 0;
}

.section.bg-light {
    background-color: var(--light-gray);
}

.contact-section {
    position: relative;
    background-color: #f9fafb;
    overflow: hidden;
}

.contact-bg-element {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(249, 115, 22, 0.05) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.contact-content {
    position: relative;
    z-index: 1;
    margin-top: 50px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Section Headers - Adopting About Page Style */
.section-header {
    margin-bottom: 50px;
    position: relative;
}

.section-tagline {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-divider {
    height: 3px;
    width: 60px;
    background: var(--primary-blue);
    margin: 0 auto 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Form Styles */
.contact-form-container {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-container h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: var(--heading-font);
}

.form-intro {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
    border-color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-check {
    display: flex;
    align-items: flex-start;
}

.form-check-input {
    width: auto !important;
    margin-right: 10px;
    margin-top: 3px;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-check-label a {
    color: var(--primary-blue);
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

.contact-form .btn {
    padding: 14px 30px;
    border: none;
    border-radius: 30px;
    background-color: var(--secondary-orange);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 122, 0, 0.2);
}

.contact-form .btn:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 122, 0, 0.3);
}

/* New Contact Box Style */
.contact-box {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.contact-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.contact-box h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    position: relative;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(30, 58, 138, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

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

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

.contact-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-media {
    margin-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 20px;
}

.social-media h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}

/* Keep commented out for reference */
/*
.contact-info-panel {
    background-color: var(--primary-blue);
    border-radius: 12px;
    padding: 40px 30px;
    color: white;
    height: 100%;
    box-shadow: 0 15px 30px rgba(30, 64, 175, 0.2);
    position: relative;
    overflow: hidden;
}
*/

/* Map Section - Adopting About Page Style */
.map-section {
    position: relative;
    background-color: var(--light-gray);
}

.map-section .section-header {
    margin-bottom: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    position: relative;
}

/* CTA Section - Adopting About Page Style */
.cta-section {
    padding: 60px 0;
}

.cta-box {
    background: var(--primary-blue);
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

.cta-box h2 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 2.2rem;
    font-weight: 700;
}

.cta-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.explore-btn {
    font-size: 1.05rem;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.2);
    transition: all 0.3s ease;
    background-color: var(--secondary-orange);
    color: var(--white);
    border: none;
    text-decoration: none;
    display: inline-block;
}

.explore-btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
}

.explore-btn:hover i {
    transform: translateX(3px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .map-section,
    .contact-cta {
        padding: 50px 0;
    }
    
    .contact-cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 30px 20px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .info-cards {
        gap: 20px;
    }
}
