
/* =========================================================
   DFW WEIGHT LOSS VISUALIZATION
   FRONTEND STYLES
========================================================= */

.dfw-wlv-wrapper {
    width: 100%;
    max-width: 1050px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: inherit;
    color: #1b1b1b;
}

.dfw-wlv-wrapper *,
.dfw-wlv-wrapper *::before,
.dfw-wlv-wrapper *::after {
    box-sizing: border-box;
}


/* =========================================================
   PROGRESS
========================================================= */

.dfw-wlv-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto 45px;
    max-width: 850px;
}

.dfw-wlv-progress-line {
    position: absolute;
    top: 19px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e5e5e5;
    z-index: 0;
}

.dfw-wlv-progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    text-align: center;
}

.dfw-wlv-progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #d9d9d9;
    color: #888;
    font-size: 14px;
    font-weight: 700;
    transition: all .25s ease;
}

.dfw-wlv-progress-label {
    margin-top: 10px;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.dfw-wlv-progress-step.active .dfw-wlv-progress-circle,
.dfw-wlv-progress-step.completed .dfw-wlv-progress-circle {
    background: #111;
    border-color: #111;
    color: #fff;
}

.dfw-wlv-progress-step.active .dfw-wlv-progress-label,
.dfw-wlv-progress-step.completed .dfw-wlv-progress-label {
    color: #111;
}


/* =========================================================
   GLOBAL MESSAGE
========================================================= */

.dfw-wlv-message {
    margin: 0 0 25px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.dfw-wlv-message p {
    margin: 0;
}

.dfw-wlv-message-error {
    background: #fff2f2;
    border: 1px solid #e7b5b5;
    color: #a32626;
}

.dfw-wlv-message-success {
    background: #f2faf3;
    border: 1px solid #b9dbbd;
    color: #286b35;
}


/* =========================================================
   STEPS
========================================================= */

/*
 * IMPORTANT:
 * Only the active step is displayed.
 */

.dfw-wlv-step {
    display: none;
    width: 100%;
}

.dfw-wlv-step.active {
    display: block;
}


/* =========================================================
   HEADING
========================================================= */

.dfw-wlv-heading {
    text-align: center;
    margin-bottom: 35px;
}

.dfw-wlv-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #777;
}

.dfw-wlv-heading h2 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    color: #111;
}

.dfw-wlv-heading p {
    margin: 0;
    color: #777;
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.dfw-wlv-fields {
    max-width: 720px;
    margin: 0 auto;
}

.dfw-wlv-field {
    margin-bottom: 22px;
}

.dfw-wlv-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.dfw-wlv-field label span {
    color: #c00;
}

.dfw-wlv-field input,
.dfw-wlv-field select {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    background: #fff;
    color: #222;
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease,
                box-shadow .2s ease;
}

.dfw-wlv-field input:focus,
.dfw-wlv-field select:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.dfw-wlv-two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    max-width: 720px;
    margin: 0 auto;
}


/* =========================================================
   BMI
========================================================= */

.dfw-wlv-current-bmi-box {
    max-width: 720px;
    margin: 8px auto 0;
    padding: 22px 24px;
    border-radius: 10px;
    background: #f6f6f6;
    border: 1px solid #e4e4e4;
}

.dfw-wlv-current-bmi-box > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dfw-wlv-current-bmi-box span {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.dfw-wlv-current-bmi-box strong {
    font-size: 28px;
    line-height: 1;
    color: #111;
}

.dfw-wlv-current-bmi-box p {
    margin: 10px 0 0;
    font-size: 12px;
    color: #888;
}


/* =========================================================
   ACTIONS
========================================================= */

.dfw-wlv-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    max-width: 720px;
    margin: 35px auto 0;
}

.dfw-wlv-actions-right {
    justify-content: flex-end;
}

.dfw-wlv-button {
    min-height: 52px;
    padding: 13px 25px;
    border: 0;
    border-radius: 7px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .2s ease,
                background .2s ease,
                opacity .2s ease;
}

