/* Contact Page Styles */

/* General Section Styles */
.section {
    padding: 5rem 0;
}

.section.alt-bg {
    background-color: #f9f9f9;
}

.section-heading {
    margin-bottom: 3rem;
}

.section-heading.centered {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-heading p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.heading-underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem 0;
}

.section-heading.centered .heading-underline {
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.contact-hero {
    position: relative;
    background: url('../images/contact/contact-hero.jpg') no-repeat center center;
    background-size: cover;
    padding: 10rem 0 12rem;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(var(--primary-color-rgb), 0.7));
    z-index: 1;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
}

.contact-hero p {
    font-size: 1.35rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    opacity: 0.95;
}

.hero-scroll-down {
    position: absolute;
    bottom: -65px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    animation: bounce 2s infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.scroll-down-link i {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Contact Info Section */
.contact-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb), 0.05);
    z-index: 0;
}

.contact-info::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb), 0.05);
    z-index: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.info-card {
    background: #fff;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark-color, #0056b3) 100%);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.info-icon {
    width: 85px;
    height: 85px;
    line-height: 85px;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark-color, #0056b3) 100%);
    color: white;
    border-radius: 50%;
    margin: 0 auto 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
}

.info-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0.5rem;
}

.info-card a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--primary-color);
}

/* Contact Form Section */
.form-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.form-content {
    flex: 1;
    padding: 3rem;
}

.form-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-form {
    margin-top: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
    outline: none;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    position: relative;
    padding-left: 30px;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.checkbox-label:hover input ~ .checkmark {
    background-color: #eee;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    min-height: 20px;
}

.form-submit {
    margin-top: 2rem;
}

.required {
    color: #e74c3c;
}

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

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

/* Form Success Message */
.form-success {
    text-align: center;
    padding: 2rem;
    background: #f8fffe;
    border-radius: 10px;
    border: 1px solid #d4edda;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.form-success h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.form-success p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

/* FAQ Section */
.contact-faq {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    position: relative;
    overflow: hidden;
}

.contact-faq::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb), 0.05);
    z-index: 0;
}

.faq-accordion {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-item {
    margin-bottom: 1.2rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.7rem;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.faq-toggle {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    background: var(--primary-color);
    color: white;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
}

.faq-toggle {
    color: var(--primary-color);
    font-size: 1rem;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.faq-answer p {
    padding: 0 0 1.5rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

/* Enhanced Form Styling */
.contact-form-section {
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb), 0.03);
    z-index: 0;
}

.form-container {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 4rem;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.form-content {
    flex: 1;
    padding: 3.5rem;
}

.form-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.1);
    outline: none;
    background-color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark-color, #0056b3) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark-color, #0056b3) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
}

/* Connect Section */
.connect-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark-color, #0056b3) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.connect-section::before,
.connect-section::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.connect-section::before {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -100px;
}

.connect-section::after {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -50px;
}

.connect-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.connect-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.connect-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
}

.social-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.4s ease;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-icon:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.connect-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark-color, #0056b3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .form-container {
        flex-direction: column;
    }
    
    .form-image {
        max-width: 100%;
        order: -1;
    }
    
    .form-image img {
        max-height: 300px;
        object-fit: cover;
        width: 100%;
    }
    
    .contact-hero h1 {
        font-size: 2.8rem;
    }
    
    .section-heading h2,
    .connect-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }
    
    .contact-hero {
        padding: 6rem 0;
    }
    
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-hero p {
        font-size: 1.1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .form-content {
        padding: 2.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    
    .info-card {
        padding: 2.5rem;
    }
    
    .social-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .connect-content h2 {
        font-size: 2.2rem;
    }
    
    .connect-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-hero {
        padding: 4rem 0;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .form-content {
        padding: 1.5rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .section-heading h2,
    .connect-content h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .map-section {
        height: 350px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 1.2rem;
    }
    
    .btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
    }
}
