/* Reset CSS */

:root {
    --primary-color: #016BFE;
    --light-primary-color: #E6F0FF;
    --extra-light-primary-color: #f0f7ff;
    --secondary-color: #13243E;
    --tertiary-color: #FFFFFF;
    --error-color: #f44646;
    --success-color: #2AC76B;
    --shadow-card-color: #c3d8f5;
}

/*General******************************************************/

* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    padding: 0;
    margin: 0;
}

.app {
    padding: 0 20px;
}

img {
    max-width: 100%;
    pointer-events: none;
}

p {
    margin: 0px;
    padding: 0px;
}

button {
    color: var(--tertiary-color);
    background: var(--primary-color);
    line-height: 1;
    border: none;
    font-family: "Inter", sans-serif;
    text-align: center;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
}

button:hover {
    background: var(--light-primary-color);
    color: var(--primary-color);
}

button:active {
    transform: translateY(3px);
}

button.disabled {
    background: #cecece;
    color: #ffffff;
    box-shadow: none;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-top: 20px;
    resize: vertical;
    font-family: inherit;
    outline: none;
}

textarea::placeholder {
    color: #B2AEAE;
}

textarea:focus {
    border: 1px solid var(--primary-color);
}

/*Javascript******************************************************/

.hidden {
    visibility: hidden !important;
}

.display-none {
    display: none !important;
}

/*Multi Step Form**********************************************/

.multi-step-form {
    max-width: 900px;
    margin: 0px auto 30px;
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 15px 0 rgba(0, 0, 0, 0.19);
    border-radius: 20px;
}

.multi-step-form .form-header {
    background-color: var(--secondary-color);
    padding: 5px 20px 20px;
    border-radius: 20px 20px 0 0;
    color: var(--tertiary-color);
}

.multi-step-form .form-body {
    padding: 40px;
}

.multi-step-form .form-footer {
    padding: 20px 25px;
    gap: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 200px;
    margin: 30px auto;
    display: block;
}

/*Containers******************************************************/

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.container {
    margin: 0px auto;
    padding: 25px 0;
    box-shadow: 0 1px 5px -1px rgba(0, 0, 0, 0.2), 0 2px 5px 0 rgba(0, 0, 0, 0.19);
    border-radius: 20px;
}

.container-single {
    position: relative;
    width: 80%;
}

.container-form {
    width: 80%;
}

/*Texts******************************************************/

.text {
    color: var(--secondary-color);
}

/*Titles*****************************************************************/

.left-title {
    width: 155px;
    padding: 5px 0px 5px 35px;
    background-color: var(--primary-color);
    color: var(--tertiary-color);
    text-align: left;
    border-radius: 0px 5px 5px 0px;
}

.title-mini {
    font-size: 1em;
    font-weight: 500;
    color: var(--primary-color);
}

.title-animation {
    font-size: 1.30em;
    font-weight: 500;
    color: #7c7c7c;
}

/*Buttons******************************************************/

.form-footer button {
    width: 70px;
    padding: 5px;
    background-color: #FFFFFF;
    box-shadow: 0 1px 8px -1px rgba(0, 0, 0, 0.2), 0 2px 10px 0 rgba(0, 0, 0, 0.19);
    border: none;
    border-radius: 50px;
}

.form-footer button:hover {
    background-color: var(--light-primary-color);
    cursor: pointer;
}

.form-footer button:active {
    transform: translateY(2px);
    box-shadow: none;
}

.form-footer button.disabled,
.form-footer button.disabled>i {
    background-color: #cecece;
    color: #ffffff;
    box-shadow: none;
}

.input-form button {
    margin-top: 10px;
    padding: 15px;
}

/*Icons******************************************************/

.icon {
    height: 40px;
}

.arrow-icon {
    font-size: 22px;
    color: var(--primary-color);
}

.down-icon {
    position: absolute;
    right: 15px;
    color: #B2AEAE;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    pointer-events: none;
}

.icon-card {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    margin: 10px 0;
}

