/**
 * SiteStaffr Setup Wizard Styles
 *
 * Wizard-specific styles. Global CSS (sitestaffr-global.css) is loaded first
 * and provides: header, background (#FDFBF7), DM Sans font, base card styles.
 *
 * @package    SiteStaffr
 * @subpackage SiteStaffr/admin/css
 * @since      0.14.184
 */

/* ==========================================================================
   CRITICAL: Step Visibility — must match inline rules
   ========================================================================== */

.sitestaffr-wizard-step {
    display: none !important;
}

.sitestaffr-wizard-step.active {
    display: block !important;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

/* Remove old viewport-filling layout — global CSS provides #FDFBF7 background.
   The .wrap.sitestaffr-setup-wizard class lets WordPress handle the layout. */
.sitestaffr-setup-wizard .sitestaffr-wizard-container {
    --sitestaffr-wizard-pad: 40px;
    background: #fff;
    border: 1px solid #e8e2d8;
    border-radius: 12px;
    max-width: 680px;
    width: 100%;
    padding: var(--sitestaffr-wizard-pad);
    position: relative;
    margin: 24px auto 0;
    box-sizing: border-box;
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */

.sitestaffr-wizard-progress {
    margin-bottom: 40px;
}

.sitestaffr-progress-bar {
    height: 6px;
    background: #e8e2d8;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.sitestaffr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1FB6CC, #10b981);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.sitestaffr-progress-steps {
    display: flex;
    justify-content: space-between;
    max-width: 160px;
    margin: 0 auto 8px;
}

.sitestaffr-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8e2d8;
    color: #646970;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sitestaffr-step.active {
    background: #1FB6CC;
    color: #fff;
    transform: scale(1.1);
}

.sitestaffr-step.completed {
    background: #10b981;
    color: #fff;
}

.sitestaffr-progress-text {
    text-align: center;
    color: #646970;
    font-size: 13px;
    margin: 0;
}

/* ==========================================================================
   Step Content
   ========================================================================== */

.sitestaffr-step-content {
    min-height: 280px;
}

.sitestaffr-step-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 12px;
    text-align: center;
}

.sitestaffr-step-description {
    color: #646970;
    font-size: 14px;
    text-align: center;
    margin: 0 0 28px;
}

.sitestaffr-wizard-legal {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 24px;
}

.sitestaffr-wizard-legal a {
    color: #888;
    text-decoration: underline;
}

.sitestaffr-wizard-legal a:hover {
    color: #555;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */

.sitestaffr-field-group {
    margin-bottom: 20px;
}

.sitestaffr-field-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1d2327;
}

.sitestaffr-optional {
    font-weight: 400;
    color: #646970;
    font-size: 14px;
}

.sitestaffr-input,
.sitestaffr-select,
.sitestaffr-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e8e2d8;
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

.sitestaffr-input::placeholder,
.sitestaffr-textarea::placeholder {
    color: #c0bdb8;
}

.sitestaffr-input:focus,
.sitestaffr-select:focus,
.sitestaffr-textarea:focus {
    border-color: #1FB6CC;
    box-shadow: 0 0 0 3px rgba(31, 182, 204, 0.15);
    outline: none;
}

.sitestaffr-input.sitestaffr-error,
.sitestaffr-select.sitestaffr-error,
.sitestaffr-textarea.sitestaffr-error {
    border-color: #d63638;
}

.sitestaffr-textarea {
    resize: vertical;
    min-height: 220px;
    font-family: inherit;
}

.sitestaffr-input-inactive {
    background-color: #f6f7f7 !important;
    color: #a7aaad !important;
    opacity: 0.6;
    pointer-events: auto;
}

.sitestaffr-input-active {
    background-color: #fff !important;
    color: #1d2327 !important;
    opacity: 1;
}

#custom_hours_input {
    cursor: text !important;
}

.sitestaffr-input-inactive::selection {
    background-color: transparent;
}

.sitestaffr-field-helper {
    color: #646970;
    font-size: 13px;
    margin: 8px 0 0;
}

.sitestaffr-char-count {
    font-weight: 500;
    color: #1FB6CC;
}

.sitestaffr-error-msg {
    display: block;
    color: #d63638;
    font-size: 13px;
    margin-top: 6px;
}

/* ==========================================================================
   Plan Cards — Step 2
   ========================================================================== */

