/**
 * Vendor Registration Modal Styles
 * Multi-step registration wizard with responsive design
 * Requirements: 13.1, 13.8, 13.9, 4.4, 9.11-9.12, 12.9
 */

/* ========================================
   5.1 MULTI-STEP MODAL STRUCTURE
   ======================================== */

/* Modal Overlay - Full screen with backdrop blur */
.modal-overlay#vendorRegistrationModal,
.modal-overlay.vendor-registration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.modal-overlay#vendorRegistrationModal.active,
.modal-overlay.vendor-registration-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Container - White background with shadow */
.modal-content.vendor-registration {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay#vendorRegistrationModal.active .modal-content.vendor-registration,
.modal-overlay.vendor-registration-overlay.active .modal-content.vendor-registration {
    transform: scale(1) translateY(0);
}

/* Modal Close Button */
.modal-content.vendor-registration .modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-content.vendor-registration .modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
    transform: rotate(90deg);
}

.modal-content.vendor-registration .modal-close:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Registration Header */
.registration-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-right: 40px; /* Space for close button */
}

.registration-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    font-family: 'Sora', sans-serif;
}

/* Ensure vendor registration modal title is white */
#vendorRegistrationModal .registration-header h2,
.modal-overlay .vendor-registration .registration-header h2 {
    color: #ffffff !important;
}

.registration-tagline {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

/* Progress Indicator */
.registration-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding: 0 10px;
}

.registration-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.step-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    text-align: center;
    transition: color 0.3s ease;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    padding: 0 2px;
}

/* Active Step */
.progress-step.active .step-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.progress-step.active .step-label {
    color: #10b981;
    font-weight: 700;
}

/* Completed Step */
.progress-step.completed .step-number {
    background: #10b981;
    color: #ffffff;
}

.progress-step.completed .step-label {
    color: #10b981;
}

.progress-step.completed .step-number::after {
    content: '✓';
    font-size: 1.2rem;
}

/* Form Steps - Fade-in animations */
.vendor-form {
    position: relative;
}

.form-step {
    display: none;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.form-step.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ========================================
   5.2 FORM COMPONENTS
   ======================================== */

/* Form Row - Two-column layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.single-column {
    grid-template-columns: 1fr;
}

/* Form Group - Individual field container */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Labels */
.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-group label .required-asterisk {
    color: #ef4444;
}

/* Input Fields, Dropdowns, Textareas */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

/* Focus States - Accessibility */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Hover States */
.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
    border-color: #cbd5e1;
}

/* Disabled State */
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Textarea Specific */
.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Field Hints */
.field-hint {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: -0.25rem;
}

/* Validation Error Messages */
.field-error {
    font-size: 0.85rem;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: -0.25rem;
    animation: slideDown 0.2s ease;
}

.field-error::before {
    content: '⚠';
    font-size: 1rem;
}

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

/* Invalid Input State */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-group input.invalid:focus,
.form-group select.invalid:focus,
.form-group textarea.invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Valid Input State */
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: #10b981;
}

/* Character Counter */
.char-counter {
    font-size: 0.85rem;
    color: #64748b;
    text-align: right;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.error {
    color: #ef4444;
}

.char-counter.success {
    color: #10b981;
}

/* ========================================
   5.3 BUSINESS PROFILE DIMENSION CARDS
   Brand Colors: Green (#10b981 to #059669), Yellow/Gold (#fbbf24 to #f59e0b), Darker Green (#059669 to #047857)
   ======================================== */

.modal-content.vendor-registration .dimension-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.modal-content.vendor-registration .dimension-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.modal-content.vendor-registration .dimension-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

/* Dimension Label - Distinctive appearance with brand colors */
.modal-content.vendor-registration .dimension-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

/* Card 2: HOW BIG you are - Yellow/Gold gradient with dark text */
.modal-content.vendor-registration .dimension-card:nth-child(2) .dimension-label {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.2);
    color: #1e293b; /* Dark text for better contrast on yellow */
}

/* Card 3: HOW you operate - Darker green gradient */
.modal-content.vendor-registration .dimension-card:nth-child(3) .dimension-label {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.modal-content.vendor-registration .dimension-explanation {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    font-style: italic;
}

/* ========================================
   5.4 BMC SECTION INTERFACE
   ======================================== */

/* BMC Header */
.bmc-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.bmc-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.5rem;
}

