/* =========================================================
   YOUR LIFE SCORE - DESIGN SYSTEM
   Clean final version
   ========================================================= */

:root {
    --yls-bg: #f8fafc;
    --yls-surface: #ffffff;
    --yls-text: #1f2937;
    --yls-text-soft: #6b7280;
    --yls-border: #d9dde3;
    --yls-primary: #0f172a;
    --yls-primary-dark: #111827;
    --yls-radius-md: 16px;
    --yls-max-width: 520px;
}

html, body {
    background: var(--yls-bg);
    color: var(--yls-text);
}

body,
button,
input,
select,
textarea {
    font-family: Inter, Arial, sans-serif;
}

/* ===== WRAPS ===== */

.yls-wrap {
    max-width: var(--yls-max-width);
    margin: 0 auto;
    width: 100%;
    padding: 38px 18px 40px;
}

.yls-test-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ===== TEXT ===== */

.yls-question-title {
    color: #1f2937 !important;
    font-size: clamp(34px, 7.4vw, 48px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em;
    font-weight: 800 !important;
    margin: 0 0 26px !important;
}

.yls-step-count {
    font-size: 15px !important;
    color: #8b9098 !important;
    margin-bottom: 14px !important;
    font-weight: 500;
}

/* ===== PROGRESS ===== */

.yls-progress {
    width: 100%;
    height: 8px;
    background: #e8edf3;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.yls-progress-bar {
    height: 100%;
    background: #0f172a;
    border-radius: 999px;
}

/* ===== INPUTS ===== */

.yls-input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid var(--yls-border);
    border-radius: 16px;
    background: #ffffff;
    color: #1f2937;
    font-size: 18px;
    box-sizing: border-box;
    box-shadow: none;
}

.yls-input::placeholder {
    color: #9aa1aa;
}

/* Date input stronger */
#yls-input.yls-input {
    height: 64px !important;
    border: 2px solid #0f172a !important;
    border-radius: 18px !important;
    color: #1f2937 !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    padding: 0 20px !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
    cursor: pointer !important;
}

#yls-input.yls-input::placeholder {
    color: #6b7280 !important;
    font-weight: 600 !important;
}

#yls-input.yls-input:focus {
    outline: none !important;
    border-color: #0f172a !important;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08) !important;
}

/* ===== BUTTONS ===== */

.yls-actions {
    margin-top: 18px !important;
}

.yls-button,
.yls-option {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    cursor: pointer;
}

.yls-button {
    width: 100% !important;
    min-height: 58px !important;
    font-size: 20px !important;
}

.yls-option {
    min-height: 58px !important;
    font-size: 17px !important;
    padding: 0 16px !important;
    flex: 1 1 calc(50% - 6px);
    max-width: calc(50% - 6px);
}

.yls-option:hover,
.yls-button:hover {
    background: #111827 !important;
    transform: translateY(-1px);
}

/* ===== QUESTION BODY ===== */

.yls-question-body {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

/* ===== DATEPICKER ===== */

.ui-datepicker {
    width: calc(100vw - 36px) !important;
    max-width: 420px !important;
    left: 18px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border: 2px solid #0f172a !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
    padding: 16px !important;
    z-index: 99999 !important;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    display: none !important;
}

.ui-datepicker .ui-datepicker-header {
    background: transparent !important;
    border: none !important;
    padding: 0 0 12px !important;
}

.ui-datepicker .ui-datepicker-title {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin: 0 !important;
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    width: 100% !important;
    height: 52px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 16px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 0 12px !important;
}

.ui-datepicker table {
    table-layout: fixed !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 5px !important;
    margin-top: 8px !important;
}

.ui-datepicker th {
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    padding: 6px 0 !important;
}

.ui-datepicker td {
    padding: 0 !important;
}

.ui-datepicker td a,
.ui-datepicker td span {
    min-height: 44px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.ui-datepicker td a:hover {
    background: #f3f4f6 !important;
    border-color: #0f172a !important;
}

.ui-datepicker td a.ui-state-active {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

/* ===== RESULT PAGE ===== */

#yls-result-app {
    max-width: 520px !important;
    margin: 0 auto !important;
    padding: 18px 18px 0 !important;
}

#yls-result-app .yls-question-title {
    font-size: clamp(40px, 8vw, 56px) !important;
    line-height: 1.05 !important;
    margin-bottom: 18px !important;
}

#yls-result-content {
    margin-bottom: 0 !important;
}

#yls-result-content > div {
    margin-bottom: 0 !important;
}

#yls-result-content p {
    font-size: 18px !important;
    line-height: 1.75 !important;
    color: #1f2937 !important;
    margin-top: 14px !important;
    margin-bottom: 14px !important;
}

#yls-result-content p strong {
    font-weight: 800 !important;
}

/* Countdown: white boxes, only seconds dark */
#yls-result-content > div > div:first-child {
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 8px !important;
    margin-bottom: 22px !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

#yls-result-content > div > div:first-child > div {
    min-width: 52px !important;
    border-radius: 18px !important;
    padding: 12px 6px !important;
    border: 1px solid #dde2e8 !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04) !important;
}

#yls-result-content [id^="yls-c-"] {
    color: #1f2937 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

#yls-result-content [id^="yls-c-"] + div {
    color: #6b7280 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