.calendar-icon {
    position: absolute;
    left: 15px;
    width: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.user-icon,
.email-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.phone-inputs-down-icon {
    position: absolute;
    color: var(--primary-color);
    left: 0;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75em;
    pointer-events: none;
}

/*Progress Bar******************************************************/

.progress-bar {
    width: 100%;
    transition: width 500ms ease-in-out;
    background-color: #344969;
    border-radius: 20px;
}

.progress-bar .fill {
    display: flex;
    justify-content: flex-start;
    width: 0%;
    height: 3px;
    margin-top: 3px;
    background-color: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
}

/*Selections******************************************************/

.selections {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--tertiary-color);
    box-shadow: 0 1px 8px -1px rgba(0, 0, 0, 0.2), 0 2px 10px 0 rgba(0, 0, 0, 0.19);
    border-radius: 20px;
    width: 130px;
    height: 130px;
    gap: 10px;
}

.selection:hover {
    background-color: var(--light-primary-color);
    cursor: pointer;
}

.selection:active {
    transform: translateY(2px);
    box-shadow: none;
}

/*Selections Icon*/
.selections-icon .selection {
    padding-top: 13px;
}

/*Selections Number*/
.selections-number {
    flex-wrap: wrap;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.selections-number>.selection {
    width: 100px;
    height: 100px;
}

.selections-number>.selection:hover {
    background-color: var(--light-primary-color);
    cursor: pointer;
}

.selections-number>.selection>.text {
    font-size: 1em;
    font-weight: 500;
}

/*Selections List*/
.selections-list {
    width: 80%;
    margin: 0px auto;
    background-color: var(--extra-light-primary-color);
    border-radius: 20px;
}

.selections-list>div {
    padding: 12px;
}

.selections-list>div:not(:last-child) {
    border-bottom: 1px solid #d7dbdf;
}

.selections-list>div:hover {
    background-color: var(--light-primary-color);
    cursor: pointer;
}

.selections-list>div:active {
    transform: translateY(2px);
}

/*Inputs******************************************************/

.inputs-container {
    width: 50%;
}

.inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 30px 25px 30px;
}

.inputs input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    color: var(--secondary-color);
}

.inputs input::placeholder {
    font-family: "Inter", sans-serif;
    font-size: 0.95em;
    font-weight: 400;
    color: #B2AEAE;
}

.inputs input:focus {
    outline: none;
    border: 1px solid var(--primary-color);
}

.inputs label {
    position: relative;
}

/*Error and Success Messages******************************************************/

.inputs input.empty,
.inputs input.filled {
    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease;
}

.inputs input.empty {
    color: var(--error-color);
    border: 1px solid rgb(244, 70, 70, 0.3) !important;
    background-color: rgb(244, 70, 70, 0.1);
}

.inputs input.filled {
    border: 1px solid var(--success-color) !important;
}

.input-icon-box {
    position: absolute;
    font-size: 1.50em;
    right: 0;
    top: 0;
}
.input-icon-box i {
    transition: opacity 0.2s ease;
    opacity: 0;
    position: absolute;
    right: 10px;
    top: 21px;
    transform: translateY(-50%);
}

.inputs .fa-circle-xmark {
    color: var(--error-color);
}
.inputs .fa-check-circle {
    color: var(--success-color);
}

.inputs input.empty + span .fa-circle-xmark {
    opacity: 1 !important;
}

.inputs input.filled + span .fa-check-circle {
    opacity: 1 !important;
}

/*Information Box******************************************************/

.information-box {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--light-primary-color);
    padding: 5px 10px;
}

.information-box-left {
    position: absolute;
    font-size: 0.85em;
    left: 30px;
    top: 0px;
    border-radius: 0 0 8px 8px;
}

.information-box img {
    width: 16px;
    height: 16px;
}

.text-information {
    font-size: 0.85em;
    font-weight: 500;
    color: var(--primary-color);
}

/*Cards*****************************************************************/

.cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    width: 80%;
    margin: 0 auto;
}

