﻿flow-segment-display {
    height: 100%;
    display: block;
}

.flow-flex-fill,
.flow-flex-fill-wrapper > * {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fs-modal-panel flow-segment {
    height: 100%;
}

flow-segment {
    display: block;
    /*padding: 0 24px;*/
    /*padding-bottom: 24px;*/
    height: calc(100% - 100px);
}

flow-chart img,
flow-segment img,
.client-content img {
    max-width: 100%;
    height: auto;
}

.flow-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.flow-component-wrapper {
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
    max-width: 700px !important;
    max-height: calc(100vh - 124px);
    overflow: auto;
    flex-grow: 1;
}

@media(max-width: 768px) {
    /* Ensure header stays on top */
    .flow-experience-header,
    .segment-section--header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1;
        background: white;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    /* Adjust flow container to account for fixed header and footer */
    .flow-container {
        padding-top: 70px; /* Space for fixed header */
        padding-bottom: 80px; /* Space for fixed footer */
        min-height: 100vh;
        box-sizing: border-box;
    }

    .flow-component-wrapper {
        overflow-y: auto;
        max-height: calc(100vh - 150px); /* Header + footer space */
    }

    /* Fixed bottom navigation */
    .flow-actions-button-row {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e0e0e0;
        padding: 12px 0;
        z-index: 1000;
        box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    }
}

.flow-container .flow-segment-continue {
    display: block;
    margin: auto;
}

.fs-modal-bckgnd .flow-container {
    margin: auto;
}

.flow-experience-header {

}

.flow-loader {
    margin: 30px auto;
}

.ycbm-loader {
    margin: 10px auto;
}

.flow-loader svg path,
.ycbm-loader svg path {
    stroke: rgb(27, 117, 188);
}

.question-text {
    font-weight: bold;
    font-size: 16px;
}

.question-req {
    color: #EC098C;
    margin: 3px;
    position: relative;
    top: 2px;
}

.question-help {
    font-size: 14px;
}

.flow-row {
    margin-top: -8px;
}

.flow-password-req {
    margin-top: auto !important;
    padding-left: 10px !important;
}

.flow-phone .phone {
    margin-left: 0 !important;
}

.flow-phone .phone md-input-container {
    margin-bottom: 0 !important;
}

.flow-phone-msg {
    padding-left: 10px;
    padding-top: 20px;
}

.flow-input,
.flow-continue {
    margin: 0;
    display: block;
    /*max-width: 500px;*/
}

.flow-continue {
    margin: auto;
}

.flow-input {
    max-width: calc(100vw - 50px);
    width: 100%;
}

.flow-input input {
    border: none !important;
    border-bottom: 1px solid #58595b !important;
    box-shadow: none !important;
}

.flow-input textarea {
    border: 1px solid #767676 !important;
    min-height: 100px !important;
}

.flow-continue[disabled] {
    background-color: #ececec !important;
    border-color: #767676 !important;
    color: #767676 !important;
}

.flow-input md-checkbox {
    display: block;
}

.flow-ui-component {
    padding-top: 24px;
}

.flow-input md-radio-button.md-checked .md-on,
.flow-ui-component md-radio-button.md-checked .md-on {
    background-color: rgb(27, 117, 188);
}

.flow-actions-button-row {
    padding: 12px 0;
}

.flow-actions-button-row .flow-segment-continue {
    width: 160px;
    min-width: 160px !important;
}

.scheduler-warn {
    position: relative;
    margin: 20px 0;
    padding: 20px;
    padding-left: 80px;
    border: dashed 2px #767676;
    border-radius: 10px;
}

.scheduler-warn .warn-excal {
    position: absolute;
    left: 20px;
    right: auto;
    font-size: 40px;
    background-color: #EC098C;
    color: #FFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.scheduler-warn p {
    margin: 3px 0;
}

.flow-container flow-registration #show-password-btn {
    right: 50%;
}

@media(max-width: 600px) {
    .flow-container flow-registration #show-password-btn {
        right: 1%;
    }
}

.flow-dashboard {
    margin-top: 30px;
    border-radius: 20px;
}

.flow-select-buttons > div,
.flow-radio-buttons > div {
    /*height: 50px;*/
    margin: 16px 0;
    background-color: #FFF;
    border-radius: 5px;
    transition: color, background-color .4s cubic-bezier(.25,.8,.25,1);
    border: 1px #E5ECEE solid;
    color: #58595B;
}

.flow-select-buttons > div.selected,
.flow-radio-buttons > div.selected {
    background-color: #F2F8FC;
    border-color: #0079BF40;
}

.flow-select-buttons > div.selected input, 
.flow-radio-buttons > div.selected input {
    background-color: #FFF;
    color: #58595B;
    border-bottom: 1px solid #0079BF !important;
}

.flow-radio-buttons input[type=radio] {
    position: absolute;
    width: 0;
}

.flow-select-buttons input[type=checkbox] {
    position: absolute;
    top: -9000px;
    width: 20px;
    height: 20px;
    margin: 16px;
}

.flow-select-buttons label,
.flow-radio-buttons label {
    width: 100%;
    height: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: normal;
    line-height: 18px;
    display: block;
    align-items: center;
    color: inherit;
    line-height: 20px;
    cursor: pointer;
}

.flow-select-buttons .flow-wildcard,
.flow-radio-buttons .flow-wildcard {
    display: block;
}

.flow-select-buttons .flow-wildcard .md-errors-spacer,
.flow-radio-buttons .flow-wildcard .md-errors-spacer {
    min-height: 0px;
}

@media(max-width: 400px) {
    .flow-actions-button-row .flow-segment-continue {
        width: 140px;
        min-width: 140px !important;
        margin: 0 16px;
    }

    .Scheduling-component {
        padding: 0;
    }
}

@media(max-width: 340px) {
    .flow-actions-button-row .flow-segment-continue {
        width: 100px;
        min-width: 100px !important;
        margin: 0 20px;
    }
}