.bmc-requirement-indicator {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.bmc-requirement-indicator.required {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.bmc-requirement-indicator.optional {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

/* BMC Progress Info */
.bmc-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bmc-section-counter {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.bmc-completion-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
}

.bmc-completion-badge::before {
    content: '✓';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 0.75rem;
}

/* BMC Progress Bar */
.bmc-progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.bmc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* BMC Content Area */
.bmc-content {
    margin-bottom: 1.5rem;
}

.bmc-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.bmc-question {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* BMC Example Text */
.bmc-example {
    background: #f8fafc;
    border-left: 4px solid #10b981;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

.bmc-example-label {
    font-weight: 600;
    color: #334155;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* BMC Section Textarea */
.bmc-textarea {
    min-height: 150px !important;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* BMC Grid Visual (Optional) */
.bmc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.bmc-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bmc-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
}

.bmc-card.active {
    border-color: #10b981;
    background: #f0fdf4;
    color: #065f46;
    font-weight: 600;
}

.bmc-card.completed {
    background: #f0fdf4;
    border-color: #10b981;
}

.bmc-card.completed::after {
    content: ' ✓';
    color: #10b981;
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

.btn-previous,
.btn-next,
.btn-submit,
.btn-skip {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-height: 44px; /* Touch-friendly */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

/* Previous Button */
.btn-previous {
    background: #f8fafc;
    color: #334155;
    border: 2px solid #e2e8f0;
}

.btn-previous:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(-2px);
}

.btn-previous:active {
    transform: translateX(-2px) scale(0.98);
}

/* Next Button */
.btn-next {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-next:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-next:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-next::after {
    content: '→';
    font-size: 1.2rem;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    flex: 1;
}

.btn-submit:hover {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(-1px) scale(0.98);
}

/* Skip Button */
.btn-skip {
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-skip:hover {
    background: #f8fafc;
    color: #334155;
}

/* Disabled Button State */
.btn-previous:disabled,
.btn-next:disabled,
.btn-submit:disabled,
.btn-skip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading State */
.btn-submit.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

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

/* ========================================
   5.5 RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .modal-content.vendor-registration {
        max-width: 700px;
        padding: 2rem;
    }

    .registration-header h2 {
        font-size: 1.75rem;
    }

    .form-row {
        gap: 1.25rem;
    }

    .registration-progress {
        padding: 0 5px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

/* Small Tablet / Large Phone (600px - 767px) */
@media (max-width: 767px) and (min-width: 600px) {
    .registration-progress {
        padding: 0 3px;
    }

    .step-number {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .step-label {
        font-size: 0.65rem;
        max-width: 65px;
    }

    .registration-progress::before {
        top: 17px;
    }
}

/* Mobile (<768px) */
@media (max-width: 768px) {
    .modal-overlay#vendorRegistrationModal,
    .modal-overlay.vendor-registration-overlay {
        padding: 10px;
        align-items: flex-start;
    }

    .modal-content.vendor-registration {
        max-width: 100%;
        width: 100%;
        max-height: none;
        padding: 1.5rem;
        margin: 10px 0;
        border-radius: 12px;
    }

    .modal-content.vendor-registration .modal-close {
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
    }

    .registration-header {
        padding-right: 0;
        margin-bottom: 1.5rem;
    }

    .registration-header h2 {
        font-size: 1.5rem;
    }

    .registration-tagline {
        font-size: 0.9rem;
    }

    /* Stack progress indicator on mobile */
    .registration-progress {
        padding: 0 2px;
        margin-bottom: 1.5rem;
        gap: 0.25rem;
        align-items: flex-start; /* Use flex-start on mobile for wrapped text */
    }

    .registration-progress::before {
        top: 14px;
    }

    .progress-step {
        gap: 0.35rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        border-width: 2px;
    }

    .step-label {
        font-size: 0.6rem;
        line-height: 1.1;
        max-width: 60px;
        padding: 0 1px;
    }

    .progress-step.active .step-number {
        transform: scale(1.05);
    }

    /* Stack form-row columns on mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-step h3 {
        font-size: 1.25rem;
    }

    .step-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }

    /* Dimension Cards */
    .modal-content.vendor-registration .dimension-cards {
        gap: 1rem;
    }

    .modal-content.vendor-registration .dimension-card {
        padding: 1.25rem;
    }

    /* BMC Interface */
    .bmc-header {
        padding: 1.25rem;
    }

    .bmc-header h4 {
        font-size: 1.125rem;
    }

    .bmc-section-title {
        font-size: 1.125rem;
    }

    .bmc-textarea {
        min-height: 120px !important;
    }

    .bmc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        padding: 0.75rem;
    }

    .bmc-card {
        padding: 0.5rem;
        font-size: 0.7rem;
    }

    /* Buttons - Touch-friendly sizes */
    .form-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .btn-previous,
    .btn-next,
    .btn-submit,
    .btn-skip {
        width: 100%;
        min-height: 48px; /* Larger touch target on mobile */
        padding: 1rem;
    }

    /* Reverse button order on mobile for better UX */
    .form-buttons {
        flex-direction: column-reverse;
    }
}

/* Small Mobile (<480px) */
@media (max-width: 480px) {
    .modal-content.vendor-registration {
        padding: 1.25rem;
    }

    .registration-header h2 {
        font-size: 1.25rem;
    }

    /* Use abbreviated step labels on very small screens */
    .step-label {
        font-size: 0.55rem;
        max-width: 50px;
        line-height: 1.1;
    }

    /* Abbreviate step labels using data attributes */
    .progress-step[data-step="1"] .step-label::after {
        content: 'Basic';
    }

    .progress-step[data-step="2"] .step-label::after {
        content: 'Profile';
    }

    .progress-step[data-step="3"] .step-label::after {
        content: 'Plan';
    }

    .progress-step[data-step="4"] .step-label::after {
        content: 'Stock';
    }

    .progress-step .step-label {
        font-size: 0;
    }

    .progress-step .step-label::after {
        font-size: 0.55rem;
    }

    .step-number {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .registration-progress::before {
        top: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
    }

    .bmc-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #10b981;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modal-content.vendor-registration {
        border: 3px solid #000000;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 3px;
    }

    .btn-next,
    .btn-submit {
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .form-step {
        animation: none;
    }

    .modal-content.vendor-registration {
        transform: none !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .modal-overlay#vendorRegistrationModal,
    .modal-overlay.vendor-registration-overlay {
        position: static;
        background: none;
    }

    .modal-content.vendor-registration {
        max-width: 100%;
        box-shadow: none;
        padding: 0;
    }

    .modal-close,
    .form-buttons,
    .registration-progress {
        display: none;
    }

    .form-step {
        display: block !important;
        page-break-inside: avoid;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* Success message */
.success-message {
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 1rem;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.success-message::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

/* Error message (global) */
.error-message {
    background: #fef2f2;
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 1rem;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.error-message::before {
    content: '⚠';
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}
