/* Outer Card */
#ec-calculator {
    display: flex;
    justify-content: center;
    font-family: "Manrope", "Segoe UI", sans-serif;
}

#ec-calculator .form-wrapper {
    --form-accent-light: #32ace2;
    --form-accent-dark: #0e2355;
    max-width: 760px;
    width: 760px;
    background: linear-gradient(180deg, var(--form-accent-light) 0 39%, #eef0f5 39% 100%);
    padding: 26px;
    border-radius: 28px;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); */
}

/* Inner White Card */
#ec-calculator .form-container {
    background: #f7f8fc;
    border-radius: 24px;
    padding: 34px 40px 34px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-shadow: 0 18px 45px rgba(18, 22, 56, 0.16);
}

#ec-calculator .form-container .ec-title {
    text-align: center;
    margin: 0;
    color: #0e2355;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.2px;
}

/* Step Indicator */
#ec-calculator .step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    position: relative;
}

#ec-calculator .step-indicator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e0e6ed;
    transform: translateY(-50%);
    z-index: 0;
}

#ec-calculator .step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e0e6ed;
    color: #6b7a90;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 1;
}

#ec-calculator .step.active {
    background: var(--form-accent-light);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(44, 141, 183, 0.2);
}

/* Question */
#ec-calculator .question {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
    color: #0d2c54;
    margin-bottom: -16px;
}

/* Options */
#ec-calculator .option {
    border: 1px solid #d9e1ea;
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 0px;
    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
    color: #27304a;
    font-size: 16px;
    background: #f9fbff;
}

#ec-calculator .option:hover {
    border-color: #2c8db7;
    background: #f5fbff;
}

#ec-calculator .option.selected {
    background: #2c8db7;
    color: #fff;
}

#ec-calculator .option.selected .ec-step-icon {
    filter: invert(1);
}

/* Buttons */
#ec-calculator .btn {
    margin-top: -6px;
    display: flex;
    gap: 12px;
    border: none;
    cursor: auto;
    padding: 0;
}

#ec-calculator .btn:active {
   border: none !important;
}

#ec-calculator .btn .next-btn {
    /* flex: 1;
    background: #0d2c54;
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 22px rgba(14, 35, 85, 0.28);
    border: 1px solid transparent; */
    background: var(--form-accent-dark);
    color: #fff;
    box-shadow: 0 10px 22px rgba(14, 35, 85, 0.28);
    transition: all 0.2s ease-in-out;
}

#ec-calculator .btn .back-btn {
    /* flex: 1;
    background: #edf1f8;
    color: #30405f;
    border: 1px solid transparent;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s; */
    background: #edf1f8;
    border-color: #d8deea;
    color: #30405f;
    transition: all 0.2s ease-in-out;
}

#ec-calculator .btn button {
    min-height: 46px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid transparent;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease-in-out;
}

#ec-calculator .back-btn:disabled {
    /* opacity: .5; */
    background: #e4e8f1 !important;
    border-color: #d8deea !important;
    color: #9aa6bd !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transition: all 0.2s ease-in-out;
}

/* #ec-calculator .back-btn:disabled {
    background: #e4e8f1;
    border-color: #d8deea;
    color: #9aa6bd;
    box-shadow: none;
    cursor: not-allowed;
} */

/* #ec-calculator .btn button:hover {
    background: #173d72;
} */



/* Confetti */
#ec-calculator .confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: yellow;
    animation: fall 2s linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(600px) rotate(720deg);
        opacity: 0;
    }
}

#ec-calculator .ec-user-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

#ec-calculator .ec-user-form input:hover,
#ec-calculator .ec-user-form input:focus {
    border-color: #32ace2 !important;
}

#ec-calculator .ec-user-form input {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid #d9e0ec;
    color: #27304a;
    font-size: 16px;
    background: #f9fbff;
    transition: all 0.2s ease;
}

/* Total Screen */
#ec-calculator .total-screen {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#ec-calculator .total-amount {
    font-size: 40px;
    font-weight: 700;
    margin: 0px;
    color: #2c8db7;
}

#ec-calculator .total-amount .currency-initial {
    font-size: 18px;
    vertical-align: top;
    background: #2c8db7;
    color: #fff;
    padding: 8px;
    border-radius: 100px;
}

#ec-calculator .total-screen .ec-final-result-title {
    margin: 0;
}

#ec-calculator .total-screen .ec-final-result-subtitle {
    margin: 0px;
}

#ec-calculator .ec-breakdown {
    margin: 0px;
    background: linear-gradient(180deg, #4fa3c9, #2c8db7);
    padding: 25px;
    border-radius: 16px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#ec-calculator .ec-breakdown .ec-breakdown-title {
    text-align: center;
    margin: 0px;
}

#ec-calculator .ec-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    text-align: center;
}

#ec-calculator .ec-breakdown-grid span {
    display: block;
    color: #0c0d0e;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ec-calculator .ec-breakdown-grid strong {
    font-size: 18px;
}

#ec-calculator .info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0c0d0e;
    color: white !important;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    position: relative;
    margin-left: 5px;
}

#ec-calculator .tooltip {
    display: none;
    position: absolute;
    top: 25px;
    right: 0;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 180px;
    text-align: left;
    color: #0c0d0e;
	opacity:1;
}

#ec-calculator .tooltip ul {
    margin: 0;
    padding-left: 18px;
}

#ec-calculator .info-icon:hover .tooltip {
    display: block;
}


#ec-calculator .option {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: column;
    min-height: 125px;
}

#ec-calculator .option svg {
    fill: #2c8db7;
    width: 26px;
    height: 26px;
}

/* #ec-calculator .option.selected svg {
    fill: #fff;
} */

#ec-calculator .options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: auto;
    width: 100%;
}

#ec-calculator .country-step .options {
    grid-template-columns: repeat(4, 1fr);
}

#ec-calculator .course-step .options,
#ec-calculator .living-step .options,
#ec-calculator .transport-step .options {
    grid-template-columns: repeat(2, 1fr);
}

#ec-calculator .food-step .options,
#ec-calculator .activities-step .options {
    grid-template-columns: repeat(3, 1fr);
}

#ec-calculator .lead-form-step .options {
    display: flex;
}

/* Country Option Layout */
#ec-calculator .country-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

#ec-calculator .country-flag {
    width: 100%;
    max-width: 100px;
	height:65px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

#ec-calculator .option .country-option {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

#ec-calculator .next-btn:disabled {
    background: #e4e8f1;
    border-color: #d8deea;
    color: #9aa6bd;
    box-shadow: none;
    cursor: not-allowed;
}

#ec-calculator .ec-user-form .field {
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#ec-calculator .ec-user-form .error {
    color: #c62828;
    font-size: 12px;
    display: block;
    margin-top: 0px;
}

#ec-calculator .input-error {
    border-color: #c62828 !important;
}

#ec-calculator .next-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Mobile CSS */
@media only screen and (max-width: 767px) {
    #ec-calculator .step-indicator {
        display: none;
    }

    #ec-calculator .step {
        width: 30px;
        height: 30px;
    }

    #ec-calculator .country-step .options {
        grid-template-columns: repeat(2, 1fr);
    }

    #ec-calculator .form-wrapper {
        padding: 10px;
        width: 100%;
    }

    #ec-calculator .form-container {
        padding: 20px;
    }

    #ec-calculator .food-step .options,
    #ec-calculator .activities-step .options {
        grid-template-columns: repeat(1, 1fr);
    }

    #ec-calculator .options {
        gap: 20px;
    }

    #ec-calculator .ec-breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

}