﻿
/* paddings and margins*/
.margin-bottom-small {
    margin-bottom: 0.6rem;
}

/* Seems fluent-grid has an issue calculatin negative margins causing overflows and therefore scrollbars*/
.fluent-grid {
    margin: 0 !important;
}


/* Base class for grid containers */
.grid-container {
    display: grid;
    gap: 2rem;
    justify-items: center; /* Center content horizontally in each cell */
}

/* 4 columns on large screens */
.grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
}

.grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
}

/* 2 columns on medium screens */
.grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

/* 1 column on small screens */
.grid-1-col {
    grid-template-columns: 1fr;
}

/* Media queries for responsive design */

/* 4 columns on large screens */
@media (min-width: 1024px) {
    .grid-container.grid-4-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 3 columns on large screens */
@media (min-width: 1024px) {
    .grid-container.grid-3-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 columns on medium screens */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid-container.grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 column on small screens */
@media (max-width: 767px) {
    .grid-container.grid-1-col {
        grid-template-columns: 1fr;
    }
}

/* Ensure grid items span multiple columns */
.grid-span-2 {
    grid-column: span 2;
}

/* Responsive adjustments for grid-span-2 */
@media (max-width: 1023px) {
    .grid-span-2 {
        grid-column: span 1;
    }
}


/* ------------------------------------------------------------------------*/

/*Pricing page*/

.row {
    width: 100%;
    margin-bottom: 1.5rem;
}

.centered-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-and-accordion {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.column {
    flex: 1;
    min-width: 300px;
}

.fluent-card-minimal-style.price-card {
    padding: 0;
    border: none;
    border-radius: 20px;
    min-height: 500px;
    min-width: 250px;
    max-width: 350px;
    background-color: white;
    display: flex;
    flex-direction: column;
}

.card-content-pricing {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: .7rem;
}

    .card-content-pricing .top-row {
        display: flex;
        flex-direction: column;
    }

    .card-content-pricing p {
        font-size: 1rem;
    }

    .card-content-pricing .bottom-row {
        display: flex;
        flex-direction: column;
        margin-top: 1.5rem;
        text-align: center;
    }

        .card-content-pricing .bottom-row p {
            font-size: 2.25rem;
            line-height: 2.5rem;
            font-weight: 500;
        }

/* Styles for the selected card */
.selected-card {
    border: 2px solid #0078D4 !important; /* Change the color as needed */
    box-shadow: 0 0 10px rgba(0, 120, 212, 0.5) !important; /* Optional: Add a shadow for better visibility */
}


/* ------------------------------------------------ */

/*Styles form component questions*/

.question-grid {
    display: grid;
    grid-template-columns: 32px 2fr 1fr; /* Fixed icon width, question text, input field */
    align-items: center;
    gap: 0.5rem; /* Reduced gap for closer spacing */
    margin-bottom: 0.3rem;
}

.question-help-icon {
    cursor: pointer;
    color: var(--accent-fill-rest);
    width: 32px;
    height: 32px;
    transition: color 0.3s;
}

    .question-help-icon:hover {
        color: var(--accent-fill-hover);
    }

    .question-help-icon:focus {
        outline: 2px solid var(--accent-fill-hover);
        outline-offset: 2px;
    }

.question-answer-container {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align input field to the right */
}


.question-text {
    word-wrap: break-word;
    line-height: 1.2;
    font-weight: 400;
    font-size: 1.2rem;
    padding-right: 40px;
    padding-left: 15px;
}

.question-item {
    margin-bottom: 1.2rem;
}

.question-answer-text {
    font-weight: 300;
    font-size: 1rem;
    line-height: 0px;
}

.child-question {
    padding-left: 35px;
    color: #555;
}

.choice-input-container {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align input field to the right */
}

.choice-text-input {
    width: 100%; /* Take full width of input container */
    max-width: none; /* Remove max-width to allow full expansion */
    padding: 0.5rem;
    /*border: 1px solid #ccc;*/
    border-radius: 4px;
    font-size: 1rem; /* Ensures readability */
}

.choice-answer-text {
    font-weight: 300;
    font-size: 1rem;
}


.choice-question-grid {
    display: grid;
    grid-template-columns: auto 2fr 1fr;
    gap: 0rem;
    align-items: center;
    margin-left: 32px;
    padding: 0px;
}


    .choice-question-grid .answer-text {
        text-align: left;
        padding-left: 20px;
    }

    .choice-question-grid .radio-button {
        text-align: right;
    }


.custom-radio {
    position: relative;
    width: 20px;
    height: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #0078d4;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
}

    .custom-radio:checked::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 12px;
        height: 12px;
        background-color: #0078d4;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }


/*Syncfusion Accordion*/

/***********************************************
 *  ACCORDION GROUPED & SIMPLIFIED
    Det er crazy så svært det er at override syncfusion accordion styles
 ***********************************************/

.e-accordion {
    border: 0; /* Global accordion border removal */
}

    .e-accordion *,
    .e-accordion *::before,
    .e-accordion *::after {
        border-color: var(--color-stark-rad) !important;
        background-color: transparent !important;
        border-top: 0px !important;
        border-left: 0px !important;
        color: #101010 !important;
        box-shadow: none !important;
    }

    .e-accordion .e-acrdn-header {
        font-size: 1.25rem;
        font-weight: 400;
        font-family: filson-pro;
    }

    .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-content {
        white-space: normal !important; /* Allow text to wrap */
        word-wrap: break-word; /* Break long words if necessary */
        overflow-wrap: break-word; /* Ensure proper wrapping for long words */
    }

    /* Base item styles */
    .e-accordion .e-acrdn-item {
        color: var(--color-stark-rad);
        font-family: filson-pro;
    }

        /* 
   Combine the states (.e-select, .e-selected, .e-expand-state)
   that share the same background, border, and color
*/
        .e-accordion .e-acrdn-item.e-select,
        .e-accordion .e-acrdn-item.e-selected,
        .e-accordion .e-acrdn-item.e-expand-state {
            color: #101010; /* override base color */
        }



            /* Give the same background/border/color to the header
   if the item is in select/selected/expand state */
            .e-accordion .e-acrdn-item.e-select > .e-acrdn-header,
            .e-accordion .e-acrdn-item.e-selected > .e-acrdn-header,
            .e-accordion .e-acrdn-item.e-expand-state > .e-acrdn-header {
                background: none;
                border-color: var(--color-stark-rad);
                border-style: solid;
                border-width: 0 0 0px 0;
                color: #101010;
                border-radius: 0;
                justify-content: center; /* from your .e-select > .e-acrdn-header */
                box-shadow: none;
            }

        /* Panel styles (the expanded content area) */
        .e-accordion .e-acrdn-item .e-acrdn-panel {
            font-size: 1rem;
            color: #101010;
        }

        /* Header content base styles */
        .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-content {
            font-size: 1.25rem;
            font-weight: 400;
        }


.e-toast-container .e-toast .e-toast-message .e-toast-title {
    font-weight: bold;
    border-bottom: 1px solid var(--color-stark-rad);
}

.e-toast-container .e-toast .e-toast-icon {
    color: green;
}

/* sf Tooltip */
.sf-tooltip.e-tooltip-wrap {
    background-color: white;
    border-radius: 10px;
    border-color: transparent;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.25);
    padding: 10px;
}

    .sf-tooltip.e-tooltip-wrap .e-tip-content {
        font-size: 14px;
        padding: 6px;
        color: var(--color-blod-sort);
    }

    /* These target all possible arrow positions */
    .sf-tooltip.e-tooltip-wrap .e-arrow-tip-outer.e-tip-bottom,
    .sf-tooltip.e-tooltip-wrap .e-arrow-tip-outer.e-tip-top,
    .sf-tooltip.e-tooltip-wrap .e-arrow-tip-outer.e-tip-left,
    .sf-tooltip.e-tooltip-wrap .e-arrow-tip-outer.e-tip-right {
        background-color: transparent;
    }

    /* Set specific border colors based on position to create the arrow shape */
    .sf-tooltip.e-tooltip-wrap .e-arrow-tip-outer.e-tip-bottom {
        display: none;
    }

    .sf-tooltip.e-tooltip-wrap .e-arrow-tip-outer.e-tip-top {
        background-color: transparent;
        display: none;
    }

    .sf-tooltip.e-tooltip-wrap .e-arrow-tip-outer.e-tip-left {
        display: none;
    }

    .sf-tooltip.e-tooltip-wrap .e-arrow-tip-outer.e-tip-right {
        display: none;
    }

    .sf-tooltip.e-tooltip-wrap .e-arrow-tip-inner {
        display: none;
    }


/* Fluent Wizard Pre-Flow*/
/* Mobile-friendly wizard styles */
.mobile-friendly-wizard .fluent-wizard-content {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    /*    overflow-x: hidden !important;
    overflow-y: hidden !important;*/
    height: 100%;
    background: #EEEBED 0% 0% no-repeat padding-box;
    padding: 0 15px;
}

.mobile-friendly-wizard.custom-fluent-wizard {
    --fluent-wizard-circle-size: 40px !important;
    height: 100% !important;
}

    .mobile-friendly-wizard.custom-fluent-wizard > ol {
        padding-inline-start: 0px;
        /*        margin-block-start: 20px !important;
        margin-block-end: 20px !important;*/
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        display: flex;
        justify-content: center;
    }

    .mobile-friendly-wizard.custom-fluent-wizard .fluent-typography {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 14px !important;
        font-weight: bold !important;
        text-transform: uppercase !important;
    }

    .mobile-friendly-wizard.custom-fluent-wizard li[status="current"] .fluent-wizard-icon svg {
        fill: #da4660 !important; /* Red color */
    }

    .mobile-friendly-wizard.custom-fluent-wizard > ol > li .fluent-wizard-icon-number {
        font-size: larger !important;
    }

.mobile-friendly-wizard .fluent-wizard-step {
    width: 100%;
    max-width: 100%;
}

/* Tablet styles */
@media (min-width: 768px) {
    .mobile-friendly-wizard .fluent-wizard-content {
        padding: 0 20px;
    }

    .mobile-friendly-wizard.custom-fluent-wizard > ol {
        padding-left: 40px !important;
        padding-right: 40px !important;
        margin-block-start: 25px !important;
        margin-block-end: 25px !important;
        height: 100% !important;
    }

    .mobile-friendly-wizard.custom-fluent-wizard .fluent-typography {
        font-size: 16px !important;
    }

    .mobile-friendly-wizard.custom-fluent-wizard {
        --fluent-wizard-circle-size: 40px !important;
        height: 100% !important;
    }
}

/* Desktop styles */
@media (min-width: 992px) {
    .mobile-friendly-wizard .fluent-wizard-content {
        padding: 0 30px;
    }

    .mobile-friendly-wizard.custom-fluent-wizard > ol {
        padding-left: 125px !important;
        padding-right: 125px !important;
        margin-block-start: 30px !important;
        margin-block-end: 30px !important;
    }

    .mobile-friendly-wizard.custom-fluent-wizard .fluent-typography {
        font-size: 18px !important;
    }

    .mobile-friendly-wizard.custom-fluent-wizard {
        --fluent-wizard-circle-size: 40px !important;
        height: 100% !important;
    }
}

/* Additional overrides that might be needed */
.mobile-friendly-wizard .fluent-wizard-step-container {
    width: 100%;
}

.mobile-friendly-wizard fluent-wizard-step {
    width: 100%;
    box-sizing: border-box;
}

/* Style for the current step title (visible only on mobile) */
.current-step-title {
    display: none; /* Hidden by default */
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    margin: 0.5rem 0 0 0;
    padding: 0.5rem 0 0 0;
    color: var(--accent-foreground-rest);
}

/* Show the current step title only on mobile devices */
@media (max-width: 600px) {
    .current-step-title {
        display: block;
    }
}

/* Trying with global (for FluentGrid) */
@media (min-width: 1280px) {
    .border-left-above-1280 {
        border-left: 1px solid grey;
    }
}

/* Message Center */

.message-container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0px;
    padding: 5px 10px 5px 10px;
    border-bottom: 1px solid var(--color-stark-rad);
    font-family: 'filson pro', sans-serif !important;
    font-size: 0.8rem;
    color: var(--color-blod-sort);
}

.message-title {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.message-date {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding-right: 0.5rem;
}

.message-recipient {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 3px;
}

.message-clips {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
}

.message-not-read {
    font-weight: bold;
}

@media (min-width: 768px) {
    .message-container {
        padding: 10px 20px 10px 20px;
        font-size: 0.8rem;
    }

    .message-title {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .message-recipient {
        margin-bottom: 5px;
    }
}

@media (min-width: 1024px) {
    .message-container {
        padding: 10px 20px 10px 20px;
        font-size: 1rem;
    }

    .message-title {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .message-recipient {
        margin-bottom: 5px;
    }
}

/* Fluent Card minimal styles*/
.fluent-card-min-style {
    padding: 0px !important;
    border: none !important;
    border-radius: 20px !important;
    height: 350px !important;
}

/* Only for mobile */
@media (max-width: 768px) {
    .fluent-card-min-style.auto-height-mobile {
        height: auto !important;
        max-height: none !important;
        min-height: unset !important;
        overflow: visible !important;
    }
}

@media (max-width: 768px) {
    .fluent-card-min-style.fixed-height-mobile {
        height: 450px !important;
    }
}

@media (min-width: 768px) {
    .fluent-card-min-style {
        height: 450px !important;
    }
}

.fluent-card-minimal-style.fluentCardVh {
    padding: 0;
    border: none;
    border-radius: 20px;
    height: calc(100vh - 125px);
    height: calc(100dvh - 125px);
}

@media (min-width: 768px) {
    .fluent-card-minimal-style.fluentCardVh {
        height: calc(100vh - 125px);
        height: calc(100dvh - 125px);
    }
}

@media (min-width: 1024px) {
    .fluent-card-minimal-style.fluentCardVh {
        height: calc(100vh - 200px);
        height: calc(100dvh - 200px);
    }
}
