/* Sitewide "Hjälp" tab + slide-in panel */

.help-tab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 100000;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: #d63494;
    color: #ffffff;
    border: none;
    padding: 18px 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 6px 0 0 6px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background-color 0.2s ease, padding-right 0.2s ease;
}

.help-tab:hover,
.help-tab:focus-visible {
    background: #b81f7c;
    padding-right: 14px;
}

.help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.help-overlay.is-open {
    opacity: 1;
}

.help-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(420px, 100vw);
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
    z-index: 100002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.help-panel.is-open {
    transform: translateX(0);
}

.help-panel__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.help-view[hidden] {
    display: none;
}

.help-panel__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 24px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
    flex: 0 0 auto;
}

.help-panel__header h2 {
    margin: 0;
    font-size: 24px;
    flex: 1 1 auto;
}

.help-panel__back {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #000000;
    cursor: pointer;
    padding: 4px 4px 4px 0;
    flex: 0 0 auto;
}

.help-panel__back[hidden] {
    display: none;
}

.help-panel__close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #000000;
    cursor: pointer;
    padding: 4px 8px;
    flex: 0 0 auto;
}

.help-panel__intro,
.help-panel__links,
.help-panel__form,
.help-panel__team {
    padding: 0 24px;
    margin-top: 22px;
}

.help-panel__intro {
    color: #333333;
    font-size: 15px;
}

.help-panel__intro a {
    color: #d63494;
    text-decoration: underline;
}

.help-panel__intro a:hover {
    text-decoration: none;
}

.help-panel__team h3,
.help-panel__form h3 {
    font-size: 16px;
    margin: 0 0 14px;
}

.help-panel__form h3 {
    margin-bottom: 10px;
}

.help-link {
    display: flex;
    align-items: center;
    width: 100% !important;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fdf1f8 !important;
    border: 1px solid #f6cce4;
    border-radius: 8px;
    color: #000000 !important;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
}

.help-link:hover,
.help-link:focus-visible {
    background: #64244a !important;
    border-color: #64244a !important;
    color: #ffffff !important;
}

.help-link:hover .help-link__arrow,
.help-link:focus-visible .help-link__arrow {
    color: #f6cce4;
}

.help-link__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d63494;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.help-link__text {
    flex: 1 1 auto;
    font-size: 15px;
}

.help-link__arrow {
    flex: 0 0 auto;
    color: #999999;
    font-size: 18px;
    transition: color 0.15s ease;
}

