/*
 * The practical pages in the new design: Kontakta oss, Vanliga frågor, Tack för din bokning, the
 * 404 page and Integritetspolicy (design file tracks 9, 28, 25, 26 and 27). Loaded after
 * ny_design.css, and every rule is scoped to one of these pages' own classes.
 *
 * The rules under "HubSpot form" are not for the page itself: HubSpot draws its forms in an iframe
 * of their own, and nd_hubspot_form.html links this file into that iframe, where "form.hs-form"
 * matches. They give the fields and the button the new design's look and change nothing else.
 */

/* ---------- Kontakta oss: the ways to reach us, numbered as in the design (track 9) ---------- */

.nd_page .nd_contact_channels_section {
    margin-top: 56px;
    margin-bottom: var(--nd_section_gap);
}
.nd_page .nd_contact_channels {
    list-style: none;
    border-bottom: 1px solid var(--nd_line);
}
.nd_page .nd_contact_channels > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 0;
    border-top: 1px solid var(--nd_line);
}
.nd_page .nd_contact_channels > li > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
/* The e-mail address and the phone number are the big heading's size, underlined, as in the design. */
.nd_page .nd_contact_channel_link {
    font-weight: 700;
    font-size: 52px;
    line-height: 1.18;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}
.nd_page .nd_contact_channel_link:hover {
    text-decoration-thickness: 3px;
}
@media (max-width: 767px) {
    .nd_page .nd_contact_channels_section {
        margin-top: 24px;
    }
    .nd_page .nd_contact_channel_link {
        font-size: 32px;
        line-height: 1.2;
    }
}

/* ---------- Kontakta oss: the contact form, two tabs with a HubSpot form each ---------- */

/* Inside step 02 "Skicka formulär", directly under its text, with no line between them; the line
   under the form is step 03's (Hanna, 2026-11-05). */
.nd_page .nd_contact_form {
    align-self: stretch;
    margin-top: 12px;
    /* A link to #renovering or #smafix-eller-mindrejobb scrolls here, below the sticky menu. */
    scroll-margin-top: 96px;
}
.nd_page .nd_contact_form_tabs {
    display: flex;
    align-items: center;
    gap: 12px 16px;
}
/* The choice between the two forms, as on the old page: two equal rows, the chosen one highlighted
   and its marker filled. The marker is the lists' square instead of the old round dot (Hanna,
   2026-11-06). */
.nd_page .nd_contact_choice {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    border: 0;
    background: var(--nd_sand_light);
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    text-align: left;
    color: var(--nd_green);
    cursor: pointer;
    transition: background-color 200ms var(--nd_ease);
}
.nd_page .nd_contact_choice:hover {
    background: var(--nd_placeholder);
}
.nd_page .nd_contact_choice[aria-selected="true"] {
    background: color-mix(in srgb, var(--nd_orange) 45%, var(--nd_white));
}
.nd_page .nd_contact_choice_box {
    position: relative;
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--nd_green);
}
.nd_page .nd_contact_choice[aria-selected="true"] .nd_contact_choice_box::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--nd_green);
}
/* The text's paragraphs keep the rich text's 16 px between them inside their wrapper. */
.nd_page .nd_contact_desc > p + p {
    margin-top: 16px;
}
/* On phones the text under the choice is cut after four lines, with "Se mer" under it, as on the
   old page; on larger screens it is all shown and the button is not. */
.nd_page .nd_contact_desc_more {
    display: none;
}
.nd_page .nd_contact_form_panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px 80px;
    align-items: start;
    margin-top: 40px;
}
.nd_page .nd_contact_form_panel[hidden] {
    display: none;
}
@media (max-width: 1023px) {
    .nd_page .nd_contact_form_panel {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 32px;
    }
}
@media (max-width: 767px) {
    .nd_page .nd_contact_form_tabs {
        flex-direction: column;
        align-items: stretch;
    }
    .nd_page .nd_contact_form_tabs > span {
        display: none;
    }
    .nd_page .nd_contact_desc:not(.nd_contact_desc_open) > p:first-child {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
    }
    .nd_page .nd_contact_desc:not(.nd_contact_desc_open) > p:not(:first-child) {
        display: none;
    }
    .nd_page .nd_contact_desc_more {
        display: inline-block;
        margin-top: 8px;
        padding: 0;
        border: 0;
        background: none;
        font-family: inherit;
        font-weight: 700;
        font-size: 14px;
        line-height: 20px;
        color: var(--nd_green);
        text-decoration: underline;
        text-underline-offset: 3px;
        cursor: pointer;
    }
    .nd_page .nd_contact_desc_open + .nd_contact_desc_more {
        display: none;
    }
}

