#landing-section {
    padding-top: 14%;
    padding-bottom: 5%;
}

.appointment-form {
    position: relative;
    margin: 40px auto 0;
    border-radius: 10px;
    width: 80vw; 
    padding: 12px 30px;
    gap: 6px;
    flex-direction: column;
    background-color: #fcecdf;
    border: 2px solid #fcecdf;
    transition: width 0.3s ease-in-out;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#toggle-form-btn {
    margin-top: 5%;
    font-family: 'InstrumentSans', Arial, Helvetica, sans-serif;
    line-height: 1;
    font-size: 1.25rem;
    background-color: #fcecdf;
    color: #912933;
    width: 15vw;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#close-form-btn {
    background: #eda325;
    border: none;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #751e28;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.1s ease-in-out, transform 0.2s ease-in-out;
}

#close-form-btn:hover {
    background: #d58c1f;
    transform: scale(1.1);
}

.appointment-form.expanded #close-form-btn {
    opacity: 1;
}

.appointment-form.expanded {
    width: 60vw; 
    padding: 12px 30px;
    gap: 6px;
    background-color: #fcecdf;
    border: 2px solid #fcecdf;
}

#full-form {
    opacity: 1;
    max-height: none;
    overflow: visible;
}

#full-form.show {
    opacity: 1;
    max-height: 500px;
}

.appointment-form p, label {
    color: #912933;
}

#form-title {
    padding-bottom: 1%;
}
.form-fl {
    margin-bottom: 5px;
}

.form-fl, .form-sl {
    display: flex;
    gap: 10px;
}

select, input, button {
    width: 100%;
    padding: 6px;
    border: 1px solid #912933;
    border-radius: 5px;
    font-size: 0.9rem;
    
}

button {
    background-color: #912933;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #751e28;
}

.services-slider-wrapper {
    width: 80%;
    overflow: hidden;
    position: relative;
    margin: auto;
}

.services-list {
    display: flex;
    text-align: center;
    transition: transform 0.5s ease-in-out;
    gap: 20px; 
}

.service-item {
    flex: 0 0 calc(100% / 3 - 20px); 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

.service-item img {
    width: 200px;
    height: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    transition: filter 0.1s ease-in-out, transform 0.2s ease-in-out;
}

.service-item img:hover {
    filter: brightness(80%);
    transform: translateY(-10px);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    margin: 5px;
    border-radius: 50%;
    background: gray;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.dot.active {
    background: #912933;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 5/4;
    object-fit: cover;
    transition: color 0.1s ease-in-out, transform 0.2s ease-in-out;
}

.about-image img:hover {
    transform: translateY(-10px);
}

.about-text {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    max-width: 50%;
}

.about-text p{
    text-align: justify;
}

.updates-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    width: 90%;
}

.update-item {
    width: 350px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    border: 1px solid #ddd;
    transition: color 0.1s ease-in-out, transform 0.2s ease-in-out;
}

.update-item:hover {
    transform: translateY(-10px);
}

.update-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: bold;
    font-size: 14px;
}

.location {
    font-size: 12px;
    color: #777;
}

.update-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    object-fit: cover;
    margin: 5px 0;
}

.update-content {
    font-size: 14px;
    text-align: left;
    padding: 5px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.update-content p {
    margin: 0;
    line-height: 1.4;
    flex-grow: 1; 
    font-size: 1rem;
}

.timestamp {
    font-size: 12px;
    color: #777;
    display: block;
    margin-top: auto; 
}

#google-map {
    width: 100vw;
    padding: 0;
    margin: 0;
    text-align: center;
    gap:20px;
    padding: 50px;
}

.map-bg {
    width: 90vw;
    height: 50vh;
    position: relative;
}

.map-bg iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    padding-bottom: 20px;
    border-radius: 10px;
}

.testimonials-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.testimonial-item {
    width: 300px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    text-align: left;
    height: inherit; 
}

.testimonial-content {
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.testimonial-rating {
    color: gold;
    font-size: 18px;
    margin-top: auto;
}


.testimonial-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
}

.username {
    font-weight: bold;
    font-size: 14px;
}

.testimonial-content {
    font-size: 14px;
    line-height: 1.4;
}

.testimonial-rating {
    color: gold;
    font-size: 18px;
    margin-top: 5px;
}

.faq-container {
    width: 50%;
    margin: auto;
    display: grid;
    gap: 5px;
    padding-top: 10px;
}
.faq-item {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

.faq-question {
    width: 100%;
    background: #912933; 
    color: white;
    border: none;
    text-align: left;
    font-size: 16px;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-family: 'InstrumentSans';
}

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

.faq-answer {
    background: white;
    padding: 0 15px;
    
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease-out, padding 0.3s ease-out;
    border-radius: 0 0 5px 5px;
}

.faq-item.active {
    flex-grow: 1;
}

.faq-item.active .faq-answer {
    max-height: 150px; 
    opacity: 1;
    padding: 10px 15px;
}

.arrow {
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .appointment-form {
        width: 90vw;
    }
    
    .services-container {
        gap: 30px;
        padding: 25px 0;
    }

    .service-item img {
        width: 175px;
        height: 175px;
    }

    .services-list {
        justify-content: center;
    }

    .service-item {
        flex: 0 0 calc(100% / 2 - 20px);
    }
}

@media (max-width: 480px) {
    #full-form {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
    }
    
    .appointment-form {
        display: none;
        width: 30vw;
        transition: width 0.3s ease-in-out;
        position: relative;
    }
    
    .form-fl, .form-sl {
        flex-direction: column; 
    }

    .form-fl, .form-sl input {
        width: 100%;
    }
    
    .appointment-form.expanded {
        display: block;
        width: 90vw;

    }
    
    .appointment-form.expanded #full-form {
        opacity: 1;
        max-height: 500px;
        flex-direction: column;
    }
    
    /* Close button hidden by default */
    #close-form-btn {
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
    }
    
    /* Show close button when expanded */
    .appointment-form.expanded #close-form-btn {
        opacity: 1;
    }
    
    #toggle-form-btn {
        width: 60vw;
    }

    select, input, button {
        font-size: 0.8rem;
        padding: 4px;
    }

    #close-form-btn {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    button {
        font-size: 0.8rem;
        padding: 5px;
    }

    .about-text {
        max-width: 80%;
    }

    .about-image {
        min-width: 250px;
        max-width: 500px;
    }

    .faq-container {
        width: 80%;
    }

    .service-item img {
        width: 240px;
        height: 240px;
    }
    
    .mobile-socials {
        border-top: 1px solid #912933;
        padding-top: 2%;
    }

    .services-slider-wrapper {
        margin-top: 10%;
        margin-bottom: 10%;
    }
}