/* Good Job Ministry - FAQ Section Styles */

.faq-section {
    background-color: #FFFFFF;
    width: 100%;
    padding: 6.25rem 3.75rem;
}

.faq-container {
    display: flex;
    flex-direction: row;
    gap: 11.75rem;
    width: 100%;
}

.faq-text-col {
    width: 29%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-text-col>.eyebrow-label {
    width: fit-content;
    margin: 0;
}

.faq-heading {
    width: fit-content;
    color: #12181F;
    font-weight: 700;
    line-height: 48px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
    margin: 0;
}

.faq-paragraph {
    color: #0D2C4A;
    font-size: 1.25rem;
    line-height: 30px;
    margin: 0;
}

.faq-content-col {
    width: 41%;
    display: flex;
    flex-direction: column;
    gap: 3.25rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2rem;
}

.faq-item {
    border-bottom: 1px solid #E2E8F0;
}

.faq-item__question {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 0.5px solid #98A2B3;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0px 1.25rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #05121E;
    cursor: pointer;
    text-align: left;
    font-family: "Instrument Sans", sans-serif;
    outline: none;
}

.faq-item__question:focus-visible {
    color: var(--color-brand-blue);
}

.faq-item__icon {
    font-size: 1.25rem;
    font-weight: 400;
    transition: transform 0.2s ease;
    user-select: none;
    line-height: 1;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
    transform: rotate(45deg);
    /* turns the + into an x */
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #4A5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item__answer p {
    margin: 0;
    padding-bottom: 1.25rem;
}

.faq-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.faq-form__row {
    display: flex;
    flex-direction: row;
    gap: 3%;
    width: 100%;
}

.faq-form__field {
    width: 48.5%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-form__field:has(textarea),
.faq-form__field--full {
    width: 100%;
}

.faq-form__field label {
    width: fit-content;
    color: #12181F;
    font-size: 0.9rem;
    font-weight: 600;
}

.faq-form__field input,
.faq-form__field textarea {
    width: 100%;
    border: 1px solid #CBD5E0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: "Lato", sans-serif;
    color: #12181F;
    background-color: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-form__field input:focus,
.faq-form__field textarea:focus {
    outline: none;
    border-color: var(--color-brand-blue);
    box-shadow: 0 0 0 3px rgba(9, 118, 222, 0.15);
}

.faq-form__field textarea {
    resize: vertical;
    min-height: 8rem;
}

.faq-form__field input::placeholder,
.faq-form__field textarea::placeholder {
    color: #A0AEC0;
}

.faq-form__submit {
    width: fit-content;
    background-color: var(--color-brand-blue);
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: "Lato", sans-serif;
    font-size: 1.25rem;
    line-height: 100%;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.faq-form__submit:hover {
    background-color: var(--color-brand-blue-hover);
}

.faq-form__submit:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .faq-section {
        padding: 6.25rem 1rem; /* 100px top and bottom, 16px sides, measured from the reference */
    }

    .faq-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .faq-text-col {
        width: 100%; /* overrides the desktop 29% */
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .faq-heading {
        width: 100%;
        text-align: center;
        font-size: clamp(1.5rem, 1.1rem + 4vw, 2rem);
        line-height: 1.2;
    }

    .faq-paragraph {
        width: 100%;
        text-align: center;
        font-size: 1rem;
        line-height: 1.5;
    }

    .faq-content-col {
        width: 100%; /* overrides the desktop 41% */
        gap: 3.5rem; /* space between the accordion and the form */
    }

    .faq-item__question {
        align-items: flex-start; /* keeps the + level with the first line of a wrapped question */
        gap: 1rem;
    }

    .faq-item__icon {
        flex-shrink: 0; /* stops the + from being squeezed by long questions */
    }

    .faq-form {
        gap: 1.4rem;
    }

    .faq-form__row {
        flex-direction: column; /* Name and Your Question no longer sit side by side */
        gap: 1.4rem;
    }

    .faq-form__field {
        width: 100%; /* overrides the desktop 48.5% */
    }
}