/* ==============================
   FAQ TITLE
================================ */
.faq-section {
    margin-top: 50px;
}

.faq-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 800;
    font-size: clamp(36px, 8vw, 64px);
    margin-bottom: 24px;
    text-align: center;
}

/* ==============================
   FAQ CARD
================================ */
.faq-card {
    width: 100%;
    max-width: 752px;
    border: 2px solid #FFED4833;
    border-radius: 14px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #514E33;
}

/* HEADER */
.faq-card-header {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 16px;
    gap: 12px;
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-title-text {
    font-family: 'Roboto Slab', serif;
    font-weight: 800;
    font-size: clamp(14px, 4vw, 16px);
    color: #fff;
    word-break: break-word;
}

/* ==============================
   FAQ BODY
================================ */
.faq-card-body {
    display: none;
    padding: 0 16px 16px;
    padding-left: calc(20px + 12px + 12px);
}

.faq-card-body hr {
    border: none;
    border-top: 1px solid #FFED4880;
    margin: 0 0 12px;
}

.faq-card-body p {
    margin-bottom: 16px;
    font-family: 'Manrope', serif;
    font-weight: 400;
    font-size: clamp(13px, 3.5vw, 14px);
    line-height: 1.6;
    color: #fff;
    word-break: break-word;
}

/* OPEN STATE */
.faq-card[data-open="true"] .faq-card-body {
    display: block;
}

/* ==============================
   TABLE – RESPONSIVE, NO SCROLL
================================ */
.faq-table-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 16px;
}

/* Force table to fit container */
.faq-responsive-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    /* 🔑 critical */
}

/* Table headers */
.faq-cards thead th {
    background: #FFED48;
    text-align: center;
    padding: 10px;
    font-weight: 700;
    font-size: clamp(12px, 3.5vw, 14px);

    /* allow wrapping */
    white-space: normal;
    word-break: break-word;
}

/* Table cells */
.faq-cards tbody td {
    text-align: center;
    padding: 10px;
    font-family: 'Roboto Slab', serif;
    font-size: clamp(12px, 3.5vw, 14px);
    line-height: 1.4;

    /* prevent overflow */
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cancel-container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    width: 100%;
    background: #3B3819;
    border-radius: 10px;
    padding: 32px;
    margin: 0 auto;
    box-sizing: border-box;
    color: #fff;
    margin-top: 20px;
}

/* Adjust width of the left column */
.cancel-left {
    flex: 0 0 60%;
    /* 🔑 60% width on desktop, change as needed */
}

.cancel-left h2 {
    font-family: 'Roboto Slab', serif;
    font-weight: 800;
    font-size: 35px;
    margin-bottom: 16px;
}

.cancel-left p {
    font-size: 16px;
    line-height: 1.6;
}

/* Right column: email input and button */
.cancel-right {
    flex: 0 0 35%;
    /* 🔑 width of the input side */
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.cancel-right label {
    font-size: 16px;
}

.cancel-right input {
    width: 100%;
    padding: 8px 0;
    font-size: 16px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    outline: none;
}

.cancel-right input::placeholder {
    color: #FFFFFFAA;
}

.cancel-right hr {
    width: 100%;
    border: none;
    border-top: 1px solid #fff;
    /* the underline */
    margin: 0;
}

.cancel-right button {
    width: 308px;
    /* fixed width button */
    height: 54px;
    border-radius: 30px;
    background: #FFED48;
    border: none;
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
}

.col-md-4 {
    display: flex;
    flex-direction: column;
}

/* Push the CTA to the bottom of the column */
.faq-cta {
    margin-top: auto;
    margin-bottom: 50px;
    text-align: center;
}

.call-btn {
    border-radius: 30px;
    background: #FFED48;
    cursor: pointer;
    height: 41px;
    width: 148px;
}

/* ==============================
   MOBILE OPTIMIZATION
================================ */
@media (max-width: 426px),
(max-width: 769px) {
    .faq-section {
        margin-top: 20px;
    }

    .faq-title {
        text-align: center;
    }

    .faq-card-body {
        padding-left: 16px;
    }

    .faq-responsive-table th,
    .faq-responsive-table td {
        padding: 8px;
    }

    .faq-card-body {
        padding-left: calc(20px + 12px + 12px);
    }

    .cancel-container {
        padding: 24px 16px;
        margin: 0;
        gap: 24px;
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
    }

    .cancel-left,
    .cancel-right {
        flex: 1 1 100%;
        /* stack vertically */
    }

    .cancel-right button {
        width: 100%;
        /* button full width on mobile */
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .col-md-4,
    .col-md-8 {
        padding-left: 0;
        padding-right: 0;
    }

}