/* =============================================================
   NAT Quote Form — Public Mobile-First Styles
   ============================================================= */

@font-face {
    font-family: 'Almarai';
    src: url('/nat_autoparts_quote_form/static/src/fonts/Almarai/Almarai-Regular.woff2') format('woff2'),
         url('/nat_autoparts_quote_form/static/src/fonts/Almarai/Almarai-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Almarai';
    src: url('/nat_autoparts_quote_form/static/src/fonts/Almarai/Almarai-Bold.woff2') format('woff2'),
         url('/nat_autoparts_quote_form/static/src/fonts/Almarai/Almarai-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Almarai';
    src: url('/nat_autoparts_quote_form/static/src/fonts/Almarai/Almarai-Extrabold.woff2') format('woff2'),
         url('/nat_autoparts_quote_form/static/src/fonts/Almarai/Almarai-Extrabold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --nat-brand-blue: #2a7cc7;
    --nat-brand-blue-dark: #1e5f9e;
    --nat-brand-red: #ef2335;
    --nat-brand-ink: #151515;
    --nat-brand-muted: #5f6b7a;
    --nat-surface: #ffffff;
    --nat-surface-soft: #f7fafc;
    --nat-border: #dbe3ec;
}

/* --- Base Wrapper --- */
.nat-quote-form-wrapper {
    min-height: 100vh;
    background: linear-gradient(145deg, #f8fbff 0%, #eef3f8 55%, #e7edf5 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 14px 24px;
    font-family: 'Almarai', 'Segoe UI', Tahoma, Arial, sans-serif;
    color: var(--nat-brand-ink);
}

.nat-quote-form-wrapper,
.nat-quote-form-wrapper *:not(.fa):not(.fab):not(.fas):not(.far) {
    font-family: 'Almarai', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

/* --- Steps --- */
.nat-step {
    width: 100%;
    max-width: 480px;
}
.nat-step:not(.active) {
    display: none;
}

.nat-form-toolbar {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nat-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.nat-stepper-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(149, 163, 184, 0.2);
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.nat-stepper-item.active {
    background: linear-gradient(135deg, var(--nat-brand-blue) 0%, var(--nat-brand-blue-dark) 100%);
    color: #fff;
    border-color: transparent;
}

.nat-stepper-item.done {
    background: #e0f2fe;
    color: #075985;
    border-color: #bae6fd;
}

/* --- Card --- */
.nat-form-card {
    background: var(--nat-surface);
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(24, 39, 75, 0.08);
    overflow: hidden;
}

.nat-form-header {
    background: linear-gradient(135deg, var(--nat-brand-blue) 0%, var(--nat-brand-blue-dark) 100%);
    color: #fff;
    padding: 16px 16px 12px;
    text-align: right;
}
.nat-form-header h2 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}
.nat-subtitle {
    margin: 0;
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.7;
}

.nat-form-body {
    padding: 16px 16px 18px;
}

/* --- Fields --- */
.nat-field-group {
    margin-bottom: 14px;
}
.nat-field-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--nat-brand-ink);
    margin-bottom: 6px;
}
.nat-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1.5px solid var(--nat-border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: var(--nat-surface-soft);
    font-family: inherit;
}
.nat-input:focus {
    border-color: var(--nat-brand-blue);
    box-shadow: 0 0 0 3px rgba(42, 124, 199, 0.12);
}
.nat-input-error {
    border-color: #ef2335 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(239, 35, 53, 0.08);
}
.nat-required {
    color: var(--nat-brand-red);
    font-weight: 800;
}
.nat-textarea {
    resize: vertical;
    min-height: 70px;
}
.nat-field-hint {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}
[dir="rtl"] .nat-form-body,
[dir="rtl"] .nat-form-header,
[dir="rtl"] .nat-field-group label,
[dir="rtl"] .nat-field-hint,
[dir="rtl"] .nat-info-box,
[dir="rtl"] .nat-portal-item-main,
[dir="rtl"] .nat-portal-detail-grid,
[dir="rtl"] .nat-portal-note {
    text-align: right;
}

/* --- Buttons --- */
.nat-btn {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    margin-top: 8px;
}
.nat-btn-primary {
    background: linear-gradient(135deg, var(--nat-brand-blue) 0%, var(--nat-brand-blue-dark) 100%);
    color: #fff;
}
.nat-btn-primary:hover {
    background: linear-gradient(135deg, var(--nat-brand-blue-dark) 0%, #184d80 100%);
}
.nat-btn-primary:active {
    transform: scale(0.98);
}
.nat-btn-primary:disabled {
    background: #9cb8f0;
    cursor: not-allowed;
}
.nat-btn-secondary {
    background: #fff;
    color: #334155;
    border: 1.5px solid #d7e0ea;
}
.nat-btn-secondary:hover {
    background: #f8fafc;
}
.nat-btn-link {
    background: none;
    color: var(--nat-brand-muted);
    font-size: 14px;
    padding: 8px;
}
.nat-btn-link:hover {
    color: var(--nat-brand-blue);
}
.nat-btn-danger {
    background: #fff;
    color: var(--nat-brand-red);
    border: 1.5px solid #f2b5bc;
}
.nat-btn-danger:hover {
    background: #ffe9ec;
}
.nat-btn-inline {
    display: inline-block;
    width: auto;
    min-width: 120px;
    margin-top: 0;
    text-decoration: none;
}
.nat-btn-toolbar {
    min-width: auto;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
}
.nat-action-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.nat-action-row-single {
    grid-template-columns: 1fr;
}
.nat-action-row .nat-btn {
    margin-top: 0;
}
.nat-action-row-compact .nat-btn {
    padding: 10px 12px;
    font-size: 13px;
}

.nat-btn-dashboard {
    text-decoration: none;
}

/* --- Error --- */
.nat-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
}

/* --- Info Box --- */
.nat-info-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
    font-size: 15px;
}
.nat-info-success {
    margin-bottom: 20px;
}
.nat-info-label {
    font-weight: 600;
    color: #374151;
    margin-right: 6px;
}

/* --- Vehicle List --- */
.nat-vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nat-vehicle-option {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}
.nat-vehicle-option:hover {
    border-color: #1a56db;
    background: #f0f5ff;
}
.nat-vehicle-option.selected {
    border-color: #1a56db;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(26, 86, 219, 0.2);
}
.nat-vehicle-option input[type="radio"] {
    margin-right: 10px;
    accent-color: #1a56db;
}

/* --- Divider --- */
.nat-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #9ca3af;
    font-size: 13px;
}
.nat-divider::before,
.nat-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* --- Upload --- */
.nat-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}
.nat-upload-area:hover {
    border-color: #1a56db;
}
.nat-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.nat-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 16px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}
.nat-upload-icon {
    font-size: 32px;
}
.nat-upload-preview {
    position: relative;
}
.nat-upload-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
}
.nat-btn-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Part Card --- */
.nat-part-card {
    background: #fafbfc;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}
.nat-part-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.nat-part-number {
    font-weight: 600;
    color: #1a56db;
    font-size: 14px;
}
.nat-part-remove {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

/* --- Part image upload (smaller) --- */
.nat-part-upload {
    border: 1.5px dashed #d1d5db;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.nat-part-upload .nat-upload-placeholder {
    padding: 14px 12px;
    font-size: 13px;
}
.nat-part-upload .nat-upload-icon {
    font-size: 22px;
}
.nat-part-upload .nat-upload-preview img {
    max-height: 120px;
}

/* --- Qty field (inline) --- */
.nat-inline-group {
    display: flex;
    gap: 12px;
}
.nat-inline-group .nat-field-group {
    flex: 1;
}
.nat-inline-group .nat-field-group.nat-qty-field {
    flex: 0 0 80px;
}

/* --- Success Card --- */
.nat-success-card {
    text-align: center;
    padding: 40px 24px;
}
.nat-success-icon {
    font-size: 56px;
    margin-bottom: 16px;
}
.nat-success-card h2 {
    color: #16a34a;
    margin-bottom: 12px;
}
.nat-success-card .nat-subtitle {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    opacity: 1;
}
.nat-hint {
    color: #6b7280;
    font-size: 14px;
    margin: 12px 0 20px;
}

/* --- Portal Pages --- */
.nat-portal-shell {
    align-items: stretch;
}
.nat-portal-page {
    width: 100%;
    max-width: 880px;
}
.nat-portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.nat-portal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.nat-portal-topbar h2,
.nat-portal-section h3 {
    margin: 0 0 6px;
}
.nat-portal-topbar h2 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.nat-portal-topbar .nat-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #475569;
    opacity: 1;
}
.nat-portal-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.nat-portal-stat-card,
.nat-portal-section {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(24, 39, 75, 0.07);
    padding: 16px;
}
.nat-portal-stat-card {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}
.nat-dashboard-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.nat-dashboard-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid #dce6f0;
    background: rgba(255, 255, 255, 0.78);
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.nat-dashboard-tab.is-active {
    background: linear-gradient(135deg, var(--nat-brand-blue) 0%, var(--nat-brand-blue-dark) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(42, 124, 199, 0.18);
}
.nat-dashboard-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(21, 21, 21, 0.08);
    font-size: 12px;
    font-weight: 800;
}
.nat-dashboard-tab.is-active .nat-dashboard-tab-count {
    background: rgba(255, 255, 255, 0.18);
}
.nat-dashboard-panel {
    display: none;
}
.nat-dashboard-panel.is-active {
    display: block;
}
.nat-portal-stat-number {
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    color: var(--nat-brand-blue);
    text-align: right;
}
.nat-portal-stat-card.stat-requests {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.nat-portal-stat-card.stat-progress {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}
.nat-portal-stat-card.stat-quoted {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}
.nat-portal-stat-card.stat-orders {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
}
.nat-portal-stat-label {
    color: #5f6b7a;
    font-size: 15px;
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.35;
    text-align: right;
}
.nat-portal-section {
    margin-bottom: 16px;
}
.nat-portal-section-nested {
    margin-bottom: 0;
    box-shadow: none;
    border: 1px solid #e7edf4;
}
.nat-portal-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.nat-portal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nat-portal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid #e7edf4;
    border-radius: 14px;
    background: #fafbfc;
    text-decoration: none;
    color: inherit;
}
.nat-portal-item-compact {
    align-items: flex-start;
}
.nat-portal-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.nat-portal-item:hover {
    border-color: #bfdbfe;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}
.nat-dashboard-more {
    margin-top: 8px;
}
.nat-dashboard-more > summary {
    list-style: none;
    cursor: pointer;
    text-align: center;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #dde6ef;
}
.nat-dashboard-more > summary::-webkit-details-marker {
    display: none;
}
.nat-dashboard-more[open] > summary {
    margin-bottom: 10px;
}
.nat-portal-item-static {
    cursor: default;
}
.nat-portal-item-main {
    min-width: 0;
    flex: 1;
}
.nat-portal-item-title {
    font-weight: 700;
    color: #111827;
    line-height: 1.5;
    font-size: 17px;
}
.nat-portal-price {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--nat-brand-blue-dark);
    font-size: 13px;
    font-weight: 800;
}
.nat-portal-item-sub {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
    line-height: 1.6;
}
.nat-portal-item-meta {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.6;
}
.nat-order-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.nat-order-step {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #7b8794;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}
.nat-order-step.step-paid.is-active {
    background: #dbeafe;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px #93c5fd;
}
.nat-order-step.step-pending-customer.is-active {
    background: #e0f2fe;
    color: #0369a1;
    box-shadow: inset 0 0 0 1px #7dd3fc;
}
.nat-order-step.step-pending-delivery.is-active {
    background: #ede9fe;
    color: #6d28d9;
    box-shadow: inset 0 0 0 1px #c4b5fd;
}
.nat-order-step.step-pending-address.is-active {
    background: #ffedd5;
    color: #c2410c;
    box-shadow: inset 0 0 0 1px #fdba74;
}
.nat-order-step.step-pending-payment.is-active {
    background: #fef3c7;
    color: #b45309;
    box-shadow: inset 0 0 0 1px #fcd34d;
}
.nat-order-step.step-preparing.is-active {
    background: #ffedd5;
    color: #c2410c;
    box-shadow: inset 0 0 0 1px #fdba74;
}
.nat-order-step.step-pickup.is-active {
    background: #dcfce7;
    color: #15803d;
    box-shadow: inset 0 0 0 1px #86efac;
}
.nat-order-step.step-shipped.is-active {
    background: #ede9fe;
    color: #6d28d9;
    box-shadow: inset 0 0 0 1px #c4b5fd;
}
.nat-order-step.step-completed.is-active {
    background: #ccfbf1;
    color: #0f766e;
    box-shadow: inset 0 0 0 1px #5eead4;
}
.nat-dot {
    padding: 0 6px;
}
.nat-portal-badge {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}
[dir="rtl"] .nat-portal-badge,
[dir="rtl"] .nat-portal-price {
    text-align: center;
}
.nat-portal-badge.state-draft {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.nat-portal-badge.state-in_progress {
    background: #ffedd5;
    color: #c2410c;
    border-color: #fed7aa;
}
.nat-portal-badge.state-quoted {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}
.nat-portal-badge.state-cancelled {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}
.nat-portal-badge.line-pending {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}
.nat-portal-badge.line-matched {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}
.nat-portal-badge.line-not_available {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}
.nat-portal-badge.order-draft,
.nat-portal-badge.order-sent {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.nat-portal-badge.order-awaiting_customer_action,
.nat-portal-badge.order-awaiting_delivery_method {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.nat-portal-badge.order-awaiting_address {
    background: #ffedd5;
    color: #c2410c;
    border-color: #fed7aa;
}
.nat-portal-badge.order-ready_for_payment {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}
.nat-portal-badge.order-paid,
.nat-portal-badge.order-preparing {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}
.nat-portal-badge.order-ready_for_pickup {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}
.nat-portal-badge.order-shipped {
    background: #ede9fe;
    color: #6d28d9;
    border-color: #ddd6fe;
}
.nat-portal-badge.order-completed {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}
.nat-portal-badge.order-sale {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}
.nat-portal-badge.order-cancel {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}
.nat-portal-price {
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    font-size: 18px;
}
.nat-portal-state-row {
    margin-bottom: 14px;
}
.nat-portal-note {
    margin-top: 16px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
}
.nat-portal-approve-form {
    margin-top: 18px;
}
.nat-portal-action-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}
.nat-portal-choice-form {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    background: #f8fbff;
}
.nat-pickup-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.nat-pickup-card-main {
    flex: 1;
    min-width: 0;
}
.nat-pickup-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--nat-brand-ink);
    margin-bottom: 8px;
}
.nat-portal-choice-meta {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
}
.nat-portal-choice-meta a {
    color: var(--nat-brand-blue-dark);
    text-decoration: none;
}
.nat-portal-form-block {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fbff;
}
.nat-portal-disclosure {
    margin-top: 18px;
}
.nat-portal-disclosure > summary {
    list-style: none;
    cursor: pointer;
}
.nat-portal-disclosure > summary::-webkit-details-marker {
    display: none;
}
.nat-portal-disclosure[open] > summary {
    margin-bottom: 10px;
}
.nat-portal-disclosure .nat-portal-form-block {
    margin-top: 0;
}
.nat-portal-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.nat-checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
}
.nat-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--nat-brand-blue);
}
.nat-field-group-wide {
    grid-column: 1 / -1;
}
.nat-portal-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    font-size: 14px;
}

