/* ============================================
   Create Business — Overrides only
   Base styles come from onboarding.css
   VERSION 1.0 - FEB 12 2026
   ============================================ */

/* Wider card for multi-step process */
.onboarding-wrapper { max-width: 800px; margin: 40px auto; }

/* ============================================
   Welcome Modal
   ============================================ */
.biz-welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.biz-welcome-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px); 
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.biz-welcome-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #E5E7EB;
}

.biz-welcome-modal-header h2 {
    margin: 0;
    color: #111928;
    text-align: center;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 150%;
}

.biz-welcome-modal-body {
    padding: 24px;
}

.biz-welcome-modal-text {
    color: #374151;
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 160%;
    margin: 0 0 20px 0;
}

.biz-welcome-modal-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #E1EFFE;
    border-radius: 8px;
}

.time-icon {
    font-size: 22px;
    line-height: 1;
}

.time-text {
    color: #1E40AF;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 150%;
}

.biz-welcome-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: center;
}

.biz-welcome-modal-footer .btn-onboarding {
    min-width: 140px;
    padding: 12px 32px;
}

/* Divider line */
.create-biz-divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 0 0 20px 0;
}

/* ============================================
   Color Picker (Custom)
   ============================================ */
.color-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    max-width: 440px;
}

/* Main color picker area (2D gradient) */
.color-picker-area {
    width: 100%;
    height: 280px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: crosshair;
    user-select: none;
    border: 1px solid #D1D5DB;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

/* Base color layer */
.color-picker-base {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #fff 0%, transparent 100%), 
                linear-gradient(to top, #000 0%, transparent 100%);
    position: relative;
}

/* Color picker cursor */
.color-picker-cursor {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

/* Hue slider container */
.color-picker-sliders {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Hue slider */
.color-picker-hue {
    position: relative;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, 
        #ff0000 0%, 
        #ffff00 17%, 
        #00ff00 33%, 
        #00ffff 50%, 
        #0000ff 67%, 
        #ff00ff 83%, 
        #ff0000 100%);
    cursor: pointer;
    user-select: none;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

/* Hue slider thumb */
.color-picker-hue-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: none;
    background: #fff;
}

/* Color values display */
.color-picker-values {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Color preview box */
.color-picker-preview {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Values fields */
.color-picker-fields {
    display: flex;
    gap: 8px;
    flex: 1;
}

.color-value-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.color-value-label {
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    text-align: center;
}

.color-value-input {
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    background: #F9FAFB;
    text-align: center;
    font-family: "Courier New", monospace;
    font-size: 12px;
    font-weight: 500;
    color: #111928;
    transition: all 0.2s ease;
}

.color-value-input:focus {
    outline: none;
    border-color: #0a66c2;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.1);
}

/* RGB specific styling */
.color-value-field.rgb-field {
    max-width: 56px;
}

/* Hex specific styling */
.color-value-field.hex-field {
    flex: 1.5;
    max-width: 120px;
}

/* ============================================
   Step 1: Logo Upload
   ============================================ */
.logo-upload-wrapper {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
}

.logo-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logo-buttons-wrapper .btn-onboarding {
    padding: 8px 16px;
    font-size: 12px;
    white-space: nowrap;
}

.logo-preview {
    width: 100px;
    height: 100px;
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    overflow: hidden;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    text-align: center;
    color: #9CA3AF;
}

.logo-placeholder .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.logo-placeholder p {
    font-size: 11px;
    margin: 0;
    padding: 0 8px;
}

/* Logo uploading state */
.logo-preview.uploading {
    opacity: 0.6;
    position: relative;
}

.logo-preview.uploading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #0a66c2;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Field helpers */
.field-description {
    font-size: 12px;
    color: #6B7280;
    margin: 6px 0 0 0;
    text-align: right;
}

.field-char-count {
    font-size: 11px;
    color: #9CA3AF;
    margin: 4px 0 0 0;
    text-align: left;
}

.field-char-count span {
    font-weight: 600;
    color: #6B7280;
}

/* Select fields */
.form-field select {
    display: flex;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--gray-300, #D1D5DB);
    background: var(--gray-50, #F9FAFB);
    color: var(--gray-900, #111928);
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 125%;
    transition: all 0.2s ease;
    cursor: pointer;
}

.form-field select:focus {
    outline: none;
    border-color: #0a66c2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

/* Input styling for all text-based inputs */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"] {
    display: flex;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--gray-300, #D1D5DB);
    background: var(--gray-50, #F9FAFB);
    color: var(--gray-900, #111928);
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 125%;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field input[type="url"]:focus {
    border-color: #0a66c2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

/* LTR direction for email, phone, url */
.form-field input[dir="ltr"] { 
    text-align: left; 
}

/* Required asterisk */
.biz-req { color: #F05252; margin-right: 2px; }

/* Messages */
.create-biz-messages {
    margin-bottom: 24px;
}
.create-biz-msg {
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
}
.create-biz-msg--error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}
.create-biz-msg--success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

/* Button tweaks */
.btn-onboarding.btn-primary {
    padding: 12px 40px;
}

/* Step 3 buttons - special layout */
.onboarding-buttons .btn-skip {
    padding: 12px 24px;
    font-size: 14px;
}

.onboarding-buttons .btn-skip:hover:not(:disabled) {
    color: #666 !important;
}

/* ============================================
   Step 4: Benefits (הטבות)
   ============================================ */

/* Add benefit button */
#add-benefit-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
}

.benefit-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
}

.benefit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.benefit-drag-handle {
    font-size: 20px;
    color: #9CA3AF;
    cursor: move;
    user-select: none;
}

.benefit-title {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111928;
}

.benefit-remove-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.benefit-remove-btn:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.benefit-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-icon-field {
    width: 74px;
    flex-shrink: 0;
}

.benefit-icon-field select {
    width: 74px;
    height: 44px;
    padding: 8px 4px;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
}

.benefit-icon-field select option {
    font-size: 16px;
    padding: 4px;
}

.benefit-description {
    width: 100%;
    min-height: 80px;
    max-height: 200px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    background: #fff;
    color: #111928;
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.benefit-description:focus {
    outline: none;
    border-color: #0a66c2;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.benefit-divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 16px -20px -20px -20px;
}

/* Sortable ghost/drag styles */
.sortable-ghost {
    opacity: 0.4;
}

.sortable-drag {
    cursor: move;
}

/* ============================================
   Step 5: Values (ערכים) - Same as Benefits
   ============================================ */
.value-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
}

.value-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.value-drag-handle {
    font-size: 20px;
    color: #9CA3AF;
    cursor: move;
    user-select: none;
}

.value-title {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111928;
}

.value-remove-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.value-remove-btn:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.value-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.value-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon-field {
    width: 74px;
    flex-shrink: 0;
}

.value-icon-field select {
    width: 74px;
    height: 44px;
    padding: 8px 4px;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
}

.value-icon-field select option {
    font-size: 16px;
    padding: 4px;
}

.value-description {
    width: 100%;
    min-height: 80px;
    max-height: 200px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    background: #fff;
    color: #111928;
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.value-description:focus {
    outline: none;
    border-color: #0a66c2;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.value-divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 16px -20px -20px -20px;
}

/* ============================================
   Success Modal (Step 5 Completion)
   ============================================ */
.biz-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.biz-success-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalSlideIn 0.4s ease-out;
}

.biz-success-modal-header {
    padding: 28px 24px 20px;
    background: linear-gradient(135deg, #E91E63 0%, #D81B60 100%);
}

.biz-success-modal-header h2 {
    margin: 0;
    color: #fff;
    text-align: center;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 150%;
}

.biz-success-modal-body {
    padding: 28px 24px;
}

.biz-success-modal-body p {
    color: #374151;
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 160%;
    margin: 0 0 16px 0;
}

.biz-success-modal-body p:last-child {
    margin-bottom: 0;
}

.biz-success-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: center;
}

.biz-success-modal-footer .btn-onboarding {
    min-width: 200px;
    padding: 14px 32px;
    font-size: 16px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.biz-success-modal-footer .btn-onboarding:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.4);
}

/* Responsive */
@media (max-width: 640px) {
    .create-business-page { max-width: 100%; }
    .create-business-page .onboarding-card { padding: 24px 20px; }
    .create-business-page .onboarding-buttons { justify-content: stretch !important; }
    .create-business-page .btn-onboarding { width: 100%; }
    
    /* Welcome Modal - Mobile */
    .biz-welcome-modal {
        padding: 16px;
    }
    
    .biz-welcome-modal-content {
        max-width: 100%;
    }
    
    .biz-welcome-modal-header h2 {
        font-size: 20px;
    }
    
    .biz-welcome-modal-text {
        font-size: 14px;
    }
    
    .biz-welcome-modal-footer .btn-onboarding {
        width: 100%;
    }

    /* Benefits - Mobile */
    .benefit-row,
    .value-row {
        flex-direction: column;
        gap: 12px;
    }

    .benefit-icon-field,
    .value-icon-field {
        width: 100%;
    }

    .benefit-icon-field select,
    .value-icon-field select {
        width: 100%;
    }

    .onboarding-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .onboarding-buttons .btn-onboarding {
        width: 100%;
    }

    /* Success Modal - Mobile */
    .biz-success-modal-header h2 {
        font-size: 20px;
    }

    .biz-success-modal-body {
        padding: 20px 16px;
    }

    .biz-success-modal-body p {
        font-size: 14px;
    }

    /* Logo upload - Mobile */
    .logo-upload-wrapper {
        flex-direction: column;
    }

    .logo-buttons-wrapper {
        width: 100%;
    }

    .logo-buttons-wrapper .btn-onboarding {
        width: 100%;
        font-size: 14px;
        padding: 10px 16px;
    }

    /* Color Picker - Mobile */
    .color-picker-wrapper {
        max-width: 100%;
        padding: 12px;
    }

    .color-picker-area {
        height: 220px;
    }

    .color-picker-values {
        flex-direction: column;
        gap: 12px;
    }

    .color-picker-preview {
        width: 100%;
        height: 40px;
    }

    .color-picker-fields {
        width: 100%;
    }

    .color-value-field.hex-field {
        max-width: none;
    }

    .color-value-field.rgb-field {
        max-width: none;
    }
}

/* ============================================
   Multi-select shared (Industry + Location)
   ============================================ */
.create-business-industry-msr .msr,
.create-business-location-msr .msr {
    position: relative;
    width: 100%;
    font-size: 14px;
    color: #333;
}

.create-business-industry-msr .msr-trigger,
.create-business-location-msr .msr-trigger {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    min-height: 44px;
    cursor: pointer;
    text-align: right;
}

.create-business-industry-msr .msr.open .msr-trigger,
.create-business-location-msr .msr.open .msr-trigger {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #999;
}

.create-business-industry-msr .msr-badge,
.create-business-location-msr .msr-badge {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.create-business-industry-msr .msr-badge .chip,
.create-business-location-msr .msr-badge .chip {
    background: #e9ecef;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
}

.create-business-industry-msr .msr-badge .chip button,
.create-business-location-msr .msr-badge .chip button {
    border: none;
    background: transparent;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    color: #777;
    padding: 0;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.create-business-industry-msr .msr-badge .chip button:hover,
.create-business-location-msr .msr-badge .chip button:hover {
    background: #d6d8db;
    color: #000;
}

.create-business-industry-msr .msr-panel,
.create-business-location-msr .msr-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #ccc;
    border-top: 0;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    max-height: 280px;
    display: none;
    text-align: right;
    overflow: hidden;
}

.create-business-industry-msr .msr-search-wrap,
.create-business-location-msr .msr-search-wrap {
    padding: 8px;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.create-business-industry-msr .msr-search-input,
.create-business-location-msr .msr-search-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 13px;
    font-family: "Noto Sans", Arial, sans-serif;
    text-align: right;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.create-business-industry-msr .msr-search-input:focus,
.create-business-location-msr .msr-search-input:focus {
    border-color: #0a66c2;
    box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.1);
}

.create-business-industry-msr .msr-options-list,
.create-business-location-msr .msr-options-list {
    max-height: 220px;
    overflow-y: auto;
}

.create-business-industry-msr .msr.open .msr-panel,
.create-business-location-msr .msr.open .msr-panel {
    display: block;
}

.create-business-industry-msr .msr-panel .msr-option,
.create-business-location-msr .msr-panel .msr-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.create-business-industry-msr .msr-panel .msr-option:hover,
.create-business-location-msr .msr-panel .msr-option:hover {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.create-business-industry-msr .msr-panel .msr-option.disabled,
.create-business-location-msr .msr-panel .msr-option.disabled {
    color: #999;
    background: #f5f5f5;
    cursor: not-allowed;
}

.create-business-industry-msr .msr-panel .msr-option.disabled:hover,
.create-business-location-msr .msr-panel .msr-option.disabled:hover {
    background: #f5f5f5;
    color: #999;
}
