/*
 * Modern Contact Page Styling
 * Othala Solutions v2
 */

/* Contact Hero Section */
.contact-hero-modern {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f6 100%);
    text-align: center;
}

.contact-hero-modern h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.contact-hero-modern p {
    font-size: 1.15rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Grid Section */
.contact-grid-modern {
    padding: 6rem 0;
}

.contact-grid-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}

/* Contact Info Block */
.contact-info-block h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.contact-info-block p {
    font-size: 1.05rem;
    color: #64748b;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-details-list .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-details-list .icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 1.25rem;
    margin-right: 1.5rem;
}

.contact-details-list h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.contact-details-list p,
.contact-details-list a {
    font-size: 1rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details-list a:hover {
    color: var(--color-primary);
}

/* Contact Form Block */
.contact-form-block {
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

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

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

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-messages .success-message,
.form-messages .error-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.form-messages .success-message {
    background-color: #dcfce7;
    color: #166534;
}

.form-messages .error-message {
    background-color: #fee2e2;
    color: #991b1b;
}

.calendly-cta {
    margin-top: 2.5rem;
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.calendly-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background-color: var(--color-secondary);
    color: white;
    border-radius: 50%;
    font-size: 1.75rem;
}

.calendly-content {
    flex-grow: 1;
}

.calendly-cta h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.calendly-cta p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.calendly-action .btn {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .calendly-cta {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .calendly-action {
        width: 100%;
    }
    .calendly-action .btn {
        width: 100%;
    }
}

/* Map Section */
.map-section-modern {
    padding: 6rem 0;
    background-color: #f8fafc;
}

.map-section-modern iframe {
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* FAQ Section */
.faq-modern {
    padding: 6rem 0;
    background-color: #f8fafc;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-modern .subheading {
    display: inline-block;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-header-modern h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.section-header-modern p {
    font-size: 1.1rem;
    color: #64748b;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
}

.faq-toggle {
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: #475569;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

@media (max-width: 992px) {
    .contact-grid-container {
        grid-template-columns: 1fr;
    }
    .contact-form-block {
        margin-top: 4rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-group {
        margin-bottom: 1.5rem;
    }
    .form-row .form-group:last-child {
        margin-bottom: 0;
    }
}