.sitestaffr-plan-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.sitestaffr-plan-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e8e2d8;
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sitestaffr-plan-card:hover {
    border-color: #1FB6CC;
    box-shadow: 0 2px 12px rgba(31, 182, 204, 0.1);
}

.sitestaffr-plan-card.sitestaffr-plan-popular {
    border-color: #10b981;
    border-width: 2px;
    box-shadow: 0 2px 16px rgba(16, 185, 129, 0.18);
}

.sitestaffr-plan-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 1;
}

.sitestaffr-plan-name {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 8px;
}

.sitestaffr-plan-price {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 700;
    color: #1FB6CC;
    line-height: 1;
    margin-bottom: 6px;
}

.sitestaffr-plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: #646970;
}

.sitestaffr-plan-minutes {
    font-size: 13px;
    color: #646970;
    margin-bottom: 16px;
}

.sitestaffr-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    width: 100%;
}

.sitestaffr-plan-features li {
    font-size: 13px;
    color: #3c434a;
    padding: 5px 0 5px 20px;
    position: relative;
}

.sitestaffr-plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

.sitestaffr-plan-select-btn {
    width: 100%;
    padding: 10px 16px;
    background: #1FB6CC;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'DM Sans', sans-serif;
    margin-top: auto;
}

.sitestaffr-plan-select-btn:hover {
    background: #17A2B8;
}

.sitestaffr-plan-popular .sitestaffr-plan-select-btn {
    background: #10b981;
}

.sitestaffr-plan-popular .sitestaffr-plan-select-btn:hover {
    background: #0f9f70;
}

.sitestaffr-plan-popular .sitestaffr-plan-price {
    color: #10b981;
}

.sitestaffr-free-trial-link {
    text-align: center;
    padding-top: 8px;
}

.sitestaffr-free-trial-link a {
    color: #1FB6CC;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.sitestaffr-free-trial-link a:hover {
    text-decoration: underline;
}

.sitestaffr-free-trial-link p {
    color: #646970;
    font-size: 12px;
    margin: 4px 0 0;
}

/* ==========================================================================
   Step 3 Section Headers — cream card header pattern
   ========================================================================== */

.sitestaffr-wizard-section-header {
    background: #FAF8F4;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #f0ebe0;
    margin: 24px calc(var(--sitestaffr-wizard-pad) * -1) 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    box-sizing: border-box;
}

/* ==========================================================================
   Business Hours Radio Options
   ========================================================================== */

.sitestaffr-recommended {
    color: #1FB6CC;
    font-weight: normal;
    font-size: 0.9em;
}

.sitestaffr-option-heading {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.sitestaffr-radio-option {
    margin-bottom: 12px;
    padding: 12px;
    border: 2px solid #e8e2d8;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sitestaffr-radio-option:hover {
    background: #f5f5f5;
    border-color: #c0bab0;
}

.sitestaffr-radio-option:has(input[type="radio"]:checked) {
    border-color: #1FB6CC;
    background: #E0F7FA;
}

.sitestaffr-radio-option label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
    cursor: pointer;
}

.sitestaffr-radio-option input[type="radio"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #1FB6CC;
}

.sitestaffr-radio-content {
    flex: 1;
}

.sitestaffr-radio-content strong {
    display: block;
    font-size: 14px;
    color: #1d2327;
    margin-bottom: 3px;
}

.sitestaffr-radio-content .description {
    margin: 0;
    font-size: 12px;
    color: #646970;
}

.sitestaffr-radio-option input[type="text"]:disabled {
    background: #f0f0f0;
    cursor: text;
    border-color: #e8e2d8;
    pointer-events: auto;
}

.sitestaffr-radio-option input[type="text"]:disabled:hover {
    background: #f9f9f9;
    border-color: #c0bab0;
}

/* ==========================================================================
   Schedule Builder
   ========================================================================== */

.sitestaffr-schedule-builder {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8e2d8;
}

.sitestaffr-schedule-day {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0ebe0;
}

.sitestaffr-schedule-day:last-child {
    border-bottom: none;
}

.sitestaffr-day-name {
    font-weight: 600;
    width: 100px;
    color: #333;
    font-size: 14px;
}

.sitestaffr-day-controls {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.sitestaffr-day-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.sitestaffr-day-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1FB6CC;
}