/* Gravity Forms — Hjälp panel contact form (form #189) */
.help-panel__form .gform_wrapper.gravity-theme {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.help-panel__form .gform_heading {
    display: none;
}

.help-panel__form .gform_fields {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 10px;
}

.help-panel__form .gfield {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0;
}

/* Hide the "Name" complex-field top label, keep its sub-fields */
.help-panel__form legend.gfield_label {
    display: none !important;
}

/* Reset default fieldset styling so the Name sub-fields sit flush left, same as every other field */
.help-panel__form fieldset,
.help-panel__form .gfield--type-name,
.help-panel__form .ginput_complex,
.help-panel__form .ginput_container_name,
.help-panel__form .name_first,
.help-panel__form .name_last {
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

/* Stack "Your name" / "Company name" full-width, same box as every other field */
.help-panel__form .ginput_complex,
.help-panel__form .ginput_container_name {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
}

.help-panel__form .ginput_complex .name_first,
.help-panel__form .ginput_complex .name_last {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Labels — same size/weight/position for every field, including the Name sub-labels */
.help-panel__form .gfield_label,
.help-panel__form label.gform-field-label,
.help-panel__form .gform-field-label--type-sub,
.help-panel__form .name_first label,
.help-panel__form .name_last label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    text-indent: 0 !important;
}

.help-panel__form .gfield_required {
    color: #d63494;
    margin-left: 2px;
}

/* Inputs */
.help-panel__form input[type="text"],
.help-panel__form input[type="email"],
.help-panel__form input[type="tel"],
.help-panel__form input[type="url"],
.help-panel__form input[type="number"],
.help-panel__form textarea,
.help-panel__form select {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background: #fafafa;
    color: #333333;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.help-panel__form textarea {
    min-height: 80px;
    resize: vertical;
}

.help-panel__form input:focus,
.help-panel__form textarea:focus,
.help-panel__form select:focus {
    outline: none;
    border-color: #d63494;
    background: #ffffff;
}

.help-panel__form ::placeholder {
    color: #999999;
    opacity: 1;
}

.help-panel__form .gfield_description,
.help-panel__form .ginput_counter {
    font-size: 11px !important;
    color: #999999 !important;
    line-height: 1.4 !important;
    margin: 2px 0 4px !important;
    padding: 0 !important;
}

.help-panel__form .gform_footer {
    margin: 14px 0 0;
    padding: 0;
}

.help-panel__form .gform_button {
    display: block;
    width: 100%;
    background: #b81f7c !important;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.help-panel__form .gform_button:hover {
    background: #64244a !important;
}

.help-panel__form .gform_validation_errors {
    border: 1px solid rgba(214, 52, 148, 0.25);
    border-radius: 8px;
    background: #f5e5ee;
    padding: 14px 16px;
    margin: 0 0 16px;
    color: #64254b;
    font-size: 13px;
}

.help-panel__form .validation_message {
    color: #b81f7c;
    font-size: 12px;
    margin-top: 4px;
}

.help-panel__form .gfield_error input,
.help-panel__form .gfield_error textarea,
.help-panel__form .gfield_error select {
    border-color: #b81f7c;
}

.help-panel__team {
    padding-bottom: 8px;
}

.help-team-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

.help-team-member:last-child {
    border-bottom: none;
}

.help-team-member__photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.help-team-member__info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.5;
}

.help-team-member__info strong {
    margin-bottom: 2px;
}

.help-team-member__info a {
    color: #33746f;
    text-decoration: none;
}

.help-team-member__info a:hover {
    text-decoration: underline;
}

/* In-panel FAQ view */
.help-faq__intro {
    padding: 0 24px;
    margin: 22px 0 0;
    color: #333333;
    font-size: 15px;
}

.help-faq__groups {
    padding: 0 24px;
}

.help-faq__group {
    margin-top: 22px;
}

.help-faq__group[hidden] {
    display: none;
}

.help-faq__group-title {
    font-size: 16px;
    margin: 0 0 6px;
    color: #64244a;
}

.help-faq__empty {
    padding: 0 24px;
    margin-top: 22px;
    color: #666666;
    font-size: 14px;
}

.help-faq__item {
    border-bottom: 1px solid #eeeeee;
}

.help-faq__item[hidden] {
    display: none;
}

.help-faq__item:last-child {
    border-bottom: none;
}

.help-faq__question,
.help-faq__question:hover,
.help-faq__question:focus,
.help-faq__question:active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 6px 0;
    background: none !important;
    border: none;
    box-shadow: none !important;
    text-align: left;
    font-size: 13px;
    font-weight: 400;
    color: #333333 !important;
    cursor: pointer;
}

.help-faq__question:hover .help-faq__question-text,
.help-faq__question:focus .help-faq__question-text {
    color: #d63494;
}

.help-faq__icon {
    flex: 0 0 auto;
    color: #999999;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.help-faq__item.is-open .help-faq__icon {
    transform: rotate(90deg);
}

.help-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.help-faq__answer-text {
    padding: 0 0 16px;
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
}

.help-faq__answer-text > *:first-child {
    margin-top: 0;
}

.help-faq__answer-text > *:last-child {
    margin-bottom: 0;
}

body.help-panel-open {
    overflow: hidden;
}

@media screen and (max-width: 480px) {
    .help-panel {
        width: 100vw;
    }

    .help-tab {
        padding: 14px 8px;
        font-size: 13px;
    }
}