/* The form on white, as the booking calendar beside text (ny_design.css, .nd_booking_frame). */
.nd_page .nd_hubspot_form {
    min-height: 400px;
    padding: 32px;
    background: var(--nd_white);
    box-shadow: var(--nd_shadow_card);
}
@media (max-width: 767px) {
    .nd_page .nd_hubspot_form {
        padding: 24px 16px;
    }
}

/* ---------- Vanliga frågor (track 28): categories as anchor links, an accordion per category ---------- */

.nd_page .nd_faq_page_categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}
/* A dashed frame: the link stays on this page (MODULER.md, Streckad linje). */
.nd_page .nd_faq_page_categories a {
    display: inline-flex;
    padding: 8px 16px;
    border: 1px solid transparent;
    background-image:
        linear-gradient(to right, var(--nd_gray_dash) 50%, transparent 50%),
        linear-gradient(to right, var(--nd_gray_dash) 50%, transparent 50%),
        linear-gradient(to bottom, var(--nd_gray_dash) 50%, transparent 50%),
        linear-gradient(to bottom, var(--nd_gray_dash) 50%, transparent 50%);
    background-size: 6px 1px, 6px 1px, 1px 6px, 1px 6px;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-origin: border-box;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: var(--nd_green) !important;
    text-decoration: none !important;
    transition: background-color 120ms var(--nd_ease);
}
.nd_page .nd_faq_page_categories a:hover {
    background-color: rgba(0, 0, 0, .05);
}
.nd_page .nd_faq_page_category {
    scroll-margin-top: 96px;
}
.nd_page .nd_faq_page_category .nd_faq_list {
    margin-top: 24px;
}
.nd_page .nd_faq_page_more > .nd_container > * + * {
    margin-top: 16px;
}

/* ---------- Tack för din bokning (track 25) ---------- */

