:root {
    --primaryColor: #ff901d;
    --softColor: #fedddd;
    --whiteColor: #f5f5f5;
    --blackColor: #222;
}

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

body {
    width: 100%;
    height: auto;
}

.faq-container {
    padding: 2%;
}

.header-box {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("../img/steve-johnson-1.jpg");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5% 3%;
    border-radius: 30px;
    color: #f5f5f5;
}

.header-title {
    font-size: 4rem;
    letter-spacing: 1.5;
}

.header-desc {
    font-size: 2rem;
    letter-spacing: 1;
    text-align: center;
}


/* --- UPDATED UNIFIED FORM STYLES --- */

#faq-form-container {
    width: 60%;
    margin-top: 3rem;
    transition: all 0.4s ease-in-out;
}

#faq-form-container.collapsed {
    background-color: #f5f5f5;
    border-radius: 30px; /* The pill shape */
}

#faq-form-container.expanded {
    background-color: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#faq-form-container form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#faq-form-container.collapsed .input-wrapper {
    padding: 5px; /* Padding inside the pill shape */
}

#faq-question {
    flex-grow: 1;
    padding: 10px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    border: none;
    background: transparent;
    color: #222;
    resize: none;
    transition: height 0.3s ease;
}

#faq-form-container.collapsed #faq-question {
    height: 40px;
    overflow: hidden;
    white-space: nowrap;
    cursor: text;
}

#faq-form-container.expanded #faq-question {
    height: 100px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
}

#expand-btn {
    height: 40px;
    min-width: 100px;
    background-color: #ff826b;
    color: #f5f5f5;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
    margin-left: 5px;
}


#faq-form-container.expanded #expand-btn {
    display: none;
}

#faq-form-container.collapsed .guest-details,
#faq-form-container.collapsed .form-buttons {
    display: none;
}

#faq-form-container.guest-user.expanded .input-wrapper {
    display: none;
}

.guest-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #333;
}

.guest-details p {
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 500;
}

.guest-details input {
    display: block;
    width: 100%;
    font-size: 14px;
    padding: 8px;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-row {
    display: flex;
    gap: 12px;
}

.contact-row input {
    flex: 1;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-buttons button {
    background-color: #ff826b;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-buttons .cancel-btn {
    background-color: #000;
    color: #fff;
}



/* --- FAQ LIST STYLES --- */

.faq {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    padding: 3%;
}

.faq-name {
    flex: 0.5;
    padding: 2% 2% 0 0;
}

.faq-header {
    padding: 5% 0 0 0;
    font-size: 40px;
    letter-spacing: 2;
}

.faq-img {
    width: 100%;
    max-width: 400px;
}

.faq-box {
    flex: 1;
    min-width: 320px;
    padding: 2% 0 4% 4%;
    border-left: 2px solid;
}

.faq-wrapper {
    width: 100%;
    padding: 1.5rem;
    border-bottom: 1px solid #222;
}

.faq-title {
    display: block;
    position: relative;
    width: 100%;
    letter-spacing: 1.2;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
}

.faq-title::after {
    width: 10px;
    height: 10px;
    content: "";
    float: right;
    border-style: solid;
    border-width: 2px 2px 0 0;
    transform: rotate(135deg);
    transition: 0.4s ease-in-out;
}

.faq-detail {
    margin-top: 6px;
    line-height: 1.5;
    letter-spacing: 1;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-in-out;
    font-size: 16px;
    font-weight: 400;
}

.faq-detail a {
    color: #ff826b !important;
}

.faq-trigger {
    display: none;
}

.faq-trigger:checked+.faq-title+.faq-detail {
    max-height: 480px;
}

.faq-trigger:checked+.faq-title::after {
    transform: rotate(-45deg);
    transition: 0.4s ease-in-out;
}

@media screen and (max-width: 768px) {

    #faq-form-container {
        width: 80%;
    }
    
    .contact-row {
        flex-direction: column;
    }
    
}

@media screen and (max-width:575px) {
    .faq-title {
        font-size: 18px;
    }

    #faq-form-container {
        width: 100%;
    }
    
    .contact-row {
        flex-direction: column;
    }
}