/* BASE */

.juja-calculator-step {
    display: none;
    width: 100%;
}

.juja-calculator-step--active {
    display: block;
}

.juja-intro,
.juja-question {
    width: 100%;
    margin: 0 auto;
    padding: 74px 24px 0;
    text-align: center;
    color: #53182E;
    font-family: "Be Vietnam Pro", sans-serif;
    box-sizing: border-box;
}

.juja-intro {
    padding-top: 80px;
}

/* TYPOGRAPHY */

.juja-intro__title {
    margin: 0 auto 35px;
    color: #53182E;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.juja-intro__title span,
.juja-script {
    color: #53182E;
    font-family: "Old Standard TT", serif;
    font-size: 42px;
    font-weight: 400;
    font-style: italic;
    line-height: 1;
}

.juja-intro__title span {
    font-size: 65px;
}

.juja-text {
    color: #53182E;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 40px;
}

/* INTRO */

.juja-intro__description {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 35px;
    color: #53182E;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
}

.juja-intro__features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    width: fit-content;
    margin: 0 auto 43px;
    color: #53182E;
}

.juja-intro__feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.juja-intro__feature-icon {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.juja-intro__feature-text {
    margin: 0;
    color: #53182E;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

/* ROWS */

.juja-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.juja-row--name,
.juja-row--age,
.juja-row--weight,
.juja-row--email {
    gap: 34px;
    margin-bottom: 38px;
}

.juja-question--dog-info .juja-row--options {
    margin-bottom: 40px;
}

.juja-row--options {
    gap: 17px;
    margin-bottom: 55px;
}

.juja-row--breed-title {
    gap: 10px;
    margin-bottom: 23px;
}

.juja-row--condition-title {
    gap: 10px;
    margin-bottom: 30px;
}

.juja-row--activity-title {
    margin-bottom: 27px;
}

.juja-row--title {
    gap: 8px;
    margin-bottom: 2px;
}

.juja-row--subtitle {
    margin-bottom: 0;
}

/* QUESTION SPACING */

.juja-question--dog-info {
    padding-top: 95px;
}

.juja-question--dog-details,
.juja-question--condition-activity,
.juja-question--health,
.juja-question--allergy,
.juja-question--contact {
    padding-top: 58px;
}

/* združen zaslon: starost + kastracija + pasma + teža */
.juja-question--dog-details .juja-row--age {
    margin-bottom: 30px;
}

.juja-question--dog-details .juja-row--options {
    margin-bottom: 44px;
}

.juja-question--dog-details .juja-row--breed-title {
    margin-bottom: 16px;
}

.juja-question--dog-details .juja-input--breed {
    margin-bottom: 30px;
}

.juja-title-block {
    margin-bottom: 30px;
}

.juja-title-block--contact {
    margin-bottom: 16px;
}

/* INPUTS */

.juja-input {
    border: 0;
    border-bottom: 2px dashed rgba(83, 24, 46, 0.35);
    background: transparent;
    color: #53182E;
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 400;
    text-align: center;
    outline: none;
    box-sizing: border-box;
}

.juja-input::placeholder {
    color: rgba(83, 24, 46, 0.7);
}

.juja-input--name,
.juja-input--number,
.juja-input--weight {
    min-width: 190px;
    padding: 8px 10px;
    font-size: 16px;
}

.juja-input--email {
    min-width: 280px;
    padding: 8px 10px;
    font-size: 16px;
}

.juja-input--breed {
    display: block;
    width: 100%;
    max-width: 363px;
    margin: 0 auto 38px;
    padding: 8px 10px;
    font-size: 16px;
}

/* OPTIONS */

.juja-options {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.juja-options--condition {
    gap: 13px;
    margin-bottom: 43px;
}

.juja-options--activity {
    gap: 13px;
    margin-bottom: 52px;
}

.juja-options--main {
    margin-bottom: 36px;
}

.juja-options--tags {
    width: 100%;
    max-width: 980px;
    margin: 0 auto 70px;
    gap: 12px 10px;
}

.juja-options--allergy {
    max-width: 740px;
    margin-bottom: 56px;
}

.juja-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    border-radius: 1000px;
    background: #D8E4FF;
    color: #53182E;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
}

.juja-option input {
    display: none;
}

.juja-option:has(input:checked),
.juja-option--active {
    background: #53182E;
    color: #ffffff;
}

.juja-option--main {
    background: #D8E4FF;
    color: #53182E;
}

.juja-option--tag {
    padding: 16px 30px;
}

/* BUTTONS */

.juja-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 55px;
    border: 0;
    border-radius: 1000px;
    background-color: #EC2227;
    color: #ffffff;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
}

.juja-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.juja-button__arrow {
    font-size: 22px;
    line-height: 1;
}

/* IMAGES */

.juja-intro__dog-image {
    display: block;
    width: 100%;
    max-width: 280px !important;
    height: auto;
    margin: 60px auto 0;
}

.juja-image {
    display: block;
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.juja-image--happy-dogs {
    max-width: 365px !important;
    margin-top: 58px;
}

.juja-image--dog-playing {
    max-width: 281px !important;
    margin-top: 48px;
}

.juja-button__arrow img {
    display: block;
    width: 16px;
    height: 16px;
}

/* DIVIDER */

.juja-divider {
    width: 100%;
    max-width: 635px;
    height: 2px;
    margin: 0 auto 51px;
    background: rgba(83, 24, 46, 0.18);
}

/* CONTACT FORM */

.juja-contact-description {
    margin: 0 0 36px;
    color: #53182E;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.juja-form {
    width: 100%;
    max-width: 365px;
    margin: 0 auto;
    text-align: left;
}

.juja-form .juja-button {
    display: flex;
    margin: 0 auto;
}

.juja-form__group {
    margin-bottom: 16px;
}

.juja-form__label {
    display: block;
    margin-bottom: 8px;
    color: #53182E;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.juja-form__input {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(83, 24, 46, 0.18);
    border-radius: 14px;
    background: transparent;
    color: #53182E;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    outline: none;
    box-sizing: border-box;
}

.juja-form__input::placeholder {
    color: rgba(83, 24, 46, 0.65);
}

.juja-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0 34px;
    cursor: pointer;
}

.juja-form__checkbox {
    width: 14px;
    height: 14px;
    margin: 2px 0 0;
    accent-color: #EC2227;
    flex-shrink: 0;
}

.juja-form__consent-text {
    color: rgba(83, 24, 46, 0.75);
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.juja-form__link {
    color: #EC2227;
    text-decoration: underline;
}

/* PROGRESS */

.juja-progress {
    width: 100%;
    max-width: 838px;
    margin: 48px auto 0;
    box-sizing: border-box;
}

.juja-progress__counter {
    margin: 0 0 14px;
    color: #53182E;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

.juja-progress__counter[hidden] {
    display: none;
}

.juja-progress__labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.juja-progress__label {
    color: rgba(83, 24, 46, 0.18);
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: color 0.25s ease;
}

.juja-progress__label--active {
    color: #EC2227;
}

.juja-progress__bar {
    width: 100%;
    height: 4px;
    border-radius: 1000px;
    background: rgba(83, 24, 46, 0.16);
    overflow: hidden;
}

.juja-progress__fill {
    width: 0%;
    height: 100%;
    border-radius: 1000px;
    background: #EC2227;
    transition: width 0.35s ease;
}

.juja-back-btn {
    display: none;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: 14px auto 0;
    padding: 10px 20px 10px 20px;
    border: 0;
    background: #53182E;
    border-radius: 50px;
    color: #ffffff;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.juja-back-btn:hover {
    background: #EC2227;
}

.juja-error-message {
    display: none;
    margin: 0 0 16px;
    color: #EC2227;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.juja-error-message--active {
    display: block;
}

/* REZULTAT */

.juja-result[hidden],
.juja-result__box[hidden],
.juja-result__fallback[hidden] {
    display: none;
}

.juja-question--result {
    padding-top: 58px;
}

.juja-result__box {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 28px;
    padding: 24px 28px;
    border-radius: 14px;
    background: #fff4f4;
    box-sizing: border-box;
}

.juja-result__kcal,
.juja-result__grams {
    margin: 0;
    color: #53182E;
    font-family: "Be Vietnam Pro", sans-serif;
    line-height: 1.4;
}

.juja-result__kcal {
    margin-bottom: 10px;
    font-size: 16px;
}

.juja-result__grams {
    color: #EC2227;
    font-size: 18px;
}

.juja-result__fallback,
.juja-result__note {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 16px;
    color: #7a4b5d;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.juja-result__fallback {
    color: #53182E;
    font-size: 16px;
}

.juja-result__actions {
    margin-top: 28px;
}

.juja-button--link,
.juja-button--link:visited,
.juja-button--link:hover,
.juja-button--link:focus {
    color: #ffffff;
    text-decoration: none;
}

/* MOBILE */

@media (max-width: 767px) {
    .juja-intro,
    .juja-question {
        padding: 56px 24px 0;
    }

    .juja-progress {
        max-width: 100%;
        margin: 28px auto 0;
        padding: 0 24px;
    }

    .juja-progress__counter {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .juja-progress__label {
        font-size: 12px;
    }

    .juja-intro__title {
        font-size: 38px;
        line-height: 1.15;
        margin-bottom: 28px;
    }

    .juja-intro__title span {
        display: block;
        font-size: 48px;
    }

    .juja-intro__description {
        font-size: 16px;
        line-height: 1.55;
        margin-bottom: 28px;
    }

    .juja-intro__features {
        gap: 20px;
        margin-bottom: 34px;
    }

    .juja-intro__feature-text {
        font-size: 14px;
    }

    .juja-text {
        font-size: 26px;
        line-height: 36px;
    }

    .juja-script {
        font-size: 38px;
        line-height: 1;
    }

    .juja-row {
        gap: 14px;
    }

    .juja-row--name,
    .juja-row--email,
    .juja-row--condition-title {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 34px;
    }

    .juja-row--options {
        flex-direction: column;
        gap: 18px;
        margin-bottom: 48px;
    }

    .juja-row--activity-title {
        margin-bottom: 22px;
    }

    /* inputi */

    .juja-input--name,
    .juja-input--email,
    .juja-input--breed {
        width: 100%;
        max-width: 260px;
        min-width: 0;
    }

    .juja-input--number,
    .juja-input--weight {
        width: 100%;
        max-width: 110px;
        min-width: 0;
    }

    /* ime + spol */

    .juja-question--dog-info .juja-row--options {
        flex-direction: row;
        gap: 14px;
        margin-bottom: 36px;
    }

    .juja-question--dog-info .juja-options {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .juja-question--dog-info .juja-option {
        padding-left: 30px;
        padding-right: 30px;
    }

    /* starost + kastracija + pasma + teža */

    .juja-question--dog-details .juja-row--age {
        flex-direction: row;
        gap: 14px;
        margin-bottom: 36px;
    }

    .juja-question--dog-details .juja-row--options {
        margin-bottom: 40px;
    }

    .juja-question--dog-details .juja-options {
        flex-direction: column;
        gap: 14px;
    }

    .juja-question--dog-details .juja-option {
        width: 100%;
        max-width: 220px;
    }

    .juja-question--dog-details .juja-row--breed-title {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 20px;
    }

    .juja-question--dog-details .juja-input--breed {
        margin-bottom: 36px;
    }

    .juja-question--dog-details .juja-row--weight {
        flex-direction: row;
        gap: 14px;
        margin-bottom: 42px;
    }

    /* stanje + aktivnost */

    .juja-options--condition,
    .juja-options--activity {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 42px;
    }

    .juja-options--condition .juja-option,
    .juja-options--activity .juja-option {
        width: 100%;
        max-width: 260px;
    }

    /* health + allergy naslovi */

    .juja-question--health .juja-title-block,
    .juja-question--allergy .juja-title-block {
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 32px;
    }

    .juja-question--health .juja-row--title,
    .juja-question--allergy .juja-row--title {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 4px;
    }

    .juja-question--health .juja-row--subtitle,
    .juja-question--allergy .juja-row--subtitle {
        display: block;
        text-align: center;
    }

    .juja-question--health .juja-script,
    .juja-question--allergy .juja-script {
        font-size: 34px;
        line-height: 1.15;
    }

    /* health + allergy opcije */

    .juja-options--tags,
    .juja-options--allergy {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        gap: 12px;
        margin-bottom: 56px;
    }

    .juja-option--tag,
    .juja-option--main {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .juja-divider {
        margin-bottom: 48px;
    }

    /* button */

    .juja-button {
        padding: 18px 58px;
        font-size: 16px;
    }

    /* slike */

    .juja-intro__dog-image {
        max-width: 250px !important;
        margin-top: 52px;
    }

    .juja-image--happy-dogs {
        max-width: 320px !important;
        margin-top: 52px;
    }

    .juja-image--dog-playing {
        max-width: 240px !important;
        margin-top: 44px;
    }

    /* rezultat */

    .juja-question--result {
        padding-top: 40px;
    }

    .juja-result__box {
        padding: 20px;
    }

    /* contact */

    .juja-contact-description {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .juja-form {
        max-width: 100%;
    }

    .juja-form__input {
        padding: 14px;
    }

    .juja-form__consent {
        margin-bottom: 32px;
    }
}