/* Modern Minimal Spare Parts Request Form */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --success-light: #34d399;
    --error: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    padding: 1.5rem 1rem;
    max-width: 560px;
}

@media (min-width: 768px) {
    .container {
        padding: 3rem 1.5rem;
    }
}

/* Card Container */
.card {
    background: white;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Header */
.card-header {
    background: white;
    border-bottom: 1px solid var(--gray-100);
    padding: 1.5rem;
    position: relative;
}

@media (min-width: 768px) {
    .card-header {
        padding: 2rem;
    }
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.header-icon i {
    font-size: 1.25rem;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .header-title {
        font-size: 1.5rem;
    }
}

.header-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.header-accent {
    display: none;
}

/* Card Body */
.card-body {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .card-body {
        padding: 2rem;
    }
}

/* Progress Indicator */
.progress-container {
    margin-bottom: 2rem;
}

.progress {
    height: 4px;
    background-color: var(--gray-200);
    border-radius: 999px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 999px;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--gray-100);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0 auto 0.5rem;
    border: 2px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.active .step-circle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

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

.step-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .step-text {
        font-size: 0.875rem;
    }
}

.step.active .step-text {
    color: var(--primary);
    font-weight: 600;
}

.step.completed .step-text {
    color: var(--success);
    font-weight: 600;
}

/* Form Elements */
.form-step {
    animation: fadeIn 0.3s ease;
}

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

.form-step h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: white;
}

.form-control:hover {
    border-color: var(--gray-300);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group .form-control {
    flex: 1;
}

.input-group .btn {
    flex-shrink: 0;
    border-radius: var(--radius);
}

/* Checkbox and Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin: 0;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.form-check:hover {
    background-color: var(--gray-50);
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-check-label {
    font-size: 0.9375rem;
    color: var(--gray-700);
    cursor: pointer;
    line-height: 1.4;
    padding-left: 0;
}

.form-check-label strong {
    color: var(--gray-800);
    font-weight: 600;
}

/* Parts and Delivery Lists */
.parts-list, .delivery-options {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.parts-list hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 0.5rem 0;
}

#spare-parts-list .form-check {
    border-bottom: 1px solid var(--gray-100);
}

#spare-parts-list .form-check:last-child {
    border-bottom: none;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.alert-info {
    background-color: rgba(99, 102, 241, 0.08);
    color: var(--primary-dark);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Success/Error States */
#success-message, #error-message {
    padding: 2.5rem 2rem;
    text-align: center;
}

#success-message i, #error-message i {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
}

#success-message h4, #error-message h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

#success-message p, #error-message p {
    color: var(--gray-600);
    margin-bottom: 0;
}

.fa-check-circle {
    color: var(--success);
}

.fa-exclamation-circle {
    color: var(--error);
}

/* Buttons */
.btn {
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-light) 0%, var(--success) 100%);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    background: white;
    color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
}

.btn-outline-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-800);
}

.btn-outline-success {
    background: white;
    color: var(--success);
    border: 1.5px solid var(--success);
}

.btn-outline-success:hover {
    background: var(--success);
    color: white;
}

.btn-outline-danger {
    background: white;
    color: var(--error);
    border: 1.5px solid var(--error);
}

.btn-outline-danger:hover {
    background: var(--error);
    color: white;
}

/* Form Text & Validation */
.form-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.valid-feedback, .invalid-feedback {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    display: none;
}

.valid-feedback {
    color: var(--success);
}

.invalid-feedback {
    color: var(--error);
}

.form-control.is-valid {
    border-color: var(--success);
}

.form-control.is-invalid {
    border-color: var(--error);
}

/* Spinner */
.spinner-border {
    color: var(--primary);
}

/* Navigation Buttons */
.d-flex.justify-content-between,
.d-flex.justify-content-end {
    margin-top: 2rem;
    gap: 1rem;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .container {
        padding: 1rem 0.75rem;
    }
    
    .card-header, .card-body {
        padding: 1.25rem;
    }
    
    .header-icon {
        width: 44px;
        height: 44px;
    }
    
    .header-title {
        font-size: 1.125rem;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }
    
    .step-text {
        font-size: 0.6875rem;
    }
    
    .form-check {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
    }
    
    .d-flex.justify-content-between:not(.step-indicators) {
        flex-direction: column-reverse;
    }
    
    .d-flex.justify-content-end {
        justify-content: stretch !important;
    }
    
    .input-group {
        gap: 0.35rem;
    }
    
    .input-group .form-control {
        flex: 1;
        border-radius: var(--radius);
    }
    
    .input-group .btn {
        flex-shrink: 0;
        width: auto !important;
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
        border-radius: var(--radius);
        white-space: nowrap;
    }
    
    .input-group .btn span {
        display: none;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .btn:hover {
        transform: none;
    }
    
    .form-check:hover {
        background-color: transparent;
    }
    
    .form-check:active {
        background-color: var(--gray-100);
    }
}

/* Loading state for spare parts */
#spare-parts-list .text-center {
    padding: 2rem 1rem;
}

#spare-parts-list .text-center p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Project name display */
#project-name-container .alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#project-name-container strong {
    color: var(--primary-dark);
}

/* Units Section */
.units-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.units-header h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.units-count-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-left: 0.75rem;
}

