/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/services-bg.jpg') no-repeat center center/cover;
    height: 300px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Services Overview */
.services-overview {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-intro h2 {
    position: relative;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: #2d3436;
}

.section-intro h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #4a6fa5;
}

.section-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* Tabs */
.services-tabs {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    background-color: #f5f7fa;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #4a6fa5;
    background-color: rgba(74, 111, 165, 0.1);
}

.tab-btn.active {
    color: #4a6fa5;
    background-color: #fff;
}

.tab-btn.active::after {
    background-color: #4a6fa5;
}

.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
    padding: 0;
    animation: fadeIn 0.5s ease;
}

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

.tab-pane.active {
    display: block;
}

/* Service Details */
.service-details {
    display: flex;
    flex-wrap: wrap;
}

.service-image {
    flex: 1;
    min-width: 300px;
    height: 400px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-details:hover .service-image img {
    transform: scale(1.05);
}

.service-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.service-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2d3436;
}

.service-info > p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

.service-features {
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature:hover {
    background-color: #f5f9ff;
    transform: translateX(5px);
}

.feature i {
    font-size: 1.5rem;
    color: #4a6fa5;
    margin-right: 15px;
    margin-top: 5px;
    min-width: 30px;
    text-align: center;
}

.feature h4 {
    margin: 0 0 5px;
    color: #2d3436;
    font-size: 1.1rem;
}

.feature p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Emergency Info */
.emergency-info {
    background-color: #fff8f8;
    border-left: 4px solid #ff6b6b;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 5px 5px 0;
}

.emergency-contact {
    margin-bottom: 20px;
}

.emergency-contact h4 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.emergency-contact p {
    margin: 5px 0;
    color: #555;
    display: flex;
    align-items: center;
}

.emergency-contact i {
    margin-right: 10px;
    color: #ff6b6b;
    width: 20px;
    text-align: center;
}

.emergency-signs h4 {
    color: #2d3436;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.emergency-signs ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.emergency-signs li {
    padding: 5px 0 5px 25px;
    position: relative;
    color: #555;
    line-height: 1.5;
}

.emergency-signs li::before {
    content: '•';
    color: #ff6b6b;
    font-weight: bold;
    position: absolute;
    left: 10px;
}

.emergency-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.emergency-actions .btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
    background-color: #fff;
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #2d3436;
    position: relative;
}

.why-choose-us h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #4a6fa5;
}

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

.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #4a6fa5;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(74, 111, 165, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: #4a6fa5;
    transform: rotate(360deg);
}

.feature-icon i {
    font-size: 2rem;
    color: #4a6fa5;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    color: #fff;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2d3436;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Appointment Section */
.appointment-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.appointment-container {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.appointment-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: linear-gradient(135deg, #4a6fa5, #6c5ce7);
    color: #fff;
}

.appointment-info h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

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

.appointment-info p {
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
}

.contact-info {
    margin-top: 40px;
}

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

.contact-item i {
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
    color: #fff;
    opacity: 0.9;
}

.contact-item h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: #fff;
}

.contact-item p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.appointment-form {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: #fff;
}

.appointment-form h3 {
    font-size: 1.6rem;
    margin-bottom: 22px;
    color: #2d3436;
    text-align: left;
    padding-bottom: 0;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #444;
    font-size: 0.92rem;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.3;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.16);
    outline: none;
}

.appointment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4a6fa5;
    color: #fff;
}

.btn-primary:hover {
    background-color: #3a5a80;
    transform: translateY(-2px);
}

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

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #2d3436;
    position: relative;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #4a6fa5;
}

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

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:not(:last-child) {
    margin-bottom: 20px;
}

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

.faq-question:hover {
    background: #f0f4f9;
    color: #4a6fa5;
}

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

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

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

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

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

.faq-contact {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1rem;
    color: #555;
}

.faq-contact a {
    color: #4a6fa5;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-contact a:hover {
    color: #3a5a80;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .service-details {
        flex-direction: column;
    }
    
    .service-image {
        height: 300px;
    }
    
    .appointment-container {
        flex-direction: column;
    }
    
    .appointment-info, .appointment-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .tab-btn::after {
        display: none;
    }
    
    .tab-btn.active {
        border-left: 4px solid #4a6fa5;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 20px;
    }
    
    .emergency-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-intro h2, .why-choose-us h2, .faq-section h2 {
        font-size: 1.8rem;
    }
    
    .service-info, .appointment-info, .appointment-form {
        padding: 25px 20px;
    }

    .service-image,
    .service-info,
    .appointment-info,
    .appointment-form {
        min-width: 0;
        width: 100%;
    }

    .service-details {
        gap: 0;
    }

    .contact-item {
        gap: 10px;
    }

    .contact-item p {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
}