.toggle-label {
    font-weight: 500;
    min-width: 50px;
    font-size: 14px;
    color: #1d2327;
    cursor: pointer;
}

.sitestaffr-time-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sitestaffr-time-select {
    padding: 6px 10px;
    border: 1px solid #e8e2d8;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.sitestaffr-time-select:focus {
    border-color: #1FB6CC;
    outline: none;
    box-shadow: 0 0 0 2px rgba(31, 182, 204, 0.15);
}

.sitestaffr-time-separator {
    color: #646970;
    font-size: 14px;
}

/* ==========================================================================
   Website Scan & Description
   ========================================================================== */

.sitestaffr-btn-scan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    background: #10b981;
    color: #fff;
    border: 1px solid #10b981;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
    margin-bottom: 0;
    font-family: 'DM Sans', sans-serif;
    width: 100%;
    min-height: 40px;
}

.sitestaffr-btn-scan:hover {
    background: #0f9f70;
    border-color: #0f9f70;
}

.sitestaffr-btn-scan:disabled {
    background: #e8e2d8;
    border-color: #e8e2d8;
    color: #a7aaad;
    cursor: not-allowed;
}

.sitestaffr-generated-container {
    margin-top: 15px;
}

/* ==========================================================================
   Generate Description Hero Card
   ========================================================================== */

.sitestaffr-scan-hero {
    position: relative;
    min-height: 230px;
    border: 2px solid #d5ecef;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fcfd 0%, #eef7f6 100%);
    overflow: hidden;
    margin-bottom: 14px;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sitestaffr-scan-hero:hover {
    border-color: #1FB6CC;
    box-shadow: 0 8px 28px rgba(31, 182, 204, 0.16);
}

.sitestaffr-scan-hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    right: -120px;
    top: -110px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, rgba(31, 182, 204, 0.06) 42%, transparent 72%);
    pointer-events: none;
}

.sitestaffr-scan-hero-content {
    position: relative;
    z-index: 1;
    min-height: 230px;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sitestaffr-scan-hero-icon {
    width: 66px;
    height: 66px;
    border-radius: 999px;
    background: linear-gradient(145deg, #1FB6CC, #10b981);
    box-shadow: 0 12px 28px rgba(31, 182, 204, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    animation: sitestaffr-scan-pulse 2.4s ease-in-out infinite;
}

.sitestaffr-scan-hero-icon .dashicons {
    color: #fff;
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.sitestaffr-scan-hero-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #124f5a;
}

.sitestaffr-scan-hero-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    color: #355f66;
    max-width: 420px;
    line-height: 1.5;
}

.sitestaffr-btn-scan-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(135deg, #1FB6CC, #10b981);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(31, 182, 204, 0.3);
}

.sitestaffr-btn-scan-hero:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(31, 182, 204, 0.4);
}

.sitestaffr-btn-scan-hero:disabled {
    background: #e8e2d8;
    color: #a7aaad;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sitestaffr-btn-scan-hero .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.sitestaffr-scan-showcase {
    position: relative;
    margin-top: 14px;
    margin-bottom: 14px;
    min-height: 230px;
    border: 1px solid #d5ecef;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fcfd 0%, #eef7f6 100%);
    overflow: hidden;
}

.sitestaffr-scan-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.48) 45%, transparent 70%);
    transform: translateX(-120%);
    animation: sitestaffr-scan-sweep 2.2s ease-in-out infinite;
}

.sitestaffr-scan-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    left: -120px;
    top: -110px;
    background: radial-gradient(circle, rgba(31, 182, 204, 0.20) 0%, rgba(16, 185, 129, 0.06) 42%, transparent 72%);
    pointer-events: none;
}

