/* 
---------------------------------------------
font & reset css
--------------------------------------------- 
*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900");
@import url("https://use.fontawesome.com/releases/v6.5.2/css/all.css");

/* 
---------------------------------------------
reset
--------------------------------------------- 
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, div
pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q,
s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
figure, header, nav, section, article, aside, footer, figcaption {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

header, nav, section, article, aside, footer, hgroup {
  display: block;
}

* {
  box-sizing: border-box;
}

html, body 
{
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #DEF0F8;
}

:root {
    /* Set your primary layout font globally */
    --bs-body-font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  text-decoration: none !important;
}

a:hover {
	color: #F99;
}

h1, h2, h3, h4, h5, h6 
{
  margin-top: 0px;
  margin-bottom: 0px;
  color: #000;
  font-weight: 700;
}

ul {
  margin-bottom: 0px;
}

p {
  font-size: 15px;
  line-height: 30px;
  color: #fff;
}

img {
  width: 100%;
  overflow: hidden;
}

p {
  font-size: 15px;
  color: #666;
  line-height: 30px;
  margin-bottom: 0px;
}

::selection {
  background: #e75e8d;
  color: #fff;
}

::-moz-selection {
  background: #e75e8d;
  color: #fff;
}

html > body {
  overflow: hidden;
}

/*.card .card-body
{
	padding-top: 0;
	padding-bottom: 0;
	display: flex;
	flex-wrap: wrap;
}*/

.card .name
{
	font-size: 1.3em;
	line-height: 1.1em;
}

div.card.selected {
    border: solid 2px #48519E;
}

.tippy-arrow:before {
    color: #48519e;
}

.tippy-box {
    background: #48519e;
}

.tippy-content 
{
    font-size: 9pt;
}

body button.btn.btn-primary, .toggle-on {
    --bs-btn-bg: #5b63a9 !important;
    --bs-btn-border-color: #5b63a9 !important;
    --bs-btn-hover-bg: #48519e;
    --bs-btn-hover-border-color: #48519e;
    --bs-btn-disabled-opacity: 0.35;
}

control, grid {
    display: none;
}


/* 
Survey JS ------------------
*/
/* ==========================================================================
   1. GLOBAL REUSABLE TYPOGRAPHY & SPACING VARIABLES
   ========================================================================== */
.modal-dialog .sjs-bootstrap-flat,
.modal-dialog .sjs-bootstrap-flat * {
    /* Forces all nested components to adopt your custom app typography */
    --sjs-font-family: var(--bs-body-font-family, 'Poppins', sans-serif) !important;
    font-family: var(--bs-body-font-family, 'Poppins', sans-serif) !important;
    /* Erase native white card backgrounds, tints, and dropshadows */
    --sjs-general-backcolor: transparent !important;
    --sjs-general-backcolor-dim: transparent !important;
    --sjs-shadow-inner: none !important;
    --sjs-shadow-small: none !important;
    --sjs-shadow-medium: none !important;
    --sjs-shadow-large: none !important;
    /* Dynamically flattens padding and row margin gaps across the entire sheet layout */
    --sjs-base-unit: 2px !important;
    --sd-action-background: #5b63a9 !important;
    --sd-action-hover-background: #48519e !important;
    --sd-action-disabled-background: #0d6efd !important;
}

