/* /broseph.in/css/case_onboarding.css */
/* Accessible, Tactile, Mobile-First Styles for St. Broseph Self Case Onboarding */

:root {
    --sb-blue: #28306F;
    --sb-blue-dark: #1b214f;
    --sb-blue-light: #eef2ff;
    --sb-orange: #F39117;
    --sb-orange-dark: #d67a07;
    --sb-orange-light: #fff7ed;
    --sb-danger: #dc2626;
    --sb-danger-light: #fef2f2;
    --sb-success: #16a34a;
    --sb-success-light: #f0fdf4;
    --sb-bg: #f8fafc;
    --sb-card: #ffffff;
    --sb-text: #0f172a;
    --sb-muted: #64748b;
    --sb-border: #e2e8f0;
    --sb-radius: 16px;
    --sb-shadow: 0 10px 25px -5px rgba(40, 48, 111, 0.08), 0 8px 10px -6px rgba(40, 48, 111, 0.04);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--sb-bg);
    color: var(--sb-text);
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.onboarding-container {
    max-width: 820px;
    margin: 1.5rem auto 3rem auto;
    padding: 0 1rem;
}

/* Header Banner */
.portal-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.portal-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sb-blue);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.portal-hero p {
    font-size: 1.05rem;
    color: var(--sb-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Card Container */
.wizard-card {
    background: var(--sb-card);
    border-radius: var(--sb-radius);
    box-shadow: var(--sb-shadow);
    border: 1px solid var(--sb-border);
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .wizard-card {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }
    .portal-hero h1 {
        font-size: 1.65rem;
    }
}

/* Progress Stepper with Labels & Icons */
.stepper-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2.25rem;
    position: relative;
}

.stepper-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: var(--sb-border);
    z-index: 1;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    cursor: default;
    padding: 0 4px;
}

.step-node {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--sb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--sb-muted);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.step-node i {
    font-size: 0.9rem;
}

.step-node.active {
    border-color: var(--sb-orange);
    color: #fff;
    background: var(--sb-orange);
    box-shadow: 0 0 0 4px var(--sb-orange-light);
}

.step-node.completed {
    background: var(--sb-blue);
    border-color: var(--sb-blue);
    color: #fff;
}

.step-label-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-title-text {
    font-size: 0.84rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1.25;
    transition: color 0.25s ease;
}

.step-sub-text {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.stepper-item.active .step-title-text {
    color: var(--sb-blue);
}

.stepper-item.active .step-sub-text {
    color: var(--sb-orange);
    font-weight: 600;
}

.stepper-item.completed .step-title-text {
    color: var(--sb-blue);
}

@media (max-width: 640px) {
    .stepper-bar::before {
        left: 12.5%;
        right: 12.5%;
        top: 17px;
    }
    .step-node {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    .step-node i {
        font-size: 0.8rem;
    }
    .step-title-text {
        font-size: 0.72rem;
    }
    .step-sub-text {
        display: none;
    }
}

/* Wizard Screens */
.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

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

.step-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--sb-blue);
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--sb-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Language Selection Grid */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lang-card {
    background: #fff;
    border: 2px solid var(--sb-border);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.lang-card:hover {
    border-color: var(--sb-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 145, 23, 0.12);
}

.lang-card.selected {
    border-color: var(--sb-blue);
    background: var(--sb-blue-light);
    box-shadow: 0 0 0 3px rgba(40, 48, 111, 0.15);
}

.lang-native {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--sb-blue);
    margin-bottom: 0.25rem;
}

.lang-english {
    font-size: 0.95rem;
    color: var(--sb-muted);
    font-weight: 600;
}

/* Emergency Banner */
.danger-banner {
    background: var(--sb-danger-light);
    border: 2px solid #fca5a5;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.danger-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sb-danger);
    font-weight: 800;
    font-size: 1.1rem;
}

.danger-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--sb-danger);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.2s;
}

.danger-call-btn:hover {
    background: #b91c1c;
}

/* Step 1 Compact Terms & Conditions Checkbox */
.step-terms-compact {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1.15rem;
    margin: 1.25rem 0 1.5rem 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.step-terms-compact.has-error {
    border-color: #ef4444;
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: shakeError 0.4s ease-in-out;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.terms-agreement-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    padding: 2px 0;
    margin: 0;
}

.terms-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--sb-orange);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.terms-agreement-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--sb-blue);
    line-height: 1.45;
}