.sitestaffr-scan-content {
    position: relative;
    z-index: 1;
    min-height: 230px;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sitestaffr-scan-core {
    width: 66px;
    height: 66px;
    border-radius: 999px;
    background: linear-gradient(145deg, #1FB6CC, #10b981);
    box-shadow: 0 12px 28px rgba(31, 182, 204, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    animation: sitestaffr-scan-pulse 1.8s ease-in-out infinite;
}

.sitestaffr-scan-core .dashicons {
    color: #fff;
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.sitestaffr-scan-title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #124f5a;
}

.sitestaffr-scan-subtitle {
    margin: 10px 0 0;
    font-size: 16px;
    color: #355f66;
    max-width: 580px;
    padding: 0 16px;
}

.sitestaffr-scan-progress {
    margin-top: 20px;
    width: min(420px, 88%);
    height: 10px;
    border-radius: 999px;
    background: rgba(31, 182, 204, 0.14);
    overflow: hidden;
}

.sitestaffr-scan-progress-bar {
    width: 44%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1FB6CC 0%, #10b981 100%);
    animation: sitestaffr-scan-progress 1.6s ease-in-out infinite;
}

.sitestaffr-scan-dots {
    margin-top: 12px;
    display: inline-flex;
    gap: 7px;
}

.sitestaffr-scan-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1FB6CC;
    opacity: 0.28;
    animation: sitestaffr-scan-dot 1.05s ease-in-out infinite;
}

.sitestaffr-scan-dots span:nth-child(2) {
    animation-delay: 0.18s;
}

.sitestaffr-scan-dots span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes sitestaffr-scan-pulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 12px 28px rgba(31, 182, 204, 0.28);
    }
    50% {
        transform: translateY(-3px);
        box-shadow: 0 16px 34px rgba(16, 185, 129, 0.34);
    }
}

@keyframes sitestaffr-scan-sweep {
    0% { transform: translateX(-120%); }
    55% { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}

@keyframes sitestaffr-scan-progress {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(250%); }
}

