
/* styles.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

nav a, .signup-btn {
    color: #fff;
    margin-left: 1rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.signup-btn {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
}

main {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-direction: column; /* Default to vertical layout for small screens */
}

.left {
    max-width: 90vw;
    min-height: 50vh;
    overflow-y: auto;
    padding-top: 60px;
}


.left h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.left p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.input-box {
    margin-bottom: 2rem;
}

.location-input {
    display: flex;
    align-items: center;
    background-color: #eee;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

.location-input span {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.location-input input {
    border: none;
    background: none;
    flex: 1;
    font-size: 1rem;
}

.location-input .close-btn {
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
}

.buttons {
    display: flex;
    gap: 1rem;
}

.primary-btn, .secondary-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.primary-btn {
    background-color: #000;
    color: #fff;
    border-radius: 4px;
}

.secondary-btn {
    background-color: #ddd;
    color: #333;
    border-radius: 4px;
}

.right {
    display: none;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .content {
        flex-direction: row; /* Side-by-side layout for larger screens */
    }

    .left {
        max-width: 50%; /* Left section takes up 50% width */
        min-height: 72vh;
    }

    .right {
        width: 500px; /* Fixed width for the right section */
        height: 500px; /* Fixed width for the right section */
        display: block;
    }
}

#card-element {
    border: 1px solid #ced4da;
    padding: 10px;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#card-element:focus {
    border-color: #80bdff;
    box-shadow: 0 0 5px rgba(128, 189, 255, 0.5);
    outline: none;
}

#card-errors {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #dc3545; /* Red for errors */
}

.about-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1rem;
    background-color: #fff;
    text-align: center;
}

.about-item {
    flex: 1 1 calc(33.33% - 1rem);
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-item img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.about-item h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.about-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .about-item {
        flex: 1 1 100%;
    }
}

.logo-carousel {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    background-color: #fff;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    animation: scroll-loop 25s linear infinite;
}

.carousel-track img {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.carousel-track img:hover {
    transform: scale(1.1);
    opacity: 1;
}

.carousel-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

@keyframes scroll-loop {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .carousel-track img {
        max-width: 100px;
    }
}

.faq-section {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    
    /* Center content horizontally and vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    text-align: center; /* Optional: ensures the text inside is centered */
}
.faq-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 10px;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 5px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    width: 100%; /* Ensures the width stays the same */
}

.faq-question:hover {
    background-color: #f1f1f1;
}

.faq-answer {
    font-size: 16px;
    color: #555;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    display: none;
    width: 100%; /* Ensure the answer is the same width as the question */
    max-height: 0; /* Initially hide the answer */
    overflow: hidden; /* Hide any content that's beyond the max-height */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* Smooth expansion */
    padding-left: 10px; /* Keeps consistent padding */
    padding-right: 10px; /* Keeps consistent padding */
}

.faq-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Allow answer to expand fully */
    padding-top: 10px; /* Adds top padding when answer is expanded */
    padding-bottom: 10px; /* Adds bottom padding when answer is expanded */
    display: block;
}

.faq-toggle-btn:focus {
    outline: none;
}

/* Contact Form Section */
.contact-form-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;

    /* Center content using Flexbox */
    display: flex;              /* Enable flexbox */
    flex-direction: column;     /* Align items in a column */
    justify-content: center;    /* Center vertically */
    align-items: center;        /* Center horizontally */
}


.contact-form-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.contact-form {
    display: block;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

input, textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

input:focus, textarea:focus {
    border-color: #007bff;
}

textarea {
    resize: vertical;
}

.submit-btn {
    padding: 12px;
    font-size: 16px;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Footer Section Styling */
.footer-section {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left,
.footer-middle,
.footer-right {
    flex: 1;
    margin: 10px;
}

.footer-left p {
    margin: 0;
}

.footer-middle p a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.footer-middle p a:hover {
    text-decoration: underline;
}

.social-link {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.social-link:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-left, .footer-middle, .footer-right {
        margin: 10px 0;
    }
}
