@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Hospital Partner Portal Styles v2.2 - Red Accent Refactor */
:root {
    --portal-primary: #e63946;
    --portal-primary-hover: #d62828;
    --portal-secondary: #457b9d;
    --portal-bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --portal-surface: rgba(255, 255, 255, 0.95);
    --portal-glass: rgba(255, 255, 255, 0.7);
    --portal-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --portal-radius: 20px;
    --portal-radius-sm: 12px;
}

/* Reset and Base */
.hospital-portal-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: var(--portal-bg-gradient);
    min-height: 100vh;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.hospital-portal-wrapper * {
    box-sizing: border-box;
}

/* ===================
   AUTH PAGE (Login/Register)
   =================== */
.hospital-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.login-box {
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e1e5e9;
}

.auth-tab {
    flex: 1;
    padding: 18px 20px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

.auth-tab.active {
    background: white;
    color: var(--portal-primary);
    border-bottom: 3px solid var(--portal-primary);
    margin-bottom: -1px;
}

/* Auth Form Container */
.auth-form-container {
    display: none;
    padding: 40px;
}

.auth-form-container.active {
    display: block;
}

/* Auth Message */
.auth-message {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.auth-message.show {
    display: block;
}

.auth-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer p {
    margin: 0;
    color: #7f8c8d;
    font-size: 13px;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h1 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 700;
}

.login-subtitle {
    color: #7f8c8d;
    margin: 0;
    font-size: 15px;
}

/* Form Styles */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus {
    outline: none;
    border-color: var(--portal-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

.remember-me {
    margin-bottom: 25px;
}

.remember-me label {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--portal-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--portal-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(192, 57, 43, 0.3);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-view {
    background: #ecf0f1;
    color: #2c3e50;
    margin-right: 6px;
}

.btn-view:hover {
    background: #bdc3c7;
}

.btn-cancel {
    background: #e74c3c;
    color: white;
    margin-left: 8px;
}

.btn-cancel:hover {
    background: #c0392b;
}

.btn-cancel.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.actions-cell {
    white-space: nowrap;
}

.btn-logout {
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
}

.btn-logout:hover {
    background: #c0392b;
}

/* Loading State */
.btn.loading .btn-text {
    opacity: 0;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

.btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ===================
   DASHBOARD
   =================== */
.hospital-portal-dashboard {
    max-width: 100%;
    margin: 0;
    padding: 20px 40px;
}

/* Portal Header */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--portal-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: var(--portal-radius);
    margin-bottom: 25px;
    box-shadow: var(--portal-shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.portal-header h1 {
    margin: 0 0 5px 0;
    font-size: 28px;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.portal-subtitle {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* Tab Navigation */
.portal-tabs {
    display: flex;
    gap: 15px;
    background: var(--portal-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--portal-radius);
    margin-bottom: 30px;
    box-shadow: var(--portal-shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 16px 24px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #7f8c8d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-btn:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

.tab-btn.active {
    background: var(--portal-primary);
    color: white;
    border-color: var(--portal-primary);
}

.tab-icon {
    font-size: 18px;
}

/* Tab Content */
.portal-content {
    background: var(--portal-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--portal-radius);
    padding: 30px;
    box-shadow: var(--portal-shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.content-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
}

.content-header p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* Form Container */
.form-container {
    background: #fafbfc;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

/* Tables */
.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.portal-table thead {
    background: #f8f9fa;
}

.portal-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e1e5e9;
}

.portal-table td {
    padding: 16px;
    border-bottom: 1px solid #ecf0f1;
    color: #555;
}

.portal-table tbody tr:hover {
    background: #fafbfc;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Old status styles (kept for backwards compatibility) */
.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing,
.status-in-progress {
    background: #cce5ff;
    color: #004085;
}

.status-completed,
.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-invoiced {
    background: #e1e5e9;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* New Cremation Order Status Styles */
.status-cremation_requested,
.status-cremation-requested {
    background: #e3f2fd;
    color: #1565c0;
}

.status-picked_up,
.status-picked-up {
    background: #fff3e0;
    color: #e65100;
}

.status-processed_awaiting_return,
.status-processed-awaiting-return {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-returned_pending_invoice,
.status-returned-pending-invoice {
    background: #fff8e1;
    color: #f57f17;
}

/* Materials Order Status Styles */
.status-requested {
    background: #e3f2fd;
    color: #1565c0;
}

.status-awaiting_delivery,
.status-awaiting-delivery {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    margin: 5px 0;
    font-size: 16px;
}

.empty-hint {
    font-size: 14px !important;
    color: #95a5a6;
}

/* Error State */
.portal-error {
    text-align: center;
    padding: 60px 20px;
    background: #f8d7da;
    border-radius: 12px;
    color: #721c24;
}

/* ===================
   RESPONSIVE
   =================== */
@media (max-width: 768px) {
    .login-box {
        padding: 35px 25px;
    }

    .portal-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .portal-tabs {
        flex-direction: column;
    }

    .tab-btn {
        min-width: 100%;
    }

    .portal-content {
        padding: 20px;
    }

    .form-container {
        padding: 20px;
    }

    .portal-table {
        font-size: 13px;
    }

    .portal-table th,
    .portal-table td {
        padding: 12px 10px;
    }
}

/* Gravity Forms Overrides */
.form-container .gform_wrapper {
    margin: 0 !important;
}

.form-container .gform_wrapper input[type="text"],
.form-container .gform_wrapper input[type="email"],
.form-container .gform_wrapper textarea,
.form-container .gform_wrapper select {
    border: 2px solid #e1e5e9 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
}

.form-container .gform_wrapper input:focus,
.form-container .gform_wrapper textarea:focus,
.form-container .gform_wrapper select:focus {
    border-color: var(--portal-primary) !important;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1) !important;
}

.form-container .gform_wrapper .gform_button {
    background: var(--portal-primary) !important;
    border: none !important;
    padding: 14px 30px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.form-container .gform_wrapper .gform_button:hover {
    background: var(--portal-primary-hover) !important;
}

/* Modal Styles */
.portal-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.portal-modal-inner {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.view-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--portal-primary);
}

.view-item strong {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Form Type Selector */
.form-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.form-type-btn {
    flex: 1;
    min-width: 200px;
    padding: 20px 25px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.form-type-btn:hover {
    background: #ecf0f1;
    border-color: #bdc3c7;
}

.form-type-btn.active {
    background: #fff5f5;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

.form-type-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
}

.form-type-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.form-type-desc {
    display: block;
    font-size: 13px;
    color: #7f8c8d;
}

.form-type-content {
    display: none !important;
}

.form-type-content.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

/* Awaiting Verification Status */
.status-awaiting_verification {
    background: #fff3cd;
    color: #856404;
}

.payment-processing {
    color: #856404;
    font-size: 13px;
    font-weight: 500;
}

/* Registration Type Toggle */
.registration-type-group {
    margin-bottom: 25px;
}

.registration-type-group>label {
    margin-bottom: 10px;
}

.radio-toggle-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.radio-toggle {
    flex: 1;
    margin-bottom: 0;
}

.radio-toggle input {
    display: none;
}

.radio-toggle .toggle-btn {
    display: block;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    font-weight: 500;
    color: #7f8c8d;
}

.radio-toggle input:checked+.toggle-btn {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(33, 150, 243, 0.2);
}

/* Pending Payment Status */
.status-pending_payment,
.status-pending-payment {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ===================
   PREMIUM PORTAL VIEW
   =================== */
.portal-premium-view {
    font-family: 'Outfit', sans-serif;
    /* Assuming font is loaded or falls back */
    background: #f8faff;
}

.portal-premium-view .portal-modal-inner {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

/* Header */
.view-header {
    background: white;
    padding: 30px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-header-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #3b82f6;
}

.view-title-group h3 {
    margin: 0;
    font-size: 22px;
    color: #1e293b;
    font-weight: 700;
    line-height: 1.2;
}

.view-subtitle {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.view-header-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.view-date {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 15px;
    color: #475569;
    font-weight: 500;
}

/* Content Body */
.view-content-body {
    padding: 30px;
    background: #f8faff;
    overflow-y: auto;
    flex: 1;
}

.view-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

.view-section:last-child {
    margin-bottom: 0;
}

.section-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #334155;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.section-title span {
    font-size: 18px;
}

/* Grid & Fields */
.view-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

.view-grid.col-2 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.view-grid.col-3 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.view-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    /* Critical for grid item overflow */
}

.view-field.full-width {
    grid-column: 1 / -1;
}

.field-value {
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
    /* Wrap long strings */
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.field-value.highlight {
    color: var(--portal-primary);
    font-weight: 700;
}

.field-value.highlight-primary {
    padding: 12px;
    background: #f1f8ff;
    border-radius: 8px;
    color: #0366d6;
    border-left: 4px solid #0366d6;
}

.field-value.small-text {
    font-size: 14px;
    color: #475569;
}

.view-field label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-value {
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.5;
}

.field-value.highlight {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.field-value.highlight-primary {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
}

.field-value.small-text {
    font-size: 14px;
}

/* Materials List */
.materials-list {
    display: grid;
    gap: 15px;
}

.material-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.material-label {
    font-weight: 600;
    color: #334155;
    font-size: 15px;
}

.material-value {
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.empty-text {
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Footer */
.view-footer {
    padding: 20px 30px;
    background: white;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-secondary {
    background: white;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .portal-modal-inner {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .view-header-meta {
        align-items: flex-start;
        text-align: left;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .view-grid.col-2,
    .view-grid.col-3 {
        grid-template-columns: 1fr;
    }

    .materials-list {
        grid-template-columns: 1fr;
    }

    .material-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media print {
    .portal-modal-view {
        position: static;
        background: white;
        display: block !important;
    }

    .portal-modal-inner {
        box-shadow: none;
        width: 100%;
        max-width: none;
    }

    body>*:not(.portal-modal-view) {
        display: none;
    }

    .no-print {
        display: none;
    }
}

/* ===================
   WALK-IN PRICING SIDEBAR & LAYOUT
   =================== */
.walkin-layout-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.walkin-form-column {
    flex: 1;
    min-width: 0;
}

.walkin-pricing-column {
    width: 380px;
    flex-shrink: 0;
    position: sticky;
    top: 30px;
}

.pricing-sidebar-widget {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    height: calc(100vh - 120px);
    /* Fill most of the screen */
    display: flex;
    flex-direction: column;
}

.pricing-sidebar-list {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    /* Allow scrolling inside the card */
}

.pricing-sidebar-column {
    width: 380px;
    flex-shrink: 0;
    position: sticky;
    top: 30px;
    height: calc(100vh - 60px);
}

.pricing-sidebar-header {
    background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-hover));
    padding: 30px 25px;
    text-align: center;
    color: white;
}

.pricing-sidebar-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.pricing-sidebar-header h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.pricing-sidebar-subtitle {
    margin: 0;
    font-size: 13px;
    opacity: 0.85;
}

.pricing-sidebar-list {
    padding: 20px;
}

.pricing-sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: background 0.2s ease;
    border: 1px solid transparent;
}

.pricing-sidebar-item:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

.pricing-sidebar-item:last-child {
    margin-bottom: 0;
}

.pricing-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.pricing-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--portal-primary);
    background: #fef2f2;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-sidebar-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #f1f5f9;
}

.pricing-sidebar-footer p {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
}

/* Responsive: stack sidebar below form on mobile */
@media (max-width: 900px) {
    .walkin-layout-container {
        flex-direction: column;
    }

    .walkin-pricing-column {
        width: 100%;
        position: static;
    }
}

/* ===================
   PRICING TABLE (Order View Modal)
   =================== */
.pricing-summary-section {
    background: white;
    border: 1px solid #f1f5f9;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
    border-bottom: 2px solid #f1f5f9;
    background: #fafbfc;
}

.pricing-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.pricing-table thead th:first-child,
.pricing-table tbody td:first-child {
    width: 75%;
    padding-right: 20px;
}

.pricing-table thead th:last-child,
.pricing-table tbody td:last-child {
    width: 25%;
    white-space: nowrap;
}

.pricing-table tbody tr:hover {
    background: #fafbfc;
}

.pricing-total-row td {
    padding: 16px;
    font-size: 16px;
    border-top: 2px solid var(--portal-primary);
    background: #fef2f2;
    color: var(--portal-primary);
}

/* ===================
   LOCKED HOSPITAL FIELD
   =================== */
.fhp-locked-field {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #495057 !important;
    cursor: not-allowed !important;
    font-weight: 500 !important;
}

.fhp-locked-field:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #dee2e6 !important;
}

.fhp-field-lock-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border: 1px solid #b8d4f0;
    border-radius: 6px;
    font-size: 12px;
}

.fhp-lock-icon {
    font-size: 14px;
}

.fhp-lock-text {
    color: #1a73e8;
    font-weight: 500;
}

/* Gravity Forms field with locked input */
.gfield .fhp-locked-field+.fhp-field-lock-indicator {
    margin-top: 8px;
}

/* Ensure the locked field stands out */
.gfield:has(.fhp-locked-field) {
    position: relative;
}

.gfield:has(.fhp-locked-field) .gfield_label::after {
    content: " (Auto-filled)";
    font-size: 11px;
    font-weight: 400;
    color: #6c757d;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .view-header-meta {
        text-align: left;
        align-items: flex-start;
    }

    .view-grid.col-2,
    .view-grid.col-3 {
        grid-template-columns: 1fr;
    }
}

/* Dynamic Fields Improvements */
.dynamic-fields-grid {
    background: #fcfdfe;
    border-radius: 12px;
    padding: 20px;
}

.portal-premium-view * {
    box-sizing: border-box;
}