@keyframes sitestaffr-scan-dot {
    0%, 100% { opacity: 0.25; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

.sitestaffr-generated-box {
    background: var(--sitestaffr-bg-alt, #FAF8F4);
    border: 1px solid var(--sitestaffr-border, #E8E2D8);
    border-radius: var(--sitestaffr-radius, 8px);
    padding: 16px 18px;
    position: relative;
    text-align: left;
}

/* Lead with what happened, so the description reads as a result rather than a
   wall of text the owner has to audit. */
.sitestaffr-generated-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--sitestaffr-border, #E8E2D8);
}

.sitestaffr-generated-header .dashicons {
    color: var(--sitestaffr-green, #10B981);
    flex-shrink: 0;
}

.sitestaffr-generated-title {
    margin: 0;
    font-weight: 700;
    color: var(--sitestaffr-teal-dark, #00838F);
}

.sitestaffr-generated-sub {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--sitestaffr-text-muted, #646970);
}

/* Clamped by default with a fade — the full text is one click away. */
.sitestaffr-generated-text-wrap {
    position: relative;
}

.sitestaffr-generated-text-wrap.is-clamped {
    max-height: 9.6em;
    overflow: hidden;
}

.sitestaffr-generated-text-wrap.is-clamped::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.2em;
    background: linear-gradient(to bottom, rgba(250, 248, 244, 0), var(--sitestaffr-bg-alt, #FAF8F4));
    pointer-events: none;
}

.sitestaffr-generated-box p#generated-text {
    margin: 0;
    line-height: 1.6;
    color: var(--sitestaffr-text, #1D2327);
    white-space: pre-wrap;
}

.sitestaffr-generated-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.sitestaffr-btn-edit {
    background: none;
    border: none;
    color: #1FB6CC;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
}

.sitestaffr-btn-edit:hover {
    color: #17A2B8;
}

.sitestaffr-toggle-manual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #1FB6CC;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
    width: 100%;
    min-height: 40px;
}

.sitestaffr-toggle-manual:hover {
    text-decoration: underline;
}

.sitestaffr-description-option {
    transition: all 0.3s ease;
}

.sitestaffr-setup-wizard #schedule-builder {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.sitestaffr-step-back-row {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
}

.sitestaffr-step-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.sitestaffr-step-back-link:hover {
    color: #6b7280;
    text-decoration: none;
}

.sitestaffr-step-back-link .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.sitestaffr-step-back-row-bottom {
    margin-top: 14px;
    justify-content: flex-start;
}

/* ==========================================================================
   Step 3 Completion Buttons
   ========================================================================== */

.sitestaffr-button-group-step {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.sitestaffr-btn-skip,
.sitestaffr-btn-save {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.sitestaffr-btn-skip {
    background: #f5f3ef;
    border: 1px solid #e8e2d8;
    color: #3c434a;
}

.sitestaffr-btn-skip:hover {
    background: #eceae4;
    border-color: #c0bab0;
}

.sitestaffr-btn-save {
    background: #1FB6CC;
    border: 1px solid #1FB6CC;
    color: #fff;
}

.sitestaffr-btn-save:hover {
    background: #17A2B8;
    border-color: #17A2B8;
}

.sitestaffr-btn-save:disabled {
    background: #e8e2d8;
    border-color: #e8e2d8;
    color: #a7aaad;
    cursor: not-allowed;
}

/* ==========================================================================
   Navigation Buttons
   ========================================================================== */

.sitestaffr-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f0ebe0;
}

.sitestaffr-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sitestaffr-btn-back,
.sitestaffr-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.sitestaffr-btn-back {
    background: #f5f3ef;
    border: 1px solid #e8e2d8;
    color: #3c434a;
}

.sitestaffr-btn-back:hover {
    background: #eceae4;
    border-color: #c0bab0;
}

.sitestaffr-btn-next {
    background: #1FB6CC;
    border: 1px solid #1FB6CC;
    color: #fff;
}

.sitestaffr-btn-next:hover {
    background: #17A2B8;
    border-color: #17A2B8;
}

.sitestaffr-btn-next:disabled {
    background: #e8e2d8;
    border-color: #e8e2d8;
    color: #a7aaad;
    cursor: not-allowed;
}

@media screen and (max-width: 1080px) {
    .sitestaffr-setup-wizard .sitestaffr-wizard-container {
        --sitestaffr-wizard-pad: 28px;
        max-width: 760px;
        padding: 32px var(--sitestaffr-wizard-pad);
    }

    .sitestaffr-plan-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sitestaffr-plan-card {
        min-width: 0;
    }

    .sitestaffr-day-controls,
    .sitestaffr-time-inputs {
        flex-wrap: wrap;
    }

    .sitestaffr-description-actions-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .sitestaffr-actions-or {
        width: 100%;
    }
}

@media screen and (max-width: 980px) {
    .sitestaffr-plan-cards {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */

.sitestaffr-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 100;
}

.sitestaffr-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e8e2d8;
    border-top-color: #1FB6CC;
    border-radius: 50%;
    animation: sitestaffr-spin 0.8s linear infinite;
}

@keyframes sitestaffr-spin {
    to {
        transform: rotate(360deg);
    }
}

.sitestaffr-loading-overlay p {
    margin: 16px 0 0;
    color: #646970;
    font-size: 14px;
}

/* ==========================================================================
   Inline Success State — shown after Step 3 completion
   ========================================================================== */

.sitestaffr-completion {
    text-align: center;
    padding: 20px 0;
}

.sitestaffr-success-icon {
    margin-bottom: 20px;
}

.sitestaffr-success-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #10b981;
}

.sitestaffr-btn-dashboard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #1FB6CC;
    color: #fff;
    border: 2px solid #1FB6CC;
    margin-top: 20px;
    font-family: 'DM Sans', sans-serif;
}

.sitestaffr-btn-dashboard:hover {
    background: #17A2B8;
    border-color: #17A2B8;
    color: #fff;
}

.sitestaffr-btn-dashboard-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
}

.sitestaffr-btn-dashboard-secondary .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.sitestaffr-btn-dashboard-secondary:hover {
    color: #00838F;
}

.sitestaffr-btn-dashboard-secondary:hover .sitestaffr-dashboard-link-text {
    text-decoration: underline;
}

.sitestaffr-btn-dashboard:focus,
.sitestaffr-btn-dashboard-secondary:focus {
    outline: none;
    box-shadow: none;
}

.sitestaffr-next-steps {
    text-align: left;
    max-width: 420px;
    margin: 0 auto 28px;
}

.sitestaffr-next-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

.sitestaffr-next-step-number {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #E0F7FA;
    color: #00838F;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.sitestaffr-next-step-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media screen and (max-width: 782px) {
    .sitestaffr-setup-wizard .sitestaffr-wizard-container {
        --sitestaffr-wizard-pad: 20px;
        padding: 24px var(--sitestaffr-wizard-pad);
        margin: 16px auto 0;
    }

    .sitestaffr-plan-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sitestaffr-plan-card {
        padding: 20px 16px;
    }

    .sitestaffr-step-content h2 {
        font-size: 18px;
    }

    .sitestaffr-wizard-nav {
        flex-direction: column;
        gap: 16px;
    }

    .sitestaffr-nav-right {
        width: 100%;
        flex-direction: column-reverse;
        gap: 12px;
    }

    .sitestaffr-btn-next,
    .sitestaffr-btn-back {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .sitestaffr-button-group-step {
        flex-direction: column;
    }

    .sitestaffr-btn-skip,
    .sitestaffr-btn-save {
        width: 100%;
        text-align: center;
    }

    .sitestaffr-step-back-row {
        justify-content: flex-start;
    }

    .sitestaffr-schedule-day {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
    }

    .sitestaffr-day-name {
        margin-bottom: 8px;
        width: auto;
    }

    .sitestaffr-day-controls {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }

    .sitestaffr-time-inputs {
        width: 100%;
        flex-wrap: wrap;
    }

    .sitestaffr-time-select {
        flex: 1;
        min-width: 100px;
    }

    .sitestaffr-description-actions-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .sitestaffr-actions-or {
        width: 100%;
        text-align: center;
    }

    .sitestaffr-btn-scan,
    .sitestaffr-toggle-manual {
        justify-content: center;
        width: 100%;
        max-width: 420px;
        flex: 1 1 auto;
    }

    .sitestaffr-scan-showcase {
        min-height: 190px;
    }

    .sitestaffr-scan-content {
        min-height: 190px;
        padding: 22px 16px;
    }

    .sitestaffr-scan-title {
        font-size: 24px;
    }

    .sitestaffr-scan-subtitle {
        font-size: 14px;
    }
}

@media screen and (max-width: 640px) {
    .sitestaffr-setup-wizard .sitestaffr-wizard-container {
        --sitestaffr-wizard-pad: 16px;
        padding: 20px var(--sitestaffr-wizard-pad);
    }
}

/* ==========================================================================
   WIZARD OVERHAUL (spec 10) — hybrid flow, trial-primary, class conversions
   ========================================================================== */

.sitestaffr-required-star {
	color: #d63638;
}

.sitestaffr-field-error {
	color: #d63638;
	font-size: 14px;
	margin-top: 4px;
}

.sitestaffr-field-helper--hours {
	margin-bottom: 12px;
}

.sitestaffr-schedule-builder {
	margin: 12px 0 0 28px;
	width: calc(100% - 28px);
}

.sitestaffr-optional-label {
	font-weight: 400;
	color: var(--sitestaffr-text-muted, #646970);
	font-size: 13px;
}

/* Plan step — four cards side by side, free trial first and highlighted.
   The step widens the wizard card so the columns breathe; every other step
   keeps the narrow reading measure. */
.sitestaffr-setup-wizard .sitestaffr-wizard-container:has(.sitestaffr-wizard-step--wide.active) {
	max-width: 1120px;
}

.sitestaffr-plan-cards--four {
	align-items: stretch;
}

.sitestaffr-plan-cards--four .sitestaffr-plan-card {
	flex: 1 1 0;
	min-width: 0;
	padding: 24px 16px;
}

.sitestaffr-plan-card.sitestaffr-plan-trial {
	border-color: var(--sitestaffr-teal, #1FB6CC);
	border-width: 2px;
	background: var(--sitestaffr-teal-light, #E0F7FA);
	box-shadow: 0 2px 16px rgba(31, 182, 204, 0.18);
}

.sitestaffr-plan-trial .sitestaffr-plan-badge {
	background: var(--sitestaffr-teal, #1FB6CC);
}

.sitestaffr-plan-trial .sitestaffr-plan-price {
	color: var(--sitestaffr-teal-dark, #00838F);
}

.sitestaffr-license-key-note {
	margin-top: 16px;
	font-size: 13px;
	color: var(--sitestaffr-text-muted, #646970);
}

/* Meet-your-agent completion note */
.sitestaffr-meet-agent-note {
	font-size: 13px;
	color: var(--sitestaffr-text-muted, #646970);
	margin: 6px 0 16px;
}

/* Still-building state — the identity scan may still be running when the owner
   reaches the last step; they can wait or finish and fill it in later. */
.sitestaffr-scan-pending-note {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--sitestaffr-text-soft, #50575E);
}

.sitestaffr-wizard-inline-error {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-left: 4px solid var(--sitestaffr-red, #D63638);
	background: var(--sitestaffr-bg-alt, #FAF8F4);
	color: var(--sitestaffr-red, #D63638);
	font-size: 13px;
}
