/* Atabr Workflow Manager - Modern Design System */
:root {
    /* Color Palette */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Neutral Colors */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    
    /* Shadows - More subtle for minimalist look */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.02);
    --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.05);
    
    /* Layout */
    --radius: 8px;
    --container-width: 1100px;
}

/* Global Reset & Base */
.atabr-request-form-wrapper,
.atabr-order-status-wrapper {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    padding: 60px 20px;
    min-height: 100vh;
}

/* Main Container */
.atabr-form,
.atabr-order-status-container {
    max-width: var(--container-width);
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: none;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

/* Header Section */
.form-header {
    padding: 60px 40px 40px;
    background: #ffffff;
    border-bottom: none;
    text-align: center;
}

.header-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.header-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Progress Stepper */
.form-progress {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
    z-index: 2;
}

.progress-step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: none;
}

.progress-step.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.progress-step.active .step-label {
    color: var(--primary);
}

/* Form Content */
.form-step {
    padding: 40px;
}

.step-header {
    margin-bottom: 32px;
}

.step-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Grid Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

/* Form Controls */
.atabr-form-group {
    margin-bottom: 20px;
}

.atabr-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.atabr-form-group input,
.atabr-form-group select,
.atabr-form-group textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
    font-size: 1rem;
    transition: all 0.2s;
    background: transparent;
}

.atabr-form-group input:focus,
.atabr-form-group select:focus,
.atabr-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: none;
}

/* Product Items */
.atabr-product-item {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 24px;
    position: relative;
    border: 1px solid var(--border-light);
}

.atabr-product-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

.atabr-field-wide {
    grid-column: 1 / -1;
}

/* Buttons */
.btn-next, .atabr-submit-btn {
    background: var(--text-main);
    color: white;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-next:hover, .atabr-submit-btn:hover {
    background: var(--text-main);
    opacity: 0.9;
}

.btn-prev {
    background: transparent;
    color: var(--secondary);
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.atabr-add-product {
    width: 100%;
    padding: 16px;
    background: white;
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
}

.atabr-add-product:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* Help Section */
.form-help-section {
    padding: 60px 40px;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.help-contacts {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .atabr-product-grid {
        grid-template-columns: 1fr;
    }
    .form-progress {
        gap: 20px;
    }
    .step-label {
        display: none;
    }
}
