/**
 * Onboarding Wizard Styles
 * Matches Figma design: The Good Cloud login screens
 */

/* Page background - makes white cards stand out */
.page-template-default .ncwi-onboarding-wrapper,
.ncwi-onboarding-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: inherit;
}

/* Apply background to the page content area */
body:has(.ncwi-onboarding-wrapper) .entry-content,
body:has(.ncwi-onboarding-wrapper) .page-content,
body:has(.ncwi-onboarding-wrapper) article.page,
body:has(.ncwi-onboarding-wrapper) .site-content,
body:has(.ncwi-onboarding-wrapper) main {
    background: transparent;
}

/* Page title - match "YOUR SHOP ACCOUNT" style */
body:has(.ncwi-onboarding-wrapper) .entry-header,
body:has(.ncwi-onboarding-wrapper) .page-header,
body:has(.ncwi-onboarding-wrapper) header.entry-header {
    max-width: 100%;
    margin: 0 auto;
    padding: 100px 20px 30px 20px;
    background: transparent;
    text-align: center;
}

body:has(.ncwi-onboarding-wrapper) .entry-title,
body:has(.ncwi-onboarding-wrapper) .page-title,
body:has(.ncwi-onboarding-wrapper) h1.entry-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    color: #000;
    margin: 0;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ── Progress Bar ── */
.ncwi-onboarding-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 15px;
    padding: 17px 40px;
    margin-bottom: 20px;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ncwi-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ncwi-step-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 400;
    flex-shrink: 0;
    background: #e0e0e0;
    color: #a0a0a0;
    transition: background 0.3s ease, color 0.3s ease;
}

.ncwi-progress-step.active .ncwi-step-number,
.ncwi-progress-step.completed .ncwi-step-number {
    background: #2a0000;
    color: #fff;
}

.ncwi-step-label {
    font-size: 14px;
    font-weight: 500;
    color: #a0a0a0;
    transition: color 0.3s ease;
}

.ncwi-progress-step.active .ncwi-step-label,
.ncwi-progress-step.completed .ncwi-step-label {
    color: #000;
}

.ncwi-step-arrow {
    color: #a0a0a0;
    font-size: 20px;
    flex-shrink: 0;
}

/* ── Content Card ── */
.ncwi-onboarding-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    min-height: 400px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ── Step Containers ── */
.ncwi-onboarding-step {
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.ncwi-onboarding-step .ncwi-ob-button-row {
    margin-top: auto;
    padding-top: 30px;
}

/* ── Headings ── */
.ncwi-ob-heading-large {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    color: #000;
    margin: 0 0 40px 0;
}

.ncwi-ob-heading {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.7;
    color: #000;
    margin: 0 0 30px 0;
}

.ncwi-ob-heading-success {
    font-size: 50px;
    font-weight: 600;
    line-height: 1.0;
    color: #000;
    margin: 0 0 40px 0;
    text-align: center;
}

/* ── Form Fields ── */
.ncwi-ob-field {
    margin-bottom: 20px;
}

.ncwi-ob-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #636363;
    margin-bottom: 8px;
}

.ncwi-ob-field input[type="password"] {
    width: 100%;
    height: 55px;
    padding: 0 15px;
    border: 1px solid #a0a0a0;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.ncwi-ob-field input[type="password"]:focus {
    border-color: #2a0000;
}

.ncwi-ob-field-error {
    font-size: 13px;
    color: #c62828;
    margin-bottom: 4px;
}

/* ── Password Requirements ── */
.ncwi-ob-requirements {
    background: #f4f4f6;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0 20px 0;
}

.ncwi-ob-requirements-title {
    font-size: 14px;
    font-weight: 600;
    color: #636363;
    margin: 0 0 8px 0;
}

.ncwi-ob-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ncwi-ob-requirements li {
    font-size: 12px;
    color: #636363;
    line-height: 20px;
    padding-left: 22px;
    position: relative;
}

/* Requirement icons - invalid state (x) */
.ncwi-ob-requirements li.ncwi-req-invalid::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: #c62828;
    font-size: 12px;
}

/* Requirement icons - valid state (checkmark) */
.ncwi-ob-requirements li.ncwi-req-valid {
    color: #636363;
}

