/* Simple FAQ Plugin - Front-end Styles (v3, Bolt-inspired spacing)
   Color palette: Red (#e30613), Black (#111111), White (#ffffff), Yellow (#ffd400)

   Analogy: picture a display case with breathing room around each
   item - a clean off-white backdrop, generous margins between cards,
   and a simple black circular button that rotates open, just like
   the reference design.
*/

.sfaq-container {
    max-width: 820px;
    margin: 40px auto;
    padding: 24px;
    background: #f7f6f2; /* soft off-white backdrop, like the reference */
    border-radius: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.sfaq-item {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease;
}

.sfaq-item:last-child {
    margin-bottom: 0;
}

.sfaq-item:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.sfaq-question {
    width: 100%;
    text-align: left;
    background: #ffffff;
    color: #111111;
    border: none;
    padding: 22px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sfaq-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #ffd400;
    color: #111111;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 900;
}

.sfaq-question-text {
    flex: 1;
    line-height: 1.4;
}

.sfaq-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #111111;
    color: #ffffff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.3s ease, background 0.3s ease;
}

.sfaq-question:hover .sfaq-icon {
    background: #e30613;
}

.sfaq-question[aria-expanded="true"] .sfaq-icon {
    transform: rotate(135deg);
    background: #e30613;
}

.sfaq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #ffffff;
}

.sfaq-answer-inner {
    padding: 0 24px 24px 66px;
    color: #333333;
    line-height: 1.7;
    font-size: 15px;
}

.sfaq-answer-inner p:last-child {
    margin-bottom: 0;
}

.sfaq-empty {
    padding: 18px;
    background: #ffd400;
    border-radius: 10px;
    color: #111111;
    font-weight: 700;
    text-align: center;
    max-width: 820px;
    margin: 40px auto;
}

/* ------------------------------------------------------------------
   "Ask a Question" - front-end suggestion box
   ------------------------------------------------------------------ */
.sfaq-ask-wrap {
    max-width: 820px;
    margin: 20px auto 40px;
    padding: 0 24px;
}

.sfaq-ask-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111111;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sfaq-ask-toggle:hover {
    background: #e30613;
}

.sfaq-ask-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #ffd400;
    color: #111111;
    border-radius: 50%;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.3s ease;
}

.sfaq-ask-form {
    background: #ffffff;
    border-radius: 10px;
    padding: 22px 24px;
    margin-top: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sfaq-ask-form label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #111111;
    margin-bottom: 14px;
}

.sfaq-ask-form input,
.sfaq-ask-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 400;
    color: #111111;
    border: 2px solid #eeeeee;
    border-radius: 6px;
    font-family: inherit;
    box-sizing: border-box;
}

.sfaq-ask-form input:focus,
.sfaq-ask-form textarea:focus {
    outline: none;
    border-color: #ffd400;
}

.sfaq-ask-submit {
    background: #e30613;
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sfaq-ask-submit:hover {
    background: #111111;
}

.sfaq-ask-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sfaq-ask-message {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
}

.sfaq-ask-message:empty {
    display: none;
}

.sfaq-ask-message.sfaq-ask-success {
    color: #1a7a1a;
}

.sfaq-ask-message.sfaq-ask-error {
    color: #e30613;
}