/* only seconds box black */
#yls-result-content > div > div:first-child > div:has(#yls-c-seconds) {
    background: #0f172a !important;
    border-color: #0f172a !important;
}

#yls-c-seconds {
    color: #ffffff !important;
    animation: ylsPulseSeconds 1s infinite;
}

#yls-c-seconds + div {
    color: #d1d5db !important;
}

@keyframes ylsPulseSeconds {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: .78; }
    100% { transform: scale(1); opacity: 1; }
}

/* Loading */
#yls-loading-percent {
    font-size: 42px !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-top: 22px !important;
}

#yls-result-content h2 {
    text-align: center !important;
    font-size: 26px !important;
    margin-top: 28px !important;
    margin-bottom: 10px !important;
}

/* ===== RESULT SALES BLOCK ===== */

.yls-sales-block {
    max-width: 520px !important;
    margin: 24px auto 0 !important;
    padding: 0 18px !important;
    text-align: center !important;
}

.yls-sales-block .elementor-button,
.yls-sales-block a.elementor-button,
.yls-sales-block a,
.yls-sales-block button {
    width: 100% !important;
    min-height: 58px !important;
    border-radius: 16px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.yls-sales-block .elementor-button-text {
    color: #ffffff !important;
}

.yls-sales-block p,
.yls-sales-block .elementor-widget-text-editor {
    color: #6b7280 !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
    margin-bottom: 18px !important;
}

.yls-sales-block .elementor-widget,
.yls-sales-block .elementor-widget-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ===== LOGIN / VIP ===== */

#yls-vip-app .yls-question-title,
#yls-login-app .yls-question-title {
    margin-bottom: 16px;
}

#yls-vip-app p,
.yls-login-wrap p {
    line-height: 1.75;
}

/* ===== CHECKOUT ===== */

.woocommerce-checkout form.checkout {
    max-width: 520px !important;
    margin: 0 auto !important;
    padding: 28px 18px 40px !important;
}

.woocommerce-checkout h3,
.woocommerce-checkout .woocommerce-billing-fields h3 {
    font-size: 30px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin-bottom: 22px !important;
}

.woocommerce-checkout label {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 8px !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"] {
    width: 100% !important;
    min-height: 58px !important;
    border: 1px solid #d9dde3 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    font-size: 18px !important;
    padding: 0 18px !important;
    box-shadow: none !important;
}

.woocommerce-checkout .form-row {
    margin-bottom: 18px !important;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.woocommerce-checkout #order_review {
    border: 1px solid #e5e7eb !important;
    border-radius: 22px !important;
    padding: 24px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.woocommerce-checkout table.shop_table {
    border: none !important;
    margin-bottom: 20px !important;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    border-color: #e5e7eb !important;
    color: #1f2937 !important;
    font-size: 16px !important;
}

.woocommerce-checkout .woocommerce-checkout-payment {
    background: transparent !important;
}

.woocommerce-checkout .payment_box {
    background: #f3f4f6 !important;
    border-radius: 14px !important;
    color: #4b5563 !important;
    font-size: 15px !important;
}

.woocommerce-checkout #place_order {
    width: 100% !important;
    min-height: 58px !important;
    border-radius: 16px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: none !important;
    margin-top: 18px !important;
}

.woocommerce-checkout #place_order:hover {
    background: #111827 !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text {
    color: #6b7280 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.woocommerce-checkout .woocommerce-NoticeGroup,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message {
    max-width: 520px !important;
    margin: 0 auto 18px !important;
    border-radius: 16px !important;
}

/* ===== MOBILE ===== */

@media (max-width: 420px) {
    .yls-wrap {
        padding: 34px 18px 36px;
    }

    .yls-option {
        flex: 1 1 100%;
        max-width: 100%;
    }

    #yls-result-content > div > div:first-child {
        gap: 6px !important;
    }

    #yls-result-content [id^="yls-c-"] {
        font-size: 20px !important;
    }
}
/* FIX seconds visibility + pulse */

#yls-result-content #yls-c-seconds {
    color: #ffffff !important;
    opacity: 1 !important;
    animation: ylsPulseSecondsStrong 1s infinite !important;
}

#yls-result-content #yls-c-seconds + div {
    color: #ffffff !important;
    opacity: 0.85 !important;
}

@keyframes ylsPulseSecondsStrong {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.14);
    }
    100% {
        transform: scale(1);
    }
}
@media (max-width: 420px){

#yls-result-content p{
    font-size:16px !important;
    line-height:1.55 !important;
    margin-top:10px !important;
    margin-bottom:10px !important;
}

.yls-sales-block p{
    font-size:15px !important;
    line-height:1.5 !important;
}

#yls-result-app .yls-question-title{
    font-size:46px !important;
    margin-bottom:14px !important;
}

.yls-sales-block{
    margin-top:18px !important;
}

}
/* Hide checkout "Your order" heading */
.woocommerce-checkout #order_review_heading {
    display: none !important;
}
.woocommerce-checkout #order_review {
    margin-top: 24px !important;
}
/* VIP action buttons */

.yls-vip-actions {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yls-vip-button {
    width: 100%;
    min-height: 56px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 800;
    border: none;
    cursor: pointer;
}

.yls-vip-primary {
    background: #0f172a;
    color: #ffffff;
}

.yls-vip-secondary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #d9dde3;
}

.yls-home-instructions,
.yls-vip-done-message {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.5;
}