.container-card {
    background-color: var(--tertiary-color);
    box-shadow: 0 1px 8px -1px var(--shadow-card-color), 0 2px 10px 0 var(--shadow-card-color);
    border-radius: 10px;
    padding: 15px;
    width: 32%;
    padding-bottom: 80px;
    margin-top: 30px;
    order: 2;
}

.container-card.bigger {
    width: 35%;
    margin-top: 0;
}

.container-card:hover {
    background-color: var(--light-primary-color);
    cursor: pointer;
}

.container-card:active {
    transform: translateY(2px);
    box-shadow: none;
}

.title-card {
    font-size: 1em;
    color: var(--primary-color);
    margin-top: 10px;
    border-bottom: 1px solid var(--shadow-card-color);
}

.text-card {
    font-size: 0.75em;
    margin-top: 12px;
    color: #818181;
}

.card-mini>img {
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.card-full>img {
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.card-full>.title-card {
    font-size: 1.15em;
    background-color: var(--light-primary-color);
    padding: 5px;
    margin: 10px -15px -15px;
}

.card-full>.text-card {
    font-size: 0.80em;
    margin-top: 26px;
}

/*Input Date******************************************************/

.input-date {
    position: relative;
    margin: 10px auto;
    width: 256px;
}

.inputs .input-date input {
    cursor: pointer;
    padding-left: 40px;
    width: 256px;
}

/*Input Form******************************************************/

.email-inputs,
.name-inputs {
    position: relative;
    width: 100%;
}

.inputs .email-inputs input,
.inputs .name-inputs input {
    padding-left: 36px;
}

.phone-inputs {
    display: flex;
    position: relative;
}

.phone-inputs select {
    margin-right: 6px;
    width: 95px;
    font-weight: 500;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    color: var(--primary-color);
    font-size: 0.75em;
    appearance: none;
    cursor: pointer;
    outline: none;
}

.phone-inputs select option {
    font-size: 1em;
    font-weight: 500;
    color: var(--secondary-color);
}

.phone-inputs select option:hover {
    background-color: var(--light-primary-color);
}

/*Loading Animations******************************************************/

.loading-animations {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.box-anim {
    height: 80px !important;
    margin-top: 15px;
    margin-bottom: 15px;
}

.loading-anim {
    width: 120px !important;
}

/*===============================================
   RESPONSIVE
   ===============================================*/

/* Tablet */
@media (max-width: 768px) {
    .multi-step-form .form-body {
        padding: 20px;
    }

    /* Containers ************************************************************/

    .container-form {
        width: 100%;
        padding: 32px 15px 20px 15px;
    }

    /* Footer ****************************************************************/

    .multi-step-form .form-footer {
        padding-left: 25px;
        padding-right: 25px;
    }

    .form-footer .information-box {
        width: 60%;
        line-height: 1em;
    }

    .form-footer .text-information {
        white-space: normal;
        font-size: 0.75em;
    }

    .form-footer button {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .text {
        font-size: 0.95em;
    }

    .title-animation {
        font-size: 1.15em;
    }

    .icon {
        height: 35px;
    }

    /* Selections ************************************************************/

    .selection {
        width: 120px;
        height: 120px;
    }

    /* Step 2b (2x2) */
    #step-2-b .selections {
        display: grid;
        grid-template-columns: repeat(2, min-content);
        justify-content: center;
        gap: 16px 32px;
    }

    /* Selections List *******************************************************/

    .selections-list {
        width: 85%;
    }

    .selections-list>div {
        padding: 14px;
    }

    /* Selections Number *****************************************************/

    .selections-number {
        gap: 10px;
    }

    .selections-number>.selection {
        width: 80px;
        height: 80px;
    }

    /* Step 7 (Inputs) *******************************************************/

    #step-7 .row {
        flex-direction: column;
        gap: 20px;
    }

    .inputs-container {
        width: 100%;
    }

    .inputs input {
        font-size: 0.9em;
    }

    /* Cards *****************************************************************/

    .cards {
        flex-wrap: wrap;
    }

    .container-card.bigger {
        order: 1;
        width: 50%;
        margin: 0 25%;
    }

    .container-card {
        width: 42%;
        margin: 8px 1%;
    }

    .container-card img {
        display: none;
    }

    .icon-card {
        display: inline-block;
    }
}

/*===============================================
   MOBILE (max-width: 480px)
   ===============================================*/

/* Mobile */
@media (max-width: 480px) {

    /* General settings ******************************************************/

    h2 {
        font-size: 1.06em;
    }

    .app {
        padding: 0 12px;
    }

    .text {
        font-size: 0.85em;
    }

    .container-single {
        width: 100%;
    }

    .multi-step-form .form-body {
        padding: 16px;
    }

    .left-title {
        font-size: 0.9em;
        padding: 5px 0 5px 20px;
    }

    .title-mini {
        margin-top: 13px;
    }

    /* Selections ******************************************************/

    .selection {
        width: 95px;
        height: 95px;
    }

    .selection .text {
        font-size: 0.8em;
    }

    .selections-icon .selection {
        padding-top: 10px;
    }

    /* Selections Number */
    .selections-number>.selection {
        width: 65px;
        height: 65px;
    }

    .selections-number>.selection .text {
        font-size: 0.8em;
    }

    /* Selections List */
    .selections-list {
        width: 90%;
    }

    .selections-list>div {
        padding: 15px;
    }

    /* Inputs ******************************************************/

    .inputs {
        padding: 20px 10px 15px 10px;
    }

    .inputs input {
        padding: 14px;
    }

    .phone-inputs {
        display: flex;
    }

    /* Icons ******************************************************/

    .icon {
        height: 30px;
    }

    .user-icon,
    .email-icon,
    .calendar-icon {
        width: 13px;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
    }

    .down-icon {
        font-size: 0.60em;
    }

    .input-icon-box i {
        right: 8px;
        top: 23px;
    }

    /* Cards ******************************************************/

    .cards {
        gap: 10px;
    }

    .container-card {
        width: 100%;
        margin: 0;
        padding-bottom: 30px;
    }

    .container-card.bigger {
        width: 100%;
        margin: 0;
    }

    .card-full>.text-card {
        font-size: 0.70em !important;
        margin-top: 10px !important;
    }

    .card-full>.title-card {
        margin: 10px 0 0 0 !important;
        font-size: 1em !important;
    }

    .text-card {
        font-size: 0.65em !important;
        margin-top: 8px !important;
    }

    .icon-card {
        font-size: 22px;
    }

    /* Loading Animations ******************************************************/

    .box-anim {
        height: 60px !important;
    }

    .loading-anim {
        width: 100px !important;
    }

    /* Information Box ******************************************************/

    .information-box,
    .information-box-left {
        font-size: 0.8em;
    }

    .information-box img {
        width: 12px;
        height: 12px;
    }

    /* Inputs ************************************************************/
    .phone-inputs select {
        width: 92px;
        padding-left: 9px;
        padding-right: 8px;
    }
    #phone-input {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Containers ***********************************************************/

    .container-form {
        padding: 18px 8px;
    }

    /* Footer *************************************************************/

    .multi-step-form .form-footer {
        flex-wrap: wrap;
        padding-bottom: 15px;
    }

    .form-footer .information-box {
        order: 1;
        width: 100%;
    }

    .form-footer .btn-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }
}

/*Success Check******************************************************/

.success-check polyline
{
    animation: checkmark 0.25s ease-in-out 0.8s backwards
}
.success-check circle
{
    animation: checkmark-circle 0.7s ease-in-out 0.8s backwards;
}
.success-check circle#colored
{
    animation: colored-circle 0.7s ease-in-out 0.8s backwards;
}

@keyframes checkmark {
    0% {
        stroke-dashoffset: 100px
    }

    100% {
        stroke-dashoffset: 0px
    }
}

@keyframes checkmark-circle {
    0% {
        stroke-dashoffset: 258px 
    }

    100% {
        stroke-dashoffset: 512px
    }
}

@keyframes colored-circle { 
    0% {
        opacity:0
    }

    100% {
        opacity:100
    }
}