/* ==========================================================================
   CSS Principles & BEM Methodology (WP-Ready)
   Page: Centro de Ayuda
   ========================================================================== */

/* ==========================================================================
   Component: Help Secondary Menu (.help-secondary-menu)
   ========================================================================== */
.help-secondary-menu {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px 20px;
}

.help-secondary-menu__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.help-secondary-menu__icon-wrapper {
    width: 40px;
    height: 40px;
    background-color: #cae0ff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-secondary-menu__icon {
    font-size: 20px;
    color: var(--bg-navy, #183277);
}

.help-secondary-menu__title {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1f1c1c;
    line-height: 23px;
    margin: 0;
}

/* Nav list: each item has its own left border (gray) which turns blue when active */
.help-secondary-menu__list {
    list-style: none;
    padding: 8px 0 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.help-secondary-menu__item {
    border-left: 4px solid var(--Scale-Gray-100, #dbdbdb);
    padding-left: 15px;
    padding-bottom: 20px;
}

.help-secondary-menu__item:last-child {
    padding-bottom: 0;
}

.help-secondary-menu__item--active {
    border-left-color: var(--btn-blue, #0e6efc);
}

.help-secondary-menu__link {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-secondary, #5f6071);
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.help-secondary-menu__link:hover {
    color: var(--btn-blue, #0e6efc);
}

.help-secondary-menu__link--active {
    color: var(--btn-blue, #0e6efc);
    font-weight: 600;
}

/* ==========================================================================
   Component: FAQ Item (.faq-item)
   Used in: Preguntas frecuentes & Navegación de la plataforma
   ========================================================================== */
.faq-item {
    border: 1px solid var(--Scale-Gray-100, #dbdbdb);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.faq-item:last-of-type {
    margin-bottom: 0;
}

.faq-item__header {
    background-color: #e6e6e6;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 16px;
    border: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s;
}

.faq-item__header:hover {
    background-color: #d9d9d9;
}

.faq-item__header[aria-expanded="true"] {
    background-color: #e6e6e6;
}

.faq-item__question {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #373737;
    margin: 0;
    flex: 1;
}

.faq-item__toggle-icon {
    font-size: 20px;
    color: #373737;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.faq-item__header[aria-expanded="true"] .faq-item__toggle-icon {
    transform: rotate(180deg);
}

.faq-item__body {
    background-color: #ffffff;
    padding: 0;
}

.faq-item__content {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item__text {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #373737;
    margin: 0;
}

.faq-item__text p {
    margin-bottom: 16px;
}

.faq-item__text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Component: FAQ Feedback (.faq-item__feedback)
   ========================================================================== */
.faq-item__feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #ffffff;
    border: 1px solid var(--Scale-Gray-100, #dbdbdb);
    border-radius: 4px;
    padding: 8px 12px;
}

.faq-item__feedback-question {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: var(--text-dark, #100f15);
    white-space: nowrap;
    margin: 0;
}

.faq-item__feedback-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.faq-item__feedback-btn {
    background-color: #d9ecff;
    border: 1px solid #cae0ff;
    padding: 8px 16px;
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark, #100f15);
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.faq-item__feedback-btn:hover {
    background-color: #b8d9f8;
}

/* ==========================================================================
   Component: Contact Form (.contact-form)
   Used in: Formulario de contacto
   ========================================================================== */
.contact-form {
    border: 1px solid var(--Scale-Gray-100, #dbdbdb);
    border-radius: 4px;
    overflow: hidden;
}

.contact-form__header {
    background-color: #e6e6e6;
    padding: 16px 24px;
}

.contact-form__header-title {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.5;
    color: #373737;
    margin: 0;
}

.contact-form__body {
    background-color: #ffffff;
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form__label {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #373737;
}

.contact-form__label--muted {
    color: #b3b3b3;
    font-weight: 700;
}

.contact-form__input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #b3b3b3;
    background-color: #ffffff;
    padding: 8px 12px;
    gap: 8px;
}

.contact-form__input-wrapper--active {
    border-color: rgba(0, 0, 0, 0.87);
}

.contact-form__input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #808080;
    background: transparent;
    padding: 0;
}

.contact-form__input-icon {
    font-size: 20px;
    color: #808080;
    flex-shrink: 0;
}

.contact-form__select {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.87);
    background-color: #ffffff;
    padding: 8px 12px;
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #4d4d4d;
    appearance: auto;
    outline: none;
    cursor: pointer;
    border-radius: 0;
}

.contact-form__select:focus {
    border-color: var(--btn-blue, #0e6efc);
    box-shadow: none;
}

.contact-form__textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.87);
    background-color: #ffffff;
    padding: 8px 12px;
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #4d4d4d;
    resize: vertical;
    min-height: 200px;
    outline: none;
    border-radius: 0;
}

.contact-form__textarea:focus {
    border-color: var(--btn-blue, #0e6efc);
    box-shadow: none;
}

.contact-form__textarea::placeholder {
    color: #808080;
}

/* ==========================================================================
   Component: File Upload (.contact-form__upload)
   ========================================================================== */
.contact-form__upload {
    border: 1px solid #0f69c4;
    border-radius: 10px;
    background-color: #ffffff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.contact-form__upload:hover {
    background-color: #f0f7ff;
}

.contact-form__upload-icon {
    font-size: 48px;
    color: #0f69c4;
    line-height: 1;
}

.contact-form__upload-text {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #808080;
    text-align: center;
    margin: 0;
}

.contact-form__upload-text strong {
    font-weight: 700;
    display: block;
}

.contact-form__upload-btn {
    background-color: #ffffff;
    border: 1px solid #0051a8;
    color: #0051a8;
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    padding: 8px 16px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.2s, color 0.2s;
}

.contact-form__upload-btn:hover {
    background-color: #0051a8;
    color: #ffffff;
}

/* ==========================================================================
   Component: Contact Form Submit (.contact-form__footer)
   ========================================================================== */
.contact-form__footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

.contact-form__submit {
    background-color: #0051a8;
    border: none;
    color: #ffffff;
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    padding: 10px 20px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 0;
    text-decoration: none;
    transition: background-color 0.2s;
}

.contact-form__submit:hover {
    background-color: #003d82;
    color: #ffffff;
}

.contact-form__submit-icon {
    font-size: 18px;
}

/* ==========================================================================
   Help page header override (no filters row)
   ========================================================================== */
.dashboard-header--help {
    padding-bottom: 16px;
}
