/* 
   CSS for D.A.E. Classes Contact Page
*/

/* Banner Section */
.contact-banner {
    background-image: url('../images/contact/banner.jpeg');
    background-size: cover;
    background-position: center;
}

/* Contact Info Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(93, 47, 142, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon i {
    font-size: 28px;
    color: #5D2F8E;
}

.contact-card h3 {
    color: #5D2F8E;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-card p {
    color: #2C3E50;
    margin-bottom: 15px;
}

.contact-card a {
    color: #5D2F8E;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-card a:hover {
    color: #2ECC71;
}

/* Contact Form Section */
.contact-flex {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.contact-form-container {
    flex: 6;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    color: #5D2F8E;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.form-header p {
    color: #2C3E50;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2C3E50;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #5D2F8E;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
}

.form-checkbox input {
    width: auto;
    margin-top: 5px;
    margin-right: 10px;
}

.form-checkbox label {
    font-weight: normal;
    font-size: 0.9rem;
}

.submit-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
}

/* Form validation styles */
.contact-form input.invalid,
.contact-form select.invalid,
.contact-form textarea.invalid {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
}

.success-message {
    color: #2ECC71;
    background-color: rgba(46, 204, 113, 0.1);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
}

/* FAQ Section */
.contact-faq-container {
    flex: 4;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.faq-header {
    margin-bottom: 30px;
}

.faq-header h2 {
    color: #5D2F8E;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2C3E50;
    transition: color 0.3s ease;
}

.faq-question:hover h3 {
    color: #5D2F8E;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-toggle i {
    font-size: 12px;
    color: #5D2F8E;
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    background-color: #5D2F8E;
}

.faq-item.active .faq-toggle i {
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 15px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: #2C3E50;
    line-height: 1.7;
}

/* Book a Demo CTA section */
.demo-cta-section {
    background-color: #5D2F8E;
    color: white;
    padding: 60px 0;
}

.demo-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-cta-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.demo-cta-content p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.demo-cta-buttons {
    display: flex;
    gap: 15px;
}

.demo-cta-buttons .btn {
    min-width: 140px;
}

.demo-cta-buttons .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.demo-cta-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Centers Map Tabs */
.centers-tabs {
    margin-top: 40px;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    padding: 15px 30px;
    background-color: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #2C3E50;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #5D2F8E;
    transition: width 0.3s ease;
}

.tab-btn:hover {
    color: #5D2F8E;
}

.tab-btn.active {
    color: #5D2F8E;
}

.tab-btn.active:after {
    width: 100%;
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tab-pane .map-container {
    flex: 7;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tab-pane .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.center-contact-info {
    flex: 3;
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.center-contact-info h3 {
    color: #5D2F8E;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.center-contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #2C3E50;
}

.center-contact-info i {
    color: #5D2F8E;
    margin-right: 10px;
    min-width: 16px;
    padding-top: 3px;
}

.center-contact-info a.btn {
    margin-top: 10px;
    display: inline-block;
}

/* Animation for Contact Elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .contact-flex {
        flex-direction: column;
    }
    
    .contact-form-container,
    .contact-faq-container {
        width: 100%;
    }
    
    .demo-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .demo-cta-content {
        margin-bottom: 20px;
    }
    
    .tab-pane.active {
        flex-direction: column;
    }
    
    .tab-pane .map-container {
        height: 300px;
    }
    
    .center-contact-info {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-form-container,
    .contact-faq-container {
        padding: 25px;
    }
    
    .tabs-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    
    .tab-btn {
        padding: 12px 20px;
    }
    
    .demo-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .demo-cta-buttons .btn {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .contact-card {
        padding: 20px 15px;
    }
    
    .contact-form-container,
    .contact-faq-container {
        padding: 20px 15px;
    }
    
    .form-header h2,
    .faq-header h2 {
        font-size: 1.5rem;
    }
}