/* Reset WP top margin for full-height feel */
#wpcontent { padding-left: 0 !important; }

.lc-wrap {
    display: flex;
    min-height: calc(100vh - 32px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- Left sidebar ---- */
.lc-sidebar {
    width: 220px;
    min-width: 220px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.lc-logo svg {
    flex-shrink: 0;
}

.lc-logo-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.lc-version {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 28px 0;
    padding-left: 2px;
}

.lc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lc-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 15px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s;
}

.lc-nav a:hover {
    background: #f3f4f6;
    color: #111827;
}

.lc-nav a svg {
    opacity: 0.6;
    flex-shrink: 0;
}

/* ---- Main area ---- */
.lc-main {
    flex: 1;
    background: #f0f0f1;
    padding: 32px 32px 48px;
}

.lc-main h1 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.3;
}

.lc-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 24px;
}

/* ---- Cards ---- */
.lc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
    max-width: 600px;
}

/* Toggle row */
.lc-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lc-toggle-label strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.lc-toggle-label span {
    font-size: 15px;
    color: #6b7280;
}

/* Toggle switch */
.lc-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.lc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.lc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    border-radius: 26px;
    transition: background 0.2s;
}

.lc-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lc-switch input:checked + .lc-slider {
    background: #2563eb;
}

.lc-switch input:checked + .lc-slider:before {
    transform: translateX(22px);
}

/* Widget ID card */
.lc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 15px;
    color: #0369a1;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

.lc-status-badge.disabled {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.lc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.lc-dot.disabled {
    background: #ef4444;
}

.lc-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lc-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.lc-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.lc-hint {
    font-size: 14px;
    color: #9ca3af;
    margin: 6px 0 16px;
}

.lc-hint strong {
    color: #6b7280;
}

.lc-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.lc-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.lc-saved {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    color: #16a34a;
    margin-left: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.lc-saved.show {
    opacity: 1;
}

/* ---- Setup onboarding ---- */
.lc-wrap-onboarding [hidden] {
    display: none !important;
}

.lc-nav a.lc-nav-active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.lc-onboarding-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

#lc-connection-error {
    color: #b42318;
}

.lc-main.lc-main-onboarding {
    min-width: 0;
    padding: 38px 40px 52px;
}

.lc-onboarding {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
}

.lc-onboarding [hidden] {
    display: none !important;
}

.lc-onboarding-card {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.04);
}

.lc-onboarding-content {
    min-width: 0;
    padding: 48px 42px 42px;
}

.lc-onboarding-eyebrow {
    margin: 0 0 13px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.4;
}

.lc-onboarding-title {
    margin: 0 0 12px;
    color: #111827;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.lc-onboarding-intro {
    margin: 0 0 25px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.65;
}

.lc-onboarding-fields {
    display: grid;
    gap: 17px;
}

.lc-onboarding-field .lc-field-label {
    margin-bottom: 7px;
}

.lc-onboarding .lc-input {
    min-height: 42px;
    font-family: inherit;
    font-size: 15px;
}

.lc-onboarding .lc-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.lc-early-offer {
    margin: 0;
    padding: 2px 1px 0;
}

.lc-early-offer-label {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
}

.lc-early-offer-title {
    margin: 0 0 7px;
    color: #142747;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.lc-early-offer-title span {
    color: #2563eb;
}

.lc-early-offer-intro {
    margin: 0 0 18px;
    color: #596575;
    font-size: 14px;
    line-height: 1.55;
}

.lc-early-offer-features {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 13px 16px;
    margin: 0 0 17px;
    padding: 0;
    list-style: none;
}

.lc-early-offer-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    color: #5d6877;
    font-size: 11px;
    line-height: 1.45;
}

.lc-early-offer-features li > span:last-child {
    display: block;
    min-width: 0;
}

.lc-early-offer-features strong {
    display: block;
    margin: 0 0 2px;
    color: #1d2c43;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.lc-early-offer-features li > span:last-child > span {
    display: block;
}

.lc-early-offer-check {
    display: inline-flex;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    border-radius: 50%;
    background: #e7efff;
    color: #2862ce;
}

.lc-early-offer-check svg {
    display: block;
    width: 16px;
    height: 16px;
}

.lc-feature-icon-guests {
    background: #e5f4ec;
    color: #298258;
}

.lc-feature-icon-insights {
    background: #f0eafb;
    color: #7752bc;
}

.lc-feature-icon-languages {
    background: #f9ece2;
    color: #c76631;
}

.lc-early-offer-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 7px;
    margin: 0;
    padding: 13px 0 10px;
    border-top: 1px solid #e4e0da;
    color: #626d7b;
    font-size: 13px;
    line-height: 1.5;
}

.lc-early-offer-price strong {
    color: #172944;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.025em;
}

.lc-early-offer-price span {
    flex-basis: 100%;
}

.lc-early-offer-reassurance {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    color: #586575;
    font-size: 12px;
    line-height: 1.45;
    list-style: none;
}

.lc-early-offer-reassurance li {
    position: relative;
    min-height: 17px;
    padding-left: 23px;
}

.lc-early-offer-reassurance li::before {
    position: absolute;
    top: 1px;
    left: 0;
    display: flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dcefe5;
    color: #32835c;
    content: "✓";
    font-size: 11px;
    font-weight: 700;
}

.lc-onboarding-submit {
    min-height: 42px;
    justify-content: center;
    margin-top: 16px;
    padding: 9px 20px;
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

.lc-onboarding-submit:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

.lc-onboarding-account {
    margin: 22px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.lc-onboarding-account a,
.lc-onboarding-edit {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.lc-onboarding-account a:hover,
.lc-onboarding-edit:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.lc-onboarding-visual {
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    padding: 34px 32px 30px;
    background: #f8f6f2;
}

.lc-onboarding-image-frame {
    grid-column: 1 / -1;
    width: 100%;
}

.lc-onboarding-image-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.lc-onboarding-card:has(#lc-onboarding-form[hidden]) .lc-early-offer {
    display: none;
}

.lc-onboarding-error,
.lc-onboarding-mail-warning {
    margin: 14px 0 0;
    color: #b42318;
    font-size: 13px;
    line-height: 1.55;
}

.lc-onboarding-confirmation .lc-onboarding-intro {
    margin-bottom: 23px;
}

.lc-onboarding-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid #bbdfd0;
    border-radius: 6px;
    background: #f1f8f4;
    color: #245c43;
    font-size: 14px;
    font-weight: 600;
}

.lc-onboarding-status-list {
    display: grid;
    gap: 9px;
}

.lc-onboarding-status-complete {
    border-color: #bbdfd0;
    background: #f1f8f4;
    color: #245c43;
}

.lc-onboarding-status-pending {
    border-color: #e5e7eb;
    background: #f8fafc;
    color: #6b7280;
}

.lc-onboarding-status-icon {
    display: inline-flex;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9edf2;
    color: #737f8d;
}

.lc-onboarding-status-icon svg {
    width: 16px;
    height: 16px;
}

.lc-onboarding-status-complete .lc-onboarding-status-icon {
    background: #d9eee3;
    color: #26714d;
}

.lc-onboarding-check {
    display: inline-flex;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #d9eee3;
    color: #26714d;
}

.lc-onboarding-check svg {
    width: 16px;
    height: 16px;
}

.lc-onboarding-next {
    margin-top: 23px;
}

.lc-onboarding-next h3 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
}

.lc-onboarding-next p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.lc-onboarding-edit {
    display: inline;
    margin: 20px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-align: left;
}

.lc-onboarding-mail-warning {
    color: #8a4b12;
}

@media (max-width: 1200px) {
    .lc-main.lc-main-onboarding {
        padding: 28px 24px 40px;
    }

    .lc-onboarding-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .lc-onboarding-content {
        padding: 38px 30px 34px;
    }

    .lc-onboarding-visual {
        padding: 30px;
    }
}

@media (max-width: 960px) {
    .lc-wrap-onboarding {
        flex-direction: column;
    }

    .lc-wrap-onboarding .lc-sidebar {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding: 20px 24px;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .lc-wrap-onboarding .lc-version {
        margin-bottom: 14px;
    }

    .lc-wrap-onboarding .lc-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .lc-main.lc-main-onboarding {
        padding: 22px 16px 32px;
    }

    .lc-onboarding-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .lc-onboarding-content {
        padding: 30px 24px 27px;
    }

    .lc-onboarding-title {
        font-size: 25px;
    }

    .lc-early-offer-title {
        font-size: 30px;
    }

    .lc-early-offer-features {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 11px 12px;
    }

    .lc-onboarding-visual {
        gap: 17px;
        padding: 22px 24px 24px;
    }
}

@media (max-width: 480px) {
    .lc-early-offer-features {
        grid-template-columns: minmax(0, 1fr);
    }

    .lc-onboarding-visual {
        padding: 21px 18px;
    }
}