.dfw-wlv-button:hover {
    background: #333;
    color: #fff;
    transform: translateY(-1px);
}

.dfw-wlv-button:disabled {
    cursor: wait;
    opacity: .65;
}

.dfw-wlv-button-secondary {
    background: #f2f2f2;
    color: #222;
    border: 1px solid #ddd;
}

.dfw-wlv-button-secondary:hover {
    background: #e8e8e8;
    color: #111;
}


/* =========================================================
   PROCEDURE / PATH CARDS
========================================================= */

.dfw-wlv-path-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 850px;
    margin: 0 auto;
}

.dfw-wlv-path-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 90px;
    padding: 18px 20px;
    border: 1px solid #dedede;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
}

.dfw-wlv-path-card:hover {
    border-color: #888;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

.dfw-wlv-path-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dfw-wlv-radio {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 2px solid #cfcfcf;
    border-radius: 50%;
    position: relative;
}

.dfw-wlv-path-card input:checked + .dfw-wlv-radio {
    border-color: #111;
}

.dfw-wlv-path-card input:checked + .dfw-wlv-radio::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: #111;
}

.dfw-wlv-path-card:has(input:checked) {
    border-color: #111;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.dfw-wlv-path-text {
    flex: 1;
    min-width: 0;
}

.dfw-wlv-path-text strong {
    display: block;
    margin-bottom: 5px;
    color: #171717;
    font-size: 15px;
    line-height: 1.35;
}

.dfw-wlv-path-text small {
    display: block;
    color: #777;
    font-size: 12px;
    line-height: 1.4;
}

.dfw-wlv-path-text small b {
    color: #111;
}

.dfw-wlv-path-arrow {
    color: #999;
    font-size: 20px;
    transition: transform .2s ease;
}

.dfw-wlv-path-card:hover .dfw-wlv-path-arrow {
    transform: translateX(3px);
}


/* =========================================================
   PREDICTION
========================================================= */

.dfw-wlv-prediction {
    max-width: 850px;
    margin: 30px auto 0;
    padding: 28px;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    background: #f8f8f8;
}

.dfw-wlv-prediction-heading {
    margin-bottom: 22px;
}

.dfw-wlv-prediction-heading h3 {
    margin: 0;
    font-size: 22px;
    color: #111;
}

.dfw-wlv-calculation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dfw-wlv-calculation-item {
    min-height: 105px;
    padding: 18px;
    border: 1px solid #e1e1e1;
    border-radius: 9px;
    background: #fff;
}

.dfw-wlv-calculation-item span {
    display: block;
    margin-bottom: 9px;
    color: #777;
    font-size: 12px;
    line-height: 1.4;
}

.dfw-wlv-calculation-item strong {
    display: block;
    color: #111;
    font-size: 21px;
    line-height: 1.2;
}

.dfw-wlv-estimate-note {
    margin: 18px 0 0;
    color: #888;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   UPLOAD
========================================================= */

.dfw-wlv-upload-box {
    max-width: 650px;
    margin: 0 auto;
}

.dfw-wlv-upload-box input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.dfw-wlv-upload-box label {
    min-height: 230px;
    padding: 35px;
    border: 2px dashed #d1d1d1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: all .2s ease;
}

.dfw-wlv-upload-box label:hover {
    border-color: #999;
    background: #f6f6f6;
}

.dfw-wlv-upload-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 26px;
}

.dfw-wlv-upload-box label strong {
    margin-bottom: 8px;
    font-size: 16px;
    color: #222;
}

.dfw-wlv-upload-box label small {
    color: #888;
    font-size: 12px;
}


/* =========================================================
   PHOTO PREVIEW
========================================================= */

.dfw-wlv-photo-preview {
    max-width: 300px;
    margin: 20px auto 0;
    text-align: center;
}

.dfw-wlv-photo-preview img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
    display: block;
}