/* --- Loading --- */
.nat-loading {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.nat-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e5e7eb;
    border-top-color: #1a56db;
    border-radius: 50%;
    animation: natSpin 0.7s linear infinite;
}
@keyframes natSpin {
    to { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 520px) {
    .nat-quote-form-wrapper {
        padding: 10px 10px 18px;
    }
    .nat-form-header {
        padding: 18px 16px 14px;
    }
    .nat-form-body {
        padding: 18px 16px;
    }
    .nat-portal-topbar h2 {
        font-size: 28px;
    }
    .nat-portal-topbar .nat-subtitle {
        font-size: 15px;
    }
    .nat-portal-topbar,
    .nat-portal-section-head,
    .nat-portal-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .nat-portal-actions {
        width: 100%;
    }
    .nat-portal-form-grid,
    .nat-portal-detail-grid {
        grid-template-columns: 1fr;
    }
    .nat-portal-stats,
    .nat-dashboard-switcher {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .nat-dashboard-switcher {
        gap: 7px;
    }
    .nat-dashboard-tab:last-child {
        grid-column: auto;
    }
    .nat-dashboard-tab {
        min-height: 40px;
        font-size: 12px;
        padding: 9px 10px;
    }
    .nat-dashboard-tab-count {
        min-width: 20px;
        height: 20px;
        font-size: 11px;
    }
    .nat-portal-form-grid,
    .nat-portal-detail-grid {
        grid-template-columns: 1fr;
    }
    .nat-pickup-card {
        flex-direction: column;
        align-items: stretch;
    }
    .nat-portal-stat-card {
        min-height: auto;
        padding: 12px 10px;
        gap: 4px;
        border-radius: 16px;
    }
    .nat-portal-stat-number {
        font-size: 26px;
        min-width: auto;
        line-height: 1;
    }
    .nat-portal-stat-label {
        font-size: 12px;
        margin-top: 0;
        line-height: 1.25;
    }
    .nat-portal-item {
        gap: 10px;
        padding: 12px;
    }
    .nat-portal-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .nat-portal-price {
        padding: 6px 9px;
    }
    .nat-btn-inline {
        width: 100%;
    }
    .nat-form-toolbar {
        margin-bottom: 8px;
    }
    .nat-btn-toolbar {
        width: 100%;
    }
    .nat-action-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