.terms-link {
    color: var(--sb-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.15s ease;
}

.terms-link:hover {
    color: #c2410c;
}

.terms-error-msg {
    margin-top: 0.65rem;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 0.84rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.2s ease;
}

/* Terms & Conditions Modal Dialog */
.terms-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: fadeIn 0.2s ease;
}

.terms-modal-dialog {
    background: #ffffff;
    border-radius: 16px;
    max-width: 620px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideUpModal 0.25s ease;
}

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

.terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.terms-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--sb-blue);
}

.terms-modal-title i {
    color: var(--sb-orange);
    font-size: 1.2rem;
}

.terms-modal-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0 6px;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.terms-modal-close:hover {
    color: #0f172a;
}

.terms-modal-body {
    padding: 1.4rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.terms-modal-body::-webkit-scrollbar {
    width: 6px;
}
.terms-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.terms-modal-list {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.terms-modal-list li {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #334155;
}

.terms-modal-list li strong {
    color: var(--sb-blue);
    font-weight: 700;
}

.terms-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.4rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

@media (max-width: 640px) {
    .terms-modal-backdrop {
        padding: 0.75rem;
    }
    .terms-modal-dialog {
        max-height: 90vh;
        border-radius: 14px;
    }
    .terms-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Form Controls */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--sb-blue);
    margin-bottom: 0.4rem;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--sb-border);
    border-radius: 10px;
    font-size: 1.05rem;
    color: var(--sb-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--sb-blue);
    box-shadow: 0 0 0 3px rgba(40, 48, 111, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Phone & OTP Layout */
.phone-input-row {
    display: flex;
    gap: 8px;
}

.phone-prefix {
    background: #f1f5f9;
    border: 2px solid var(--sb-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: var(--sb-muted);
    display: flex;
    align-items: center;
}

.otp-box-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 1.5rem 0;
}

.otp-box {
    width: 48px;
    height: 58px;
    padding: 0;
    border: 2px solid var(--sb-border);
    border-radius: 12px;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 800;
    color: var(--sb-blue);
}

/* Six boxes must fit a narrow phone */
@media (max-width: 420px) {
    .otp-box-row { gap: 6px; }
    .otp-box { width: 40px; height: 50px; font-size: 1.4rem; border-radius: 10px; }
}

.otp-box:focus {
    border-color: var(--sb-orange);
    outline: none;
    box-shadow: 0 0 0 3px var(--sb-orange-light);
}

/* Tactile Buttons */
.btn-primary {
    background: var(--sb-orange);
    color: #fff;
    border: none;
    padding: 0.95rem 1.75rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-primary:hover {
    background: var(--sb-orange-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    color: var(--sb-blue);
    border: 2px solid var(--sb-border);
    padding: 0.95rem 1.75rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.button-row {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .button-row {
        flex-direction: column-reverse;
    }
    .btn-secondary {
        width: 100%;
    }
}

/* Multimodal Voice Bar & Recorder Controls */
.voice-section-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.voice-mode-block {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.voice-mode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.voice-mode-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--sb-blue);
}

.voice-feedback-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-mic {
    background: var(--sb-blue);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.35rem;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-mic:hover {
    background: var(--sb-blue-dark);
}

.btn-mic.recording {
    background: var(--sb-danger);
    animation: micPulse 1.5s infinite;
}

.btn-mic.processing {
    background: #4f46e5;
    cursor: wait;
    opacity: 0.95;
    pointer-events: none;
}

/* Audio Recorder Buttons */
.recorder-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-recorder-start {
    background: #fff;
    color: #b91c1c;
    border: 1.5px solid #fca5a5;
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}
.btn-recorder-start:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

.btn-recorder-pause {
    background: #fef3c7;
    color: #92400e;
    border: 1.5px solid #fde68a;
    border-radius: 50px;
    padding: 0.55rem 1rem;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.btn-recorder-pause:hover {
    background: #fde68a;
}

.btn-recorder-stop {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.55rem 1.2rem;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.btn-recorder-stop:hover {
    background: #15803d;
}

.recorder-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 0.25rem;
}

.rec-dot-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sb-danger);
    display: inline-block;
    animation: recBlink 1s infinite alternate;
}
@keyframes recBlink {
    0% { opacity: 0.2; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1.15); }
}

/* Audio Wave Visualizer */
.waveform-container {
    display: none;
    align-items: center;
    gap: 4px;
    height: 24px;
}

.waveform-container.active {
    display: flex;
}

.wave-bar {
    width: 3px;
    height: 100%;
    background: var(--sb-danger);
    border-radius: 3px;
    animation: waveJump 1s infinite ease-in-out;
}
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes waveJump {
    0%, 100% { height: 6px; }
    50% { height: 24px; }
}

/* Audio Player Preview */
.audio-preview-card {
    display: none;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.audio-preview-card.show {
    display: flex;
}

/* Smart Selected Category Card & AI Badge */
.ai-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.selected-category-card {
    background: #ffffff;
    border: 2px solid var(--sb-blue);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(40, 48, 111, 0.08);
    transition: all 0.2s ease;
}

.selected-cat-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-cat-icon {
    font-size: 2rem;
    line-height: 1;
}

.selected-cat-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--sb-blue);
}

.selected-cat-sub {
    font-size: 0.85rem;
    color: var(--sb-muted);
    margin-top: 2px;
    font-weight: 600;
}

.btn-change-cat {
    background: #f1f5f9;
    color: var(--sb-blue);
    border: 1.5px solid var(--sb-border);
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-change-cat:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.all-categories-panel {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.25s ease;
}

/* Category Archetype Tiles (17 Categories) */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.domain-tile {
    background: #fff;
    border: 2px solid var(--sb-border);
    border-radius: 12px;
    padding: 1rem 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.domain-tile:hover {
    border-color: var(--sb-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.domain-tile.selected {
    border-color: var(--sb-blue);
    background: var(--sb-blue-light);
    box-shadow: 0 0 0 3px rgba(40, 48, 111, 0.15);
}

.domain-icon {
    font-size: 1.45rem;
    margin-bottom: 2px;
}

.domain-name {
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--sb-blue);
}

.domain-examples {
    font-size: 0.8rem;
    color: var(--sb-muted);
    line-height: 1.3;
}

/* Subcategory Drawer */
.subcat-drawer {
    display: none;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.25s ease;
}

.subcat-drawer.active {
    display: block;
}

.subcat-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sb-blue);
    margin-bottom: 0.75rem;
    display: block;
    line-height: 1.5;
}

.subcat-title i {
    margin-right: 6px;
    color: var(--sb-blue);
}

.subcat-selected-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    display: none;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.subcat-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subcat-pill {
    background: #fff;
    border: 1.5px solid var(--sb-border);
    border-radius: 20px;
    padding: 0.45rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sb-text);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.subcat-pill:hover {
    border-color: var(--sb-orange);
    background: var(--sb-orange-light);
}

.subcat-pill.selected {
    background: var(--sb-blue);
    border-color: var(--sb-blue);
    color: #fff;
}

.form-input.has-error,
.form-textarea.has-error {
    border-color: var(--sb-danger) !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.field-error-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
    line-height: 1.4;
    animation: fadeIn 0.2s ease;
}

.field-error-msg i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Dropzone for Proof / Files */
.file-dropzone {
    border: 2px dashed var(--sb-border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s;
}

.file-dropzone:hover {
    border-color: var(--sb-blue);
    background: #f8fafc;
}

.dropzone-icon {
    font-size: 2rem;
    color: var(--sb-muted);
    margin-bottom: 0.5rem;
}

/* Success Card */
.success-box {
    text-align: center;
    padding: 2.5rem 1rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--sb-success-light);
    color: var(--sb-success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.ref-ticket-pill {
    display: inline-block;
    background: var(--sb-blue-light);
    border: 2px solid var(--sb-blue);
    color: var(--sb-blue);
    font-weight: 800;
    font-size: 1.35rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    margin: 1rem 0;
    letter-spacing: 1px;
}

/* Notifications / Toast */
.toast-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Draft Restore Notification Banner */
.draft-restore-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 0.75rem 1.15rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(22, 101, 52, 0.05);
    animation: fadeIn 0.3s ease;
}

.draft-restore-content {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.draft-restore-content i {
    color: #15803d;
    font-size: 1.05rem;
}

.btn-clear-draft {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-clear-draft:hover {
    background: #dcfce7;
    color: #14532d;
    border-color: #86efac;
}

@media (max-width: 600px) {
    .draft-restore-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .btn-clear-draft {
        align-self: flex-end;
    }
}