.nd_page .nd_thanks_rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--nd_gray_text);
}
.nd_page .nd_thanks_grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px 56px;
    align-items: start;
}
.nd_page .nd_thanks_grid > div {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
}
.nd_page .nd_thanks_part {
    border-top: 1px solid var(--nd_line);
    padding-top: 32px;
}
.nd_page .nd_thanks_part > * + * {
    margin-top: 16px;
}
.nd_page .nd_thanks_steps {
    list-style: none;
    margin-top: 0;
}
.nd_page .nd_thanks_part > .nd_eyebrow + .nd_thanks_steps {
    margin-top: 0;
}
.nd_page .nd_thanks_steps > li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 6px;
    padding: 20px 0;
    border-bottom: 1px solid var(--nd_line);
}
.nd_page .nd_thanks_steps > li:last-child {
    border-bottom: 0;
}
.nd_page .nd_thanks_steps > li > div > * + * {
    margin-top: 6px;
}
.nd_page .nd_thanks_steps .nd_step_number {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
}
/* The step the visitor has already taken is struck through with a thin line (MODULER, "Steg"). */
.nd_page .nd_thanks_step_done :is(.nd_step_number, .nd_h3) {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
.nd_page .nd_thanks_list {
    list-style: none;
}
.nd_page .nd_thanks_list > li {
    position: relative;
    padding-left: 18px;
}
.nd_page .nd_thanks_list > li + li {
    margin-top: 12px;
}
.nd_page .nd_thanks_list > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--nd_green);
}
.nd_page .nd_thanks_links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
@media (max-width: 1023px) {
    .nd_page .nd_thanks_grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* The question how the visitor heard of us and the form that answers it are one module: on desktop
   one white card in full width, the question over the form (Hanna, 2026-11-05). On phones the
   question stands over the form's own card. */
.nd_page .nd_thanks_survey_question > * + * {
    margin-top: 12px;
}
.nd_page .nd_thanks_survey_main > .nd_hubspot_form {
    min-height: 200px;
    margin-top: 24px;
}
/* The picture beside the form shows on desktop only. */
.nd_page .nd_thanks_survey_image {
    display: none;
}
@media (min-width: 1024px) {
    .nd_page .nd_thanks_survey_box {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 48px;
        align-items: center;
        padding: 40px;
        background: var(--nd_white);
        box-shadow: var(--nd_shadow_card);
    }
    .nd_page .nd_thanks_survey_image {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
    /* HubSpot's frame has about 40 px of air of its own around the form; pull it out, so the
       field lines up under the question and the card keeps its own 40 px. */
    .nd_page .nd_thanks_survey_main > .nd_hubspot_form {
        max-width: 760px;
        margin: 0 0 -40px -40px;
        padding: 0;
        box-shadow: none;
    }
}

/* ---------- 404 (track 26) ---------- */

.nd_page .nd_not_found .nd_mono {
    display: block;
    padding: 2px 0;
    color: var(--nd_gray_text);
}
.nd_page .nd_not_found .nd_actions {
    margin-top: 36px;
}
.nd_page .nd_not_found + .nd_footer {
    margin-top: var(--nd_section_gap);
}

/* ---------- Integritetspolicy (track 27): table of contents on light sand, numbered sections ---------- */

.nd_page .nd_policy_date {
    display: block;
}
.nd_page .nd_policy_date span {
    color: var(--nd_gray_text);
}
.nd_page .nd_policy_toc_section {
    margin-top: 32px;
}
.nd_page .nd_policy_toc {
    padding: 32px 32px 20px;
    background: var(--nd_sand_light);
}
.nd_page .nd_policy_toc ol {
    margin-top: 8px;
    list-style: none;
}
.nd_page .nd_policy_toc li + li {
    border-top: 1px solid var(--nd_line_light);
}
.nd_page .nd_policy_toc a {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 0;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: .01em;
}
.nd_page .nd_policy_toc a .nd_mono {
    line-height: 26px;
    color: var(--nd_gray_text);
}
/* "På den här sidan" is a list of underlined links (rules doc, CTA:er). */
.nd_page .nd_policy_toc a > span:last-child {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.nd_page .nd_policy_toc a {
    text-decoration: none;
}
.nd_page .nd_policy_toc a:hover > span:last-child {
    text-decoration-thickness: 2px;
}
.nd_page .nd_policy_sections {
    margin-top: 40px;
}
.nd_page .nd_policy_section {
    border-top: 1px solid var(--nd_line);
    padding-top: 32px;
    scroll-margin-top: 96px;
}
.nd_page .nd_policy_section + .nd_policy_section {
    margin-top: 40px;
}
.nd_page .nd_policy_section > .nd_mono {
    display: block;
    color: var(--nd_gray_text);
}
.nd_page .nd_policy_section > .nd_h2_small {
    margin-top: 8px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
}
.nd_page .nd_policy_section > .nd_rich {
    margin-top: 16px;
}
.nd_page .nd_policy_section .nd_rich h3 {
    scroll-margin-top: 96px;
}
@media (max-width: 767px) {
    .nd_page .nd_policy_toc {
        padding: 20px 16px 12px;
    }
}

/* ---------- HubSpot form (inside the form's own iframe, see the top of this file) ---------- */

form.hs-form {
    font-family: 'Poppins', sans-serif !important;
    color: #2c474d !important;
}
form.hs-form fieldset {
    max-width: none !important;
}
form.hs-form .hs-form-field {
    margin-bottom: 20px !important;
}
form.hs-form label,
form.hs-form .hs-field-desc,
form.hs-form legend {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 26px !important;
    letter-spacing: .01em !important;
    color: #2c474d !important;
}
form.hs-form .hs-form-required {
    color: #2c474d !important;
}
form.hs-form .hs-input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
    width: 100% !important;
    min-height: 48px;
    padding: 12px 14px !important;
    border: 1px solid #cdcdcf !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 22px !important;
    color: #2c474d !important;
}
/* The select's arrow stands 16 px in from the edge, not against it (Hanna, 2026-11-06). The colors
   are written out because this file is also read inside the form's iframe, without ny_design.css. */
form.hs-form select.hs-input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-right: 44px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%232c474d' stroke-width='2'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
}
form.hs-form textarea.hs-input {
    min-height: 120px !important;
}
form.hs-form .hs-input:focus {
    outline: 2px solid #2c474d !important;
    outline-offset: -1px !important;
}
form.hs-form .inputs-list {
    margin: 4px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
form.hs-form .inputs-list label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px !important;
}
form.hs-form input[type="checkbox"],
form.hs-form input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    accent-color: #2c474d;
}
form.hs-form .hs-error-msgs {
    margin: 6px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
form.hs-form .hs-error-msg,
form.hs-form .hs-main-font-element,
form.hs-form .legal-consent-container,
form.hs-form .legal-consent-container p {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 20px !important;
}
/* "Fyll i detta obligatoriska fält" in dark gray italics, not orange (Hanna, 2026-11-06): orange is
   the chat's color. */
form.hs-form .hs-error-msg {
    font-style: italic !important;
    color: #5f686c !important;
}
/* The submit button is a framed button (Playbook 07): the orange one only ever opens the chat. */
form.hs-form .hs-button {
    padding: 11px 20px !important;
    border: 1px solid #2c474d !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #2c474d !important;
    cursor: pointer;
    transition: background-color 120ms cubic-bezier(.2, 0, .2, 1);
}
form.hs-form .hs-button:hover,
form.hs-form .hs-button:focus {
    background: rgba(0, 0, 0, .05) !important;
}
