/* Contact Page Styles */

/* Ensure header is above content */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
}

/* Top bar styles for contact page */
#header .topBar {
    background-color: var(--primary-color) !important;
    padding: 10px 0;
    margin: 0;
    position: relative;
    z-index: 1001;
    transition: all 0.3s ease;
}

/* Ensure header is solid on contact page */
body.contact-page #header {
    background: var(--primary-color) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

/* Remove any transparency from header on contact page */
body.contact-page #header .header-background {
    display: none !important;
}

/* Ensure logo and navigation are visible */
body.contact-page .logo-title,
body.contact-page .logo-subtitle,
body.contact-page .topBar .contact-info,
body.contact-page .topBar .top-links a {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hover effects for top bar links */
body.contact-page .topBar a:hover {
    color: var(--accent-color) !important;
    text-decoration: none;
}

/* Page Header - Matches Home Page Hero */
.page-header.contact-header {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 150px 0 100px 0;
    margin: 0;
    color: white;
    text-align: center;
    z-index: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/doc_patient.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    margin-top: 0;
    /* Ensure content is below header */
    padding-top: calc(100px + 5vh);
}

.page-header.contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(4px);
    z-index: -1;
    opacity: 0.8;
}

.page-header.contact-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(249, 224, 160, 0.1));
    z-index: -1;
    opacity: 0.9;
}

.page-header.contact-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Bree Serif', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.page-header.contact-header p {
    font-size: 1.35rem;
    max-width: 700px;
    margin: 15px auto 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* Map Section */
.map-section {
    padding: 0 0 20px 0;
    margin-bottom: 0;
    background-color: #ffffff;
}

.map-section .section-header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
}

.map-section .section-header h2 {
    font-size: 2.25rem;
    color: var(--heading-color);
    margin-bottom: 10px;
    font-family: 'Bree Serif', serif;
}

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

.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 0 0 15px 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-address {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 0;
}

.map-address .address-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.map-address .address-item i {
    font-size: 1.5rem;
    color: #ffd700;
}

.map-address .address-item p {
    margin: 0;
    color: #2d2d2d;
    font-size: 1.05rem;
}

.map-address .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background-color: #ffd700;
    color: #2d2d2d;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.map-address .btn:hover {
    background-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-address .btn i {
    font-size: 1.1rem;
}

.map-address .feature-text h4 {
    margin: 0 0 5px 0;
    color: #2d2d2d;
    font-size: 1.1rem;
    font-weight: 600;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: #2d2d2d;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.feature-text p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 989.98px) {
    .map-address {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .address-item {
        justify-content: center;
    }
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Bree Serif', serif;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.breadcrumb-item {
    margin: 0 10px;
    font-size: 1rem;
    color: #2d2d2d;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.breadcrumb-item a {
    color: #2d2d2d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.breadcrumb-item a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Contact Info Section */
.contact-info-section {
    padding: 40px 0 30px 0; /* Reduced top and bottom padding to match border height */
    position: relative;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2d2d2d;
    margin-bottom: 15px;
    font-family: 'Bree Serif', serif;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

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

/* Contact cards */
.contact-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Style for the location card */
.contact-card:first-child .contact-icon {
    background: #f8f9fa;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border: 1px solid #f0f0f0;
}

.contact-card:first-child h3 {
    color: #2d2d2d;
    margin-bottom: 10px;
}

.contact-card:first-child p {
    color: #666;
    margin-bottom: 15px;
}

.contact-card:first-child .btn-link {
    color: var(--accent);
    font-weight: 600;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

/* Hover effect for all cards */
.contact-card:first-child:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: #ffd700;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: #ffd700;
    color: #2d2d2d;
    transform: rotateY(180deg);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d2d2d;
}

.contact-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.contact-card a:hover {
    color: #ffd700;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    color: #ffd700;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-link:hover {
    color: #ffd700;
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    border: none;
}

/* Appointment Section */
.appointment-section {
    padding: 80px 0;
    background: #f5f5dc; /* Powder yellow background */
    position: relative;
    color: #2d2d2d;
}

.appointment-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.appointment-info {
    padding: 50px;
    background: #f5f5dc; /* Powder yellow background */
    color: #2d2d2d;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.appointment-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2d2d2d;
    font-family: 'Bree Serif', serif;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.appointment-info h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 3px;
    background: #ffd700;
}

.appointment-info p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 100%;
}

.appointment-info a {
    color: #2d2d2d;
    text-decoration: underline;
}

.appointment-features {
    margin-top: 40px;
}

.appointment-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.appointment-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffd700);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d2d2d;
}

.required {
    color: #ff4d4f;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    color: #2d2d2d;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23505962' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

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

.button[type="submit"] {
    background: linear-gradient(135deg, var(--accent) 0%, #e8c04d 100%);
    color: #1a1a1a;
    border: none;
    padding: 14px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Bree Serif', serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #d4af37 0%, #e8c04d 100%);
}

button[type="submit"]:hover::before {
    left: 0;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #fff;
}

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

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    background: #fff;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    background: #f9f9f9;
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust based on content */
}

.faq-answer p {
    padding: 0 25px 20px;
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
    margin-top: 40px;
}

.faq-cta a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-cta a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Bree Serif', serif;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-buttons .btn i {
    font-size: 1rem;
}

.cta-buttons .btn-primary {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid #fff;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .appointment-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .appointment-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .appointment-info {
        text-align: center;
    }
    
    .appointment-info h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .appointment-info h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .appointment-info,
    .appointment-form {
        padding: 30px 20px;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 20px 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .appointment-info h2 {
        font-size: 1.8rem;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 15px;
    }
}