.select-all-link {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.select-all-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.select-all-link.selected {
    color: var(--gray-500);
}

/* Units Grid */
.units-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .units-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Unit Card */
.unit-card {
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    outline: none;
}

.unit-card:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.unit-card:hover {
    border-color: var(--primary-light);
    background-color: rgba(99, 102, 241, 0.02);
}

.unit-card.selected {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.unit-card-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gray-400);
    font-size: 1rem;
}

.unit-card.selected .unit-card-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.unit-card-content {
    flex: 1;
    min-width: 0;
}

.unit-card-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gray-800);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    word-break: break-word;
}

.unit-card-description {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0 0 0.375rem 0;
    line-height: 1.3;
}

.unit-card-serial {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.unit-card-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.unit-card.selected .unit-card-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.unit-card.selected .unit-card-checkbox::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Hide actual checkbox */
.unit-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Mobile adjustments for unit cards */
@media (max-width: 479px) {
    .unit-card {
        padding: 0.875rem;
    }
    
    .unit-card-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .unit-card-name {
        font-size: 0.875rem;
    }
    
    .unit-card-description {
        font-size: 0.75rem;
    }
    
    .unit-card-serial {
        font-size: 0.6875rem;
    }
    
    .unit-card-checkbox {
        width: 20px;
        height: 20px;
        top: 0.875rem;
        right: 0.875rem;
    }
    
    .unit-card.selected .unit-card-checkbox::after {
        width: 6px;
        height: 6px;
    }
}

/* ============================================
   SPARE PARTS CARDS
   ============================================ */

/* Spare Parts Header */
.spare-parts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.spare-parts-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.spare-parts-badge {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.spare-parts-actions {
    display: flex;
    gap: 0.75rem;
}

.spare-parts-action-link {
    font-size: 0.8125rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.spare-parts-action-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.spare-parts-action-link.active {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Spare Parts Grid */
.spare-parts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (max-width: 575px) {
    .spare-parts-grid {
        grid-template-columns: 1fr;
    }
}

/* Spare Part Card */
.spare-part-card {
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    outline: none;
}

.spare-part-card:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.spare-part-card:hover {
    border-color: var(--primary-light);
    background-color: rgba(99, 102, 241, 0.02);
}

.spare-part-card.selected {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.spare-part-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spare-part-card-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gray-400);
    font-size: 1rem;
}

.spare-part-card.selected .spare-part-card-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.spare-part-card-content {
    flex: 1;
    min-width: 0;
}

.spare-part-card-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gray-800);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    word-break: break-word;
}

.spare-part-card-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.spare-part-card-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.spare-part-card.selected .spare-part-card-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.spare-part-card.selected .spare-part-card-checkbox::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Hide actual checkbox */
.spare-part-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Mobile adjustments for spare part cards */
@media (max-width: 479px) {
    .spare-part-card {
        padding: 0.875rem;
    }
    
    .spare-part-card-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .spare-part-card-name {
        font-size: 0.875rem;
    }
    
    .spare-part-card-checkbox {
        width: 20px;
        height: 20px;
        top: 0.875rem;
        right: 0.875rem;
    }
    
    .spare-part-card.selected .spare-part-card-checkbox::after {
        width: 6px;
        height: 6px;
    }
    
    .spare-parts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .spare-parts-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ============================================
   DELIVERY OPTION CARDS
   ============================================ */

/* Delivery Cards Grid */
.delivery-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 575px) {
    .delivery-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Delivery Card */
.delivery-card {
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: block;
    outline: none;
}

.delivery-card:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.delivery-card:not(.disabled):hover {
    border-color: var(--primary-light);
    background-color: rgba(99, 102, 241, 0.02);
}

.delivery-card.selected {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.03);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.delivery-card.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: var(--gray-50);
}

/* Hide actual radio input */
.delivery-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Delivery Card Icon */
.delivery-card-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--gray-400);
    font-size: 1.25rem;
}

.delivery-card.selected .delivery-card-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.delivery-card.disabled .delivery-card-icon {
    background: var(--gray-100);
    color: var(--gray-300);
}

/* Delivery Card Checkmark */
.delivery-card-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}

.delivery-card.selected .delivery-card-check {
    opacity: 1;
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-size: 0.75rem;
}

/* Delivery Card Content */
.delivery-card-content {
    text-align: left;
}

.delivery-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-800);
    margin: 0 0 0.375rem 0;
}

.delivery-card.disabled .delivery-card-title {
    color: var(--gray-500);
}

.delivery-card-description {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.delivery-card.disabled .delivery-card-description {
    color: var(--gray-400);
}

/* Delivery Card Time Badge */
.delivery-card-time {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.delivery-card.selected .delivery-card-time {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* Delivery Card Footer (for unavailable state) */
.delivery-card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.delivery-card-unavailable {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 500;
}

/* Mobile adjustments for delivery cards */
@media (max-width: 479px) {
    .delivery-card {
        padding: 1rem;
    }
    
    .delivery-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .delivery-card-title {
        font-size: 0.9375rem;
    }
    
    .delivery-card-description {
        font-size: 0.75rem;
    }
    
    .delivery-card-check {
        width: 20px;
        height: 20px;
        top: 0.875rem;
        right: 0.875rem;
    }
}

/* ============================================
   REFERENCE NUMBER BOX
   ============================================ */

.reference-number-box {
    display: inline-block;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
}

.reference-number-box small {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.reference-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    letter-spacing: 0.05em;
}