.ncwi-ob-requirements li.ncwi-req-valid::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-size: 12px;
}

/* ── Error Message ── */
.ncwi-ob-error-message {
    background: #ffebee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin: 10px 0;
}

/* ── Buttons ── */
.ncwi-ob-button-row {
    display: flex;
    justify-content: flex-end;
}

.ncwi-ob-button-row-center {
    justify-content: center;
}

.ncwi-ob-button,
button.ncwi-ob-button,
a.ncwi-ob-button,
.ncwi-onboarding-wrapper .ncwi-ob-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #2a0000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    text-decoration: none !important;
    min-width: 141px !important;
    height: 44px !important;
    transition: background 0.2s ease, opacity 0.2s ease !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    outline: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
}

.ncwi-ob-button:hover,
button.ncwi-ob-button:hover,
a.ncwi-ob-button:hover,
.ncwi-onboarding-wrapper .ncwi-ob-button:hover {
    background: #1a0000 !important;
    color: #fff !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}

.ncwi-ob-button:focus,
button.ncwi-ob-button:focus,
.ncwi-onboarding-wrapper .ncwi-ob-button:focus {
    background: #2a0000 !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}

.ncwi-ob-button:disabled,
button.ncwi-ob-button:disabled,
.ncwi-onboarding-wrapper .ncwi-ob-button:disabled {
    opacity: 1 !important;
    cursor: not-allowed !important;
    background: #818181 !important;
    color: #fff !important;
}

.ncwi-ob-button:disabled:hover,
button.ncwi-ob-button:disabled:hover {
    background: #818181 !important;
}

/* ── Success Icon ── */
.ncwi-ob-success-icon {
    text-align: center;
    margin: 40px 0 30px 0;
}

.ncwi-ob-success-icon img {
    width: 120px;
    height: 120px;
}

/* ── Bookmark Hint ── */
.ncwi-ob-bookmark-hint {
    font-size: 12px;
    color: #636363;
    text-align: center;
    margin: 15px 0 0 0;
}

/* ── Centered Card (payment failed, etc.) ── */
.ncwi-ob-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
}

.ncwi-ob-subtitle {
    font-size: 16px;
    color: #636363;
    margin: 0 0 30px 0;
}

/* ── Fallback Messages ── */
.ncwi-ob-message {
    font-size: 16px;
    color: #333;
    text-align: center;
    padding: 40px 0;
    margin: 0;
}

.ncwi-ob-message a {
    color: #2a0000;
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ncwi-onboarding-wrapper {
        padding: 10px;
        margin-top: 0;
    }

    .ncwi-onboarding-progress {
        padding: 12px 15px;
        gap: 10px;
    }

    .ncwi-step-label {
        font-size: 11px;
    }

    .ncwi-step-arrow {
        font-size: 16px;
    }

    .ncwi-onboarding-card {
        padding: 25px 20px;
    }

    .ncwi-ob-heading-large {
        font-size: 28px;
    }

    .ncwi-ob-heading {
        font-size: 22px;
    }

    .ncwi-ob-heading-success {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .ncwi-onboarding-progress {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ncwi-step-arrow {
        display: none;
    }

    .ncwi-ob-button-row {
        justify-content: center;
    }
}

/* Knoprij met meerdere knoppen (bv. uitgeschakelde "Next step" + "Back to your
   account" na een mislukte wachtwoord-set): ruimte ertussen. */
.ncwi-ob-button-row {
    gap: 12px;
}

/* Secundaire knop: outline-variant, visueel onderscheidend van de primaire. */
.ncwi-ob-button-secondary,
a.ncwi-ob-button-secondary,
.ncwi-onboarding-wrapper a.ncwi-ob-button-secondary {
    background: #fff !important;
    color: #2a0000 !important;
    border: 1px solid #d9d4c8 !important;
}

.ncwi-ob-button-secondary:hover,
a.ncwi-ob-button-secondary:hover,
.ncwi-onboarding-wrapper a.ncwi-ob-button-secondary:hover {
    background: #f4f0e8 !important;
    color: #2a0000 !important;
    border: 1px solid #d9d4c8 !important;
}