/* Defeat the SurveyJS universal font override for Font Awesome icons */
.modal-dialog .sjs-bootstrap-flat .fa-solid,
.modal-dialog .sjs-bootstrap-flat .fa-regular,
.modal-dialog .sjs-bootstrap-flat .fa,
.modal-dialog .sjs-bootstrap-flat [class^="fa-"],
.modal-dialog .sjs-bootstrap-flat [class*=" fa-"] 
{
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important; /* Required for solid icons to render */
}



    /* ==========================================================================
   2. MAIN SURVEY LAYOUT & CONTAINERS (STRIP BACKGROUNDS & FLEX DROPS)
   ========================================================================== */
    /* Targets the modern page container hierarchies globally */
    .modal-dialog .sjs-bootstrap-flat .sd-container-modern,
    .modal-dialog .sjs-bootstrap-flat .sd-page,
    .modal-dialog .sjs-bootstrap-flat .sd-page__content,
    .modal-dialog .sjs-bootstrap-flat .sv-components-row {
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        row-gap: 0 !important;
    }

    /* Break the automatic full-height flex distribution and reset main body padding */
    .modal-dialog .sjs-bootstrap-flat .sd-body,
    .modal-dialog .sjs-bootstrap-flat .sd-body--responsive {
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        padding-bottom: 0 !important;
        display: block !important;
        height: auto !important;
    }

    /* Clean up expandable column wraps */
    .modal-dialog .sjs-bootstrap-flat .sv-components-column--expandable {
        height: auto !important;
        display: block !important;
    }

    /* Remove phantom scroll elements */
    .modal-dialog .sjs-bootstrap-flat .sv-scroll__scrollbar {
        display: none !important;
    }

    /* ==========================================================================
   3. QUESTION WRAPPERS & PANEL ELEMENTS
   ========================================================================== */
    /* Strips outline framing boxes from question wrappers and panels */
    .modal-dialog .sjs-bootstrap-flat .sd-question,
    .modal-dialog .sjs-bootstrap-flat .sd-panel,
    .modal-dialog .sjs-bootstrap-flat .sd-element {
        background-color: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

	/* Align page header and progress bar flush-left with flat questions */
	.modal-dialog .sjs-bootstrap-flat .sd-page__header,
	.modal-dialog .sjs-bootstrap-flat .sd-header,
	.modal-dialog .sjs-bootstrap-flat .sd-progress-buttons,
	.modal-dialog .sjs-bootstrap-flat .sd-progress-buttons__container,
	.modal-dialog .sjs-bootstrap-flat .sd-progress-buttons__list-container,
	.modal-dialog .sjs-bootstrap-flat .sd-progress-buttons__list
	{
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

    /* Keep header layouts clear and bold */
    .modal-dialog .sjs-bootstrap-flat .sd-element__title {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #212529 !important;
        margin-bottom: 0.5rem !important;
    }

    /* Section panel header adjustments */
    .modal-dialog .sjs-bootstrap-flat .sd-panel__header .sd-element__title.sd-panel__title {
        font-size: 1.3rem !important;
    }

    /* Header structural blocks */
    .modal-dialog .sjs-bootstrap-flat .sv-header__content.sv-header__content--responsive,
    .modal-dialog .sjs-bootstrap-flat .sv-header--mobile {
        padding-top: 0px;
        padding-inline: 0px;
    }

    /* ==========================================================================
   4. LAYOUT ROWS & REUSABLE SEPARATOR LINES
   ========================================================================== */
    .modal-dialog .sjs-bootstrap-flat .sd-row,
    .modal-dialog .sjs-bootstrap-flat .sd-page__row {
        row-gap: 0 !important;
        /* Adds a subtle light grey separator line between rows */
        border-bottom: 1px solid #dcdcdc !important;
        /* Adds a tiny bit of breathing room above and below the line */
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

        /* Removes the line from the very last row so it doesn't overlap the footer */
        .modal-dialog .sjs-bootstrap-flat .sd-row:last-child,
        .modal-dialog .sjs-bootstrap-flat .sd-page__row:last-child {
            border-bottom: none !important;
        }

    /* ==========================================================================
   5. NAVIGATION ACTION BAR & FOOTER CONTAINER
   ========================================================================== */
    .modal-dialog .sjs-bootstrap-flat .sd-signaturepad .sd-action-bar,
    .modal-dialog .sjs-bootstrap-flat .sd-footer,
    .modal-dialog .sjs-bootstrap-flat .sv-action-bar,
    .modal-dialog .sjs-bootstrap-flat .sd-body__navigation {
        display: flex !important;
        justify-content: stretch !important;
        align-items: stretch !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important; /* Prevents button corner clipping */
    }

    /* ==========================================================================
   6. GLOBAL FULL-WIDTH BUTTON ELEMENT DEFINITIONS
   ========================================================================== */
	/* Generic items container styling */
	.modal-dialog .sjs-bootstrap-flat .sd-action-bar__item,
	div[class*="sd-action-bar_item"],
	.modal-dialog .sjs-bootstrap-flat .sd-navigation,
	.modal-dialog .sjs-bootstrap-flat .sd-action-bar__item-content
	{
		flex: 0 1 auto !important;
		flex-grow: 0 !important;
		max-width: none !important;
		width: auto !important;
		padding: 0 !important;
		/* Elegant outer margin buffer prevents corner clipping against the panel grid */
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		margin-left: 1px !important;
		margin-right: 1px !important;
		box-sizing: border-box !important;
	}

	/* Ensure the button content inside aligns right as well */
	.modal-dialog .sjs-bootstrap-flat .sjs_sp_controls .sd-action-bar__item-content
	{
		justify-content: flex-end !important;
	}

        /* Normalize the actual complete button size, heights, and padding widths universally */
		.modal-dialog .sjs-bootstrap-flat .sd-navigation__complete-btn,
		.modal-dialog .sjs-bootstrap-flat .sd-action-btn--complete,
		.modal-dialog .sjs-bootstrap-flat .sd-navigation button
		{
			width: auto !important;
			max-width: none !important;
			display: inline-flex !important;
			align-items: center !important;
			justify-content: center !important;
			box-sizing: border-box !important;
			/* Keep locked height and clean typography centering */
			height: 48px !important;
			padding-top: 0 !important;
			padding-bottom: 0 !important;
			line-height: 48px !important;
		}

    /* ==========================================================================
   7. CUSTOM FORM CHECKBOX ELEMENTS
   ========================================================================== */
    .modal-dialog .sjs-bootstrap-flat .sd-item__decorator {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        border: solid 1px #bfbfbf;
        margin: 0;
    }

    .modal-dialog .sjs-bootstrap-flat .sd-item__svg {
        width: 14px !important;
        height: 14px !important;
    }

    .modal-dialog .sjs-bootstrap-flat span.subtle {
        color: #626262;
        font-size: 11pt;
    }

.modal-dialog .sjs-bootstrap-flat button
{
    box-shadow:none !important;
}

.modal-dialog .sjs-bootstrap-flat mark {
    background-color: rgba(var(--bs-primary-rgb), 0.12) !important; /* Soft version of your theme color */
    color: var(--bs-primary) !important; /* Crisp theme text color */
    padding: 0.15em 0.4em !important; /* Clean spacing around text */
    border-radius: var(--bs-border-radius-sm) !important; /* Smooth Bootstrap rounded edges */
    font-weight: 500; /* Makes the highlighted text pop slightly */
}


.modal-dialog .sjs-bootstrap-flat .sd-html {
    background: white;
    color: black;
    text-align: justify;
}

.modal-dialog .sjs-bootstrap-flat .sd-html h2 {
    font-size: 16pt;
}

.modal-dialog .sjs-bootstrap-flat .sd-html h3 {
    font-size: 14pt;
}

.modal-dialog .sjs-bootstrap-flat .sd-html ul li 
{
    list-style-type: disc !important;
    list-style-position: outside !important;
    margin-left: 1.5rem !important; /* Creates the pocket space for the bullet */
    padding-left: 0.25rem !important; /* Adds slight breathing room between bullet and text */
}

.modal-dialog .sjs-bootstrap-flat .sd-error__item {
    color: #dc3545;
    font-weight: bold;
    font-size: 11.5pt;
}


/* Prepend the Font Awesome icon */
.modal-dialog .sjs-bootstrap-flat .sd-error__item ::before {
    font-family: "Font Awesome 6 Free";
    content: "\f071";
    font-weight: bold;
    color: #dc3545;
    margin-right: 0.2em;
}


.modal-dialog .sjs-bootstrap-flat .sd-formbox:not(.sd-formbox--readonly):where(:focus-within) {
    box-shadow: var(--sjs2-border-effect-component-formbox-default-reset), var(--sjs2-border-effect-component-formbox-focused), var(--sjs2-border-effect-component-formbox-a11y);
    border: 1px solid transparent;
}

.modal-dialog .sjs-bootstrap-flat .sd-formbox:not(.sd-formbox--readonly):where(:not(:focus-within)) {
    border: 1px solid #ced4da;
    box-shadow: inset 0px 0px 0px 0px transparent, inset 0px 0px 0px 1px transparent,0 0 0 0.25rem transparent, 0px 0px 0px 0px transparent
}



.modal-dialog .sjs-bootstrap-flat .sd-signaturepad {
    border: 1px solid #ced4da;
}


/* Force the action item wrapper to align to the right */
.modal-dialog .sjs-bootstrap-flat .sjs_sp_controls .sd-action-bar__item {
    margin-left: auto !important;
    margin-right: 0 !important;
}


.modal-dialog .sjs-bootstrap-flat .sd-signaturepad__clear {
    color: white;
    background: white;
    border: solid 1px #ced4da;
}


    .modal-dialog .sjs-bootstrap-flat .sd-formbox--readonly .sd-formbox__input 
    {
        background-color: var(--bs-gray-200, #e9ecef) !important; /* Muted theme gray */
        color: var(--bs-secondary-color, #6c757d) !important; /* Muted text color */
        border-color: var(--bs-border-color-translucent, #dee2e6) !important;
        cursor: not-allowed !important; /* Change cursor to locked icon */
        opacity: 0.85; /* Subtle fade out */
    }

.modal-dialog .sjs-bootstrap-flat .sv-string-viewer p 
{
    color: black;
    line-height: calc(var(--sjs2-typography-font-size-component-survey-header-description) * 2.5);
}

.modal-dialog .sjs-bootstrap-flat .bullet-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.modal-dialog .sjs-bootstrap-flat .bullet-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 0.75rem !important;
}

.modal-dialog .sjs-bootstrap-flat .bullet-list li i {
    flex-shrink: 0 !important;
    margin-top: 4px !important; /* Perfect align center with font line */
}

.modal-dialog .sjs-bootstrap-flat .sd-action-bar.sd-signaturepad__controls {
    pointer-events: none;
}

.modal-dialog .sjs-bootstrap-flat .sd-action-bar__item-content * {
    pointer-events: all;
}

.modal-dialog .sjs-bootstrap-flat button.sd-action .sd-action__title
{
	color:white;
}

.modal-dialog .sjs-bootstrap-flat .sd-row__question 
{
    text-wrap-mode:wrap;
    white-space:wrap;
}

	.modal-dialog .sjs-bootstrap-flat  .sd-action-bar.sd-footer
{
	display: flex !important;
	flex-direction: row !important;
	justify-content: space-between !important;
	width: 100%;
}

	.modal-dialog .sjs-bootstrap-flat .sd-navigation__prev-btn,
	.modal-dialog .sjs-bootstrap-flat .sd-navigation__next-btn,
	.modal-dialog .sjs-bootstrap-flat .sd-navigation__complete-btn,
	.modal-dialog .sjs-bootstrap-flat .sd-action-btn--complete,
	.modal-dialog .sjs-bootstrap-flat .sd-navigation button
	{
		width: auto !important;
		max-width: none !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 8px !important; /* Clean spacing between Font Awesome icon and text */
		box-sizing: border-box !important;
		height: 38px !important; /* Matches Previous button & standard Bootstrap height */
		line-height: 1 !important; /* Prevents tall line-height from stretching flex buttons */
		padding: 0 16px !important;
	}

.modal-dialog .sjs-bootstrap-flat .sd-navigation button i,
.sd-action-bar .sd-action i
{
	color: #ffffff !important;
}

/* Pushes Next and Submit to the far right, even when Previous isn't on Page 1 */
	.modal-dialog .sjs-bootstrap-flat .sd-action-bar.sd-footer .sv-action:last-child,
	.modal-dialog .sjs-bootstrap-flat .sd-action-bar.sd-footer .sd-action-bar__item:last-child
	{
		margin-left: auto !important;
	}


	/* Make Font Awesome icons inside ALL SurveyJS buttons white (including Add Another Person) */
	.modal-dialog .sjs-bootstrap-flat button i,
	.sd-action-bar .sd-action i
	{
		color: #ffffff !important;
	}

	/* Add clean spacing between the plus icon and text on the Add button */
	.modal-dialog .sjs-bootstrap-flat .sd-paneldynamic__add-btn
	{
		display: inline-flex !important;
		align-items: center !important;
		gap: 8px !important;
	}

	/* Make Dropdown chevron & clear SVG icons white */
	.modal-dialog .sjs-bootstrap-flat .sd-editor-chevron-button svg,
	.modal-dialog .sjs-bootstrap-flat .sd-editor-clean-button svg,
	.modal-dialog .sjs-bootstrap-flat .sd-dropdown-action-bar svg
	{
		fill: #ffffff !important;
		stroke: #ffffff !important;
		color: #ffffff !important;
	}

	/* Style the Remove Person button layout so the icon aligns nicely */
	.modal-dialog .sjs-bootstrap-flat .sd-paneldynamic__remove-btn
	{
		display: inline-flex !important;
		align-items: center !important;
		gap: 8px !important;
	}

/* Override SurveyJS v2 brand primary variable */
.modal-dialog .sjs-bootstrap-flat
{
	--sjs-color-fg-brand-primary: #5b67a2 !important;
	--sjs-color-bg-brand-primary: #5b67a2 !important;
}

	/* Direct overrides for completed steps, current step dot/ring, and connecting bar */
	.modal-dialog .sjs-bootstrap-flat .sd-progress-buttons__list-element--passed .sd-progress-buttons__dot,
	.modal-dialog .sjs-bootstrap-flat .sd-progress-buttons__list-element--current .sd-progress-buttons__dot
	{
		background-color: #5b67a2 !important;
		border-color: #5b67a2 !important;
	}

	.modal-dialog .sjs-bootstrap-flat .sd-progress-buttons__list-element--current .sd-progress-buttons__button
	{
		border-color: #5b67a2 !important;
	}

	.modal-dialog .sjs-bootstrap-flat .sd-progress-buttons__list-element--passed::after,
	.modal-dialog .sjs-bootstrap-flat .sd-progress-buttons__connector::after
	{
		background-color: #5b67a2 !important;
	}


	/* Group all inputs for a single person using a 4px left border */
	.modal-dialog .sjs-bootstrap-flat .sd-paneldynamic__panel-wrapper
	{
		border-left: 4px solid #5b67a2 !important;
		padding-left: 16px !important;
		margin-bottom: 24px !important;
	}

	/* Hide SurveyJS's default horizontal separator line between people */
	.modal-dialog .sjs-bootstrap-flat .sd-paneldynamic__separator
	{
		display: none !important;
	}

	.modal-dialog .sjs-bootstrap-flat .sd-paneldynamic__footer .sd-paneldynamic__separator, .sd-paneldynamic__panel-wrapper--list ~ .sd-paneldynamic__panel-wrapper--list:before
	{
		content: none !important;
	}


    .modal-dialog .sjs-bootstrap-flat .sd-editor-chevron-button .sd-action--tertiary {
        padding: 0;
        background-color: transparent;
        border: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .modal-dialog .sjs-bootstrap-flat .sd-editor-chevron-button .sv-svg-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