.dfw-wlv-remove-photo {
    margin-top: 10px;
    border: 0;
    background: none;
    color: #b00000;
    font-size: 13px;
    cursor: pointer;
}


/* =========================================================
   CONSENT
========================================================= */

.dfw-wlv-consent {
    max-width: 650px;
    margin: 25px auto 0;
}

.dfw-wlv-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.dfw-wlv-consent input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.dfw-wlv-consent span {
    color: #666;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   RESULT
========================================================= */

.dfw-wlv-result {
    width: 100%;
}

.dfw-wlv-result-header {
    text-align: center;
    margin-bottom: 30px;
}

.dfw-wlv-result-header h2 {
    margin: 0 0 10px;
    color: #111;
    font-size: 34px;
    line-height: 1.2;
}

.dfw-wlv-result-header p {
    max-width: 650px;
    margin: 0 auto;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   RESULT NOTICE
========================================================= */

.dfw-wlv-result-notice {
    max-width: 850px;
    margin: 0 auto 25px;
    padding: 17px 20px;
    border-radius: 8px;
}

.dfw-wlv-result-notice strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.dfw-wlv-result-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.dfw-wlv-result-success {
    background: #f1faf3;
    border: 1px solid #b9dbbe;
    border-left: 4px solid #378849;
}

.dfw-wlv-result-success strong {
    color: #276c34;
}

.dfw-wlv-result-success p {
    color: #4c7053;
}

.dfw-wlv-result-fallback {
    background: #fff9ee;
    border: 1px solid #ead4a4;
    border-left: 4px solid #c6922e;
}

.dfw-wlv-result-fallback strong {
    color: #7b5816;
}

.dfw-wlv-result-fallback p {
    color: #705d39;
}


/* =========================================================
   BEFORE / AFTER
========================================================= */

.dfw-wlv-before-after {
    max-width: 850px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.dfw-wlv-image-card {
    overflow: hidden;
    border: 1px solid #dedede;
    border-radius: 12px;
    background: #fff;
}

.dfw-wlv-image-label {
    padding: 13px 16px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-align: center;
}

.dfw-wlv-image-wrap {
    width: 100%;
    height: 430px;
    background: #f3f3f3;
}

.dfw-wlv-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dfw-wlv-image-caption {
    padding: 13px 15px;
    text-align: center;
    color: #777;
    font-size: 12px;
}


/* =========================================================
   RESULT SUMMARY
========================================================= */

.dfw-wlv-result-summary {
    max-width: 850px;
    margin: 0 auto 25px;
    padding: 28px;
    border-radius: 12px;
    background: #f8f8f8;
    border: 1px solid #e1e1e1;
}

.dfw-wlv-summary-heading {
    margin-bottom: 22px;
}

.dfw-wlv-summary-heading h3 {
    margin: 0 0 6px;
    color: #111;
    font-size: 23px;
}

.dfw-wlv-summary-heading p {
    margin: 0;
    color: #777;
    font-size: 13px;
}

.dfw-wlv-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dfw-wlv-result-stat {
    min-height: 100px;
    padding: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 9px;
    background: #fff;
}

.dfw-wlv-result-stat span {
    display: block;
    margin-bottom: 8px;
    color: #777;
    font-size: 12px;
    line-height: 1.4;
}

.dfw-wlv-result-stat strong {
    display: block;
    color: #111;
    font-size: 21px;
}


/* =========================================================
   DISCLAIMER
========================================================= */

.dfw-wlv-disclaimer {
    max-width: 850px;
    margin: 0 auto 25px;
    padding: 17px 20px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fafafa;
}

.dfw-wlv-disclaimer strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.dfw-wlv-disclaimer p {
    margin: 0;
    color: #777;
    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   RESULT ACTIONS
========================================================= */

.dfw-wlv-result-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.dfw-wlv-consultation {
    background: #111;
}

.dfw-wlv-print-help {
    margin-top: 12px;
    text-align: center;
}

.dfw-wlv-print-help small {
    color: #888;
    font-size: 11px;
}


/* =========================================================
   LOADING
========================================================= */

.dfw-wlv-loading {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dfw-wlv-loading h3 {
    margin: 20px 0 8px;
    font-size: 22px;
    color: #111;
}

.dfw-wlv-loading p {
    margin: 0;
    color: #777;
    font-size: 13px;
}

.dfw-wlv-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #e2e2e2;
    border-top-color: #111;
    border-radius: 50%;
    animation: dfw-wlv-spin .8s linear infinite;
}

.dfw-wlv-button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dfw-wlv-spin .8s linear infinite;
}

@keyframes dfw-wlv-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   PRINT
========================================================= */

@media print {

    /*
     * Hide everything on the page.
     */

    body * {
        visibility: hidden !important;
    }


    /*
     * Only report becomes visible.
     */

    #dfw-wlv-print-report,
    #dfw-wlv-print-report * {
        visibility: visible !important;
    }


    #dfw-wlv-print-report {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
        background: #fff !important;
    }


    .no-print,
    .dfw-wlv-result-actions,
    .dfw-wlv-print-help {
        display: none !important;
    }


    .dfw-wlv-before-after {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }


    .dfw-wlv-image-wrap {
        height: 400px !important;
    }


    .dfw-wlv-result-summary {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    .dfw-wlv-result-stat {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    .dfw-wlv-disclaimer {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    /*
     * Browser print settings.
     */

    @page {
        size: A4;
        margin: 12mm;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .dfw-wlv-wrapper {
        padding: 0 16px;
    }

    .dfw-wlv-calculation-grid,
    .dfw-wlv-result-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dfw-wlv-image-wrap {
        height: 360px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .dfw-wlv-wrapper {
        margin: 25px auto;
        padding: 0 14px;
    }


    .dfw-wlv-progress {
        margin-bottom: 35px;
    }


    .dfw-wlv-progress-line {
        top: 16px;
        left: 7%;
        right: 7%;
    }


    .dfw-wlv-progress-circle {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }


    .dfw-wlv-progress-label {
        max-width: 65px;
        margin-top: 7px;
        font-size: 9px;
    }


    .dfw-wlv-heading {
        margin-bottom: 25px;
    }


    .dfw-wlv-heading h2 {
        font-size: 27px;
    }


    .dfw-wlv-heading p {
        font-size: 13px;
    }


    .dfw-wlv-two-column {
        grid-template-columns: 1fr;
        gap: 0;
    }


    .dfw-wlv-path-grid {
        grid-template-columns: 1fr;
    }


    .dfw-wlv-path-card {
        min-height: 80px;
        padding: 15px;
    }


    .dfw-wlv-prediction {
        padding: 20px 15px;
    }


    .dfw-wlv-calculation-grid,
    .dfw-wlv-result-grid {
        grid-template-columns: 1fr;
    }


    .dfw-wlv-calculation-item,
    .dfw-wlv-result-stat {
        min-height: auto;
    }


    .dfw-wlv-before-after {
        grid-template-columns: 1fr;
    }


    .dfw-wlv-image-wrap {
        height: 400px;
    }


    .dfw-wlv-result-summary {
        padding: 20px 15px;
    }


    .dfw-wlv-result-header h2 {
        font-size: 27px;
    }


    .dfw-wlv-result-actions {
        flex-direction: column;
    }


    .dfw-wlv-result-actions .dfw-wlv-button {
        width: 100%;
    }


    .dfw-wlv-actions {
        margin-top: 25px;
    }


    .dfw-wlv-actions .dfw-wlv-button {
        min-height: 48px;
        padding: 12px 18px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .dfw-wlv-progress-label {
        display: none;
    }


    .dfw-wlv-progress {
        margin-bottom: 25px;
    }


    .dfw-wlv-heading h2 {
        font-size: 24px;
    }


    .dfw-wlv-upload-box label {
        min-height: 190px;
        padding: 25px;
    }


    .dfw-wlv-image-wrap {
        height: 330px;
    }
}
