/* ============================================================
           DESIGN SYSTEM — CSS CUSTOM PROPERTIES
        ============================================================ */
        :root {
            /* Brand */
            --cs-teal:          #00cdd7;
            --cs-teal-deep:     #009aa5;
            --cs-teal-glow:     rgba(0,205,215,0.35);
            --cs-teal-soft:     rgba(0,205,215,0.08);
            --cs-teal-border:   rgba(0,205,215,0.22);

            /* Neutrals — cool-leaning dark */
            --cs-bg:            #f4f7fa;
            --cs-surface:       #ffffff;
            --cs-surface-2:     #f8fafc;
            --cs-border:        rgba(203,213,225,0.65);
            --cs-border-hover:  rgba(0,205,215,0.4);

            /* Text */
            --cs-text-1:        #0f172a;
            --cs-text-2:        #334155;
            --cs-text-3:        #64748b;
            --cs-text-4:        #94a3b8;

            /* Semantic */
            --cs-success:       #10b981;
            --cs-error:         #ef4444;
            --cs-warning:       #f59e0b;

            /* Spacing */
            --cs-r-card:        20px;
            --cs-r-input:       12px;
            --cs-r-btn:         999px;

            /* Shadows */
            --shadow-card:      0 1px 3px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.05);
            --shadow-card-hover:0 4px 6px rgba(15,23,42,.04), 0 16px 40px rgba(0,205,215,.10);
            --shadow-teal:      0 8px 20px -4px rgba(0,205,215,.45);
            --shadow-teal-lg:   0 16px 32px -6px rgba(0,205,215,.55);

            /* Timing */
            --ease-spring:      cubic-bezier(0.34,1.56,0.64,1);
            --ease-out-expo:    cubic-bezier(0.16,1,0.3,1);
            --ease-in-out:      cubic-bezier(0.65,0,0.35,1);
        }

        /* ============================================================
           BASE
        ============================================================ */
        *, *::before, *::after { box-sizing: border-box; }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Prompt', sans-serif;
            color: var(--cs-text-1);
            background-color: var(--cs-bg);
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
            position: relative;
            z-index: 0;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image: url('https://hi-ho.jp/course/chargeSpotPlus/assets/images/about-cp-map.png');
            background-size: cover;
            background-position: center top;
            background-repeat: no-repeat;
            opacity: 0.1;
            pointer-events: none;
            z-index: -1;
        }

        /* ============================================================
           SCROLLBAR
        ============================================================ */
        ::-webkit-scrollbar { width: 5px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(0,205,215,.3); border-radius: 10px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(0,205,215,.55); }

        /* ============================================================
           GLASS HEADER
        ============================================================ */
        .glass-header {
            background: rgba(255,255,255,0.88);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid rgba(203,213,225,.5);
            box-shadow: 0 1px 0 rgba(0,205,215,.08), 0 4px 20px rgba(15,23,42,.04);
        }

        .header-accent-line {
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--cs-teal), var(--cs-teal-deep), transparent);
            background-size: 200% 100%;
            animation: shimmerLine 3s ease-in-out infinite;
        }
        @keyframes shimmerLine {
            0%   { background-position: -100% 0; }
            100% { background-position: 300% 0; }
        }

        /* ============================================================
           PROGRESS STEPPER
        ============================================================ */
        .progress-card {
            background: var(--cs-surface);
            border-radius: var(--cs-r-card);
            border: 1px solid var(--cs-border);
            box-shadow: var(--shadow-card);
            overflow: hidden;
        }
        .progress-card-inner {
            padding: 1.75rem 2rem;
        }

        .step-circle {
            width: 52px; height: 52px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-family: 'Syne', sans-serif;
            font-weight: 700; font-size: 1.1rem;
            transition: all 0.5s var(--ease-out-expo);
            position: relative;
        }
        .step-circle.active {
            background: linear-gradient(135deg, var(--cs-teal), var(--cs-teal-deep));
            color: #fff;
            box-shadow: var(--shadow-teal);
        }
        .step-circle.active::after {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 50%;
            border: 2px solid rgba(0,205,215,.35);
            animation: ringPulse 2s ease-out infinite;
        }
        .step-circle.done {
            background: linear-gradient(135deg, var(--cs-success), #059669);
            color: #fff;
            box-shadow: 0 4px 14px rgba(16,185,129,.4);
        }
        .step-circle.idle {
            background: var(--cs-surface-2);
            color: var(--cs-text-4);
            border: 1.5px solid var(--cs-border);
        }

        .progress-connector {
            flex: 1;
            height: 2px;
            background: var(--cs-border);
            border-radius: 99px;
            overflow: hidden;
            margin: 25px 12px 0 12px; 
            position: relative;
        }

        #terms-modal {
            backdrop-filter: blur(8px);
            background: rgba(15,23,42,.55);
        }
        #terms-modal-content {
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 24px 64px rgba(15,23,42,.25);
            max-height: 90vh;
            display: flex;
            flex-direction: column;
        }
        .terms-scroll-area {
            overflow-y: auto;
            padding: 1.5rem;
            font-size: 0.9rem;
            line-height: 1.8;
            color: var(--cs-text-2);
        }
        
        .progress-connector-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--cs-success), var(--cs-teal));
            border-radius: 99px;
            transition: width 0.7s var(--ease-out-expo);
            width: 0%;
        }

        /* ============================================================
           FORM CARDS
        ============================================================ */
        .form-card {
            background: var(--cs-surface);
            border-radius: var(--cs-r-card);
            padding: 2rem;
            margin-bottom: 1.25rem;
            border: 1px solid var(--cs-border);
            box-shadow: var(--shadow-card);
            transition: border-color 0.35s var(--ease-out-expo),
                        box-shadow 0.35s var(--ease-out-expo),
                        transform 0.35s var(--ease-out-expo);
            position: relative;
            overflow: hidden;
        }
        .form-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--cs-teal), var(--cs-teal-deep));
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.4s var(--ease-out-expo);
        }
        .form-card:hover {
            border-color: var(--cs-teal-border);
            box-shadow: var(--shadow-card-hover);
        }
        .form-card:hover::before {
            transform: scaleX(1);
        }

        .card-accent { width: 4px; height: 24px; border-radius: 99px; flex-shrink: 0; }

        /* ============================================================
           SECTION HEADINGS
        ============================================================ */
        .section-title {
            font-family: 'Syne', sans-serif;
            font-size: 1rem;
            font-weight: 700;
            color: var(--cs-text-1);
            display: flex;
            align-items: center;
            gap: 10px;
            letter-spacing: -0.01em;
        }
        .section-title i {
            font-size: 0.9rem;
            color: var(--cs-text-3);
        }
        .section-icon-wrap {
            width: 32px; height: 32px;
            border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.85rem;
            flex-shrink: 0;
        }

        /* ============================================================
           FORM INPUTS
        ============================================================ */
        .form-group { margin-bottom: 1.1rem; }

        .form-group label {
            display: block;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--cs-text-2);
            margin-bottom: 0.45rem;
            letter-spacing: 0.01em;
            transition: color 0.2s;
        }

        .form-input {
            width: 100%;
            border: 1.5px solid var(--cs-border);
            border-radius: var(--cs-r-input);
            padding: 0.78rem 1rem;
            font-size: 0.925rem;
            font-family: 'Prompt', sans-serif;
            font-weight: 500;
            color: var(--cs-text-1);
            background: var(--cs-surface);
            transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
            outline: none;
            -webkit-appearance: none;
            appearance: none;
        }
        .form-input::placeholder {
            color: var(--cs-text-4);
            font-weight: 400;
        }
        .form-input:focus {
            border-color: var(--cs-teal);
            box-shadow: 0 0 0 3px rgba(0,205,215,.12), 0 1px 3px rgba(15,23,42,.06);
            background: var(--cs-surface);
        }
        .form-input:focus + .input-icon,
        .form-group:focus-within label { color: var(--cs-teal); }

        .form-input:disabled,
        .form-input[readonly] {
            background: var(--cs-surface-2);
            color: var(--cs-text-4);
            border-color: rgba(203,213,225,.5);
            cursor: not-allowed;
        }

        select.form-input {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2300cdd7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
            background-position: right 1rem center;
            background-repeat: no-repeat;
            background-size: 1.2em;
            padding-right: 2.5rem;
            cursor: pointer;
        }

        .input-icon-wrap { position: relative; }
        .input-prefix-icon {
            position: absolute;
            left: 1rem; top: 50%;
            transform: translateY(-50%);
            color: var(--cs-text-4);
            font-size: 0.85rem;
            pointer-events: none;
            transition: color 0.2s;
        }
        .input-icon-wrap:focus-within .input-prefix-icon { color: var(--cs-teal); }
        .input-icon-wrap .form-input { padding-left: 2.5rem; }

        textarea.form-input { resize: none; line-height: 1.6; }

        /* ============================================================
           BUTTONS
        ============================================================ */
        .btn-primary {
            display: inline-flex; align-items: center; justify-content: center;
            gap: 8px;
            background: linear-gradient(135deg, var(--cs-teal) 0%, var(--cs-teal-deep) 100%);
            color: #fff;
            font-family: 'Syne', sans-serif;
            font-weight: 700;
            font-size: 0.92rem;
            letter-spacing: 0.01em;
            padding: 0.85rem 2.25rem;
            border-radius: var(--cs-r-btn);
            border: none;
            cursor: pointer;
            box-shadow: var(--shadow-teal);
            transition: transform 0.3s var(--ease-spring),
                        box-shadow 0.3s var(--ease-out-expo),
                        opacity 0.2s;
            position: relative;
            overflow: hidden;
        }
        .btn-primary::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255,255,255,.25), transparent);
            opacity: 0;
            transition: opacity 0.3s;
        }
        .btn-primary:hover:not(:disabled)::after { opacity: 1; }
        .btn-primary:hover:not(:disabled) {
            transform: translateY(-2px) scale(1.01);
            box-shadow: var(--shadow-teal-lg);
        }
        .btn-primary:active:not(:disabled) {
            transform: translateY(0) scale(0.98);
            box-shadow: var(--shadow-teal);
        }
        .btn-primary:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

        .btn-secondary {
            display: inline-flex; align-items: center; justify-content: center;
            gap: 8px;
            background: var(--cs-surface);
            color: var(--cs-text-2);
            font-family: 'Syne', sans-serif;
            font-weight: 700;
            font-size: 0.92rem;
            padding: 0.85rem 2.25rem;
            border-radius: var(--cs-r-btn);
            border: 1.5px solid var(--cs-border);
            cursor: pointer;
            transition: all 0.25s var(--ease-out-expo);
        }
        .btn-secondary:hover {
            border-color: var(--cs-teal-border);
            color: var(--cs-teal-deep);
            background: var(--cs-teal-soft);
            transform: translateY(-1px);
        }

        .btn-add {
            display: inline-flex; align-items: center; gap: 6px;
            background: rgba(16,185,129,.08);
            color: var(--cs-success);
            border: 1.5px solid rgba(16,185,129,.25);
            border-radius: 99px;
            padding: 0.45rem 1rem;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.25s var(--ease-out-expo);
        }
        .btn-add:hover {
            background: rgba(16,185,129,.15);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(16,185,129,.2);
        }

        .btn-map {
            display: inline-flex; align-items: center; gap: 8px;
            background: rgba(59,130,246,.06);
            color: #3b82f6;
            border: 1.5px solid rgba(59,130,246,.2);
            padding: 0.78rem 1.25rem;
            border-radius: var(--cs-r-input);
            font-weight: 700;
            font-size: 0.875rem;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.25s var(--ease-out-expo);
            flex-shrink: 0;
        }
        .btn-map:hover {
            background: rgba(59,130,246,.12);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59,130,246,.2);
        }

        .btn-icon-pill {
            display: inline-flex; align-items: center; gap: 6px;
            background: var(--cs-teal-soft);
            color: var(--cs-teal-deep);
            border: 1.5px solid var(--cs-teal-border);
            border-radius: 99px;
            padding: 0.45rem 1rem;
            font-size: 0.78rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.25s var(--ease-out-expo);
        }
        .btn-icon-pill:hover {
            background: rgba(0,205,215,.15);
            transform: translateY(-1px);
        }

        /* ============================================================
           OPERATING HOURS TOGGLE
        ============================================================ */
        .toggle-track {
            width: 44px; height: 24px;
            border-radius: 99px;
            background: #f1f5f9;
            border: 1.5px solid #e2e8f0;
            position: relative;
            cursor: pointer;
            transition: background 0.3s var(--ease-out-expo),
                        border-color 0.3s;
            flex-shrink: 0;
        }
        .toggle-track.is-on {
            background: linear-gradient(135deg, var(--cs-success), #059669);
            border-color: transparent;
            box-shadow: 0 2px 8px rgba(16,185,129,.35);
        }
        .toggle-track.is-off {
            background: linear-gradient(135deg, #fca5a5, #ef4444);
            border-color: transparent;
        }
        .toggle-thumb {
            position: absolute;
            top: 2px; left: 2px;
            width: 18px; height: 18px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 1px 4px rgba(0,0,0,.2);
            transition: transform 0.3s var(--ease-spring);
        }
        .toggle-track.is-on .toggle-thumb { transform: translateX(20px); }

        .hours-row {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.9rem 0;
            border-bottom: 1px solid rgba(203,213,225,.4);
            transition: opacity 0.3s;
        }
        .hours-row:last-child { border-bottom: none; }

        /* ============================================================
           CONTACT CARD
        ============================================================ */
        .contact-item {
            background: var(--cs-surface-2);
            border: 1px solid var(--cs-border);
            border-radius: 14px;
            padding: 1.25rem;
            position: relative;
            transition: border-color 0.25s, box-shadow 0.25s;
        }
        .contact-item:hover {
            border-color: var(--cs-teal-border);
            box-shadow: 0 4px 16px rgba(0,205,215,.07);
        }

        /* ============================================================
           UPLOAD ZONE
        ============================================================ */
        .upload-zone {
            border: 2px dashed var(--cs-border);
            border-radius: 16px;
            min-height: 180px;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            cursor: pointer;
            background: var(--cs-surface);
            transition: border-color 0.3s var(--ease-out-expo),
                        background 0.3s,
                        transform 0.25s var(--ease-spring);
            position: relative;
            overflow: hidden;
        }
        .upload-zone:hover {
            border-color: var(--cs-teal);
            background: var(--cs-teal-soft);
            transform: translateY(-2px);
        }
        .upload-zone.has-file {
            border-style: solid;
            border-color: var(--cs-teal-border);
        }
        .upload-zone-icon {
            font-size: 2rem;
            color: var(--cs-text-4);
            margin-bottom: 0.75rem;
            transition: color 0.25s, transform 0.25s var(--ease-spring);
        }
        .upload-zone:hover .upload-zone-icon {
            color: var(--cs-teal);
            transform: scale(1.1) translateY(-2px);
        }

        /* ============================================================
           SIGNATURE PAD
        ============================================================ */
        .signature-wrapper {
            touch-action: none;
            transition: all 0.35s var(--ease-out-expo);
            border-radius: 14px;
            overflow: hidden;
            position: relative;
        }
        .signature-wrapper canvas {
            display: block;
            touch-action: none; 
        }

        .sig-canvas-border {
            border: 2px solid var(--cs-border);
            border-radius: 14px;
            height: 220px;
            background: #fafcff;
            position: relative;
            overflow: hidden;
            transition: border-color 0.25s;
        }
        .sig-canvas-border:focus-within,
        .sig-canvas-border.has-sig {
            border-color: var(--cs-teal-border);
            background: var(--cs-surface);
        }
        .sig-canvas-border::after {
            content: '';
            position: absolute;
            bottom: 20%; left: 8%; right: 8%;
            height: 1px;
            background: rgba(0,205,215,.2);
            pointer-events: none;
        }

        .signature-fullscreen {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            height: 100dvh !important; 
            z-index: 999999 !important;
            border-radius: 0 !important;
            background-color: rgba(15, 23, 42, 0.95) !important; 
            display: flex !important;
            flex-direction: column !important;
            padding: 20px !important;
            box-sizing: border-box !important;
            border: none !important;
        }

        .signature-fullscreen canvas {
            flex: 1 !important;
            width: 100% !important;
            height: calc(100% - 70px) !important;
            background-color: #ffffff !important;
            border: 2px dashed rgba(0, 205, 215, 0.5) !important;
            border-radius: 16px !important;
            margin-bottom: 20px !important;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
        }

        .signature-fullscreen .absolute.bottom-3.right-3 {
            position: relative !important;
            bottom: auto !important;
            right: auto !important;
            display: flex !important;
            justify-content: center !important;
            gap: 15px !important;
            width: 100% !important;
        }
        
        .signature-fullscreen #btn-close-fullscreen {
            display: flex !important;
            padding: 0.75rem 2.5rem !important;
            font-size: 1rem !important;
        }

        .signature-fullscreen::after {
            display: none !important;
        }
        
        @media (orientation: portrait) {
            .signature-fullscreen canvas {
                pointer-events: none; 
                opacity: 0.2 !important;
            }
            .signature-fullscreen::before {
                content: "📱 กรุณาหมุนโทรศัพท์เป็นแนวนอน \A เพื่อเซ็นชื่อ";
                white-space: pre-wrap;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                background: var(--cs-error);
                color: white;
                padding: 1.5rem 2rem;
                border-radius: 12px;
                text-align: center;
                font-family: 'Prompt', sans-serif;
                font-weight: 700;
                font-size: 1.1rem;
                z-index: 100;
                pointer-events: none;
                line-height: 1.5;
                box-shadow: 0 10px 25px rgba(239,68,68,0.4);
                border: 2px solid rgba(255,255,255,0.2);
            }
        }

        /* ============================================================
           TERMS SCROLL BOX
        ============================================================ */
        .terms-box {
            border: 1.5px solid var(--cs-border);
            border-radius: 14px;
            padding: 1.25rem 1.5rem;
            max-height: 200px;
            overflow-y: auto;
            background: var(--cs-surface-2);
            font-size: 0.875rem;
            color: var(--cs-text-2);
            line-height: 1.75;
        }
        .terms-box li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 0.6rem; }
        .terms-check { color: var(--cs-success); font-size: 0.8rem; margin-top: 3px; flex-shrink: 0; }

        .accept-row {
            background: var(--cs-teal-soft);
            border: 1.5px solid var(--cs-teal-border);
            border-radius: 12px;
            padding: 1rem 1.25rem;
            display: flex; align-items: center; gap: 12px;
            cursor: pointer;
            transition: background 0.25s, border-color 0.25s;
        }
        .accept-row:hover { background: rgba(0,205,215,.12); }

        /* ============================================================
           LOADER — cinematic
        ============================================================ */
        #loader {
            background: rgba(255,255,255,.97);
            backdrop-filter: blur(24px);
        }
        @keyframes logoBreath {
            0%,100% { transform: scale(0.95); filter: drop-shadow(0 0 20px rgba(0,205,215,.2)); }
            50%      { transform: scale(1.05); filter: drop-shadow(0 0 50px rgba(0,205,215,.7)); }
        }
        .animate-logo-breath { animation: logoBreath 1.8s ease-in-out infinite; }

        @keyframes ringPulse {
            0%   { transform: scale(0.6); opacity: 0.7; }
            100% { transform: scale(1.6); opacity: 0; }
        }
        .animate-ring-pulse { animation: ringPulse 1.8s var(--ease-out-expo) infinite; }

        /* ============================================================
           TOAST SYSTEM
        ============================================================ */
        .toast-container {
            position: fixed;
            bottom: 2rem; left: 50%; transform: translateX(-50%);
            z-index: 9999;
            display: flex; flex-direction: column; align-items: center;
            gap: 8px; pointer-events: none;
        }
        .toast-pill {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 0.65rem 1.25rem;
            border-radius: 999px;
            font-size: 0.82rem; font-weight: 700;
            box-shadow: 0 8px 32px rgba(15,23,42,.15);
            backdrop-filter: blur(12px);
            animation: toastIn 0.4s var(--ease-spring) forwards;
            pointer-events: auto;
            white-space: nowrap;
        }
        .toast-pill.success { background: rgba(16,185,129,.92); color: #fff; }
        .toast-pill.error   { background: rgba(239,68,68,.92);  color: #fff; }
        .toast-pill.info    { background: rgba(0,205,215,.92);  color: #fff; }
        @keyframes toastIn {
            from { opacity: 0; transform: translateY(20px) scale(0.9); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }
        @keyframes toastOut {
            to { opacity: 0; transform: translateY(10px) scale(0.9); }
        }

        .custom-action-toast {
            font-size: 0.72rem; font-weight: 700;
            display: flex; align-items: center; gap: 5px;
            margin-top: 0.35rem;
            animation: fadeInUp 0.3s var(--ease-out-expo) forwards;
        }
        .custom-action-toast.text-green-600 { color: var(--cs-success); }
        .custom-action-toast.text-red-500   { color: var(--cs-error); }

        /* ============================================================
           MAP MODAL
        ============================================================ */
        #map-modal {
            backdrop-filter: blur(8px);
            background: rgba(15,23,42,.55);
        }
        #map-modal-content {
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 24px 64px rgba(15,23,42,.25);
        }

        /* ============================================================
           SUCCESS SCREEN
        ============================================================ */
        .success-ring {
            position: absolute; inset: 0; border-radius: 50%;
            background: rgba(16,185,129,.15);
            animation: successPulse 2s ease-out infinite;
        }
        @keyframes successPulse {
            0%   { transform: scale(0.8); opacity: 1; }
            100% { transform: scale(1.8); opacity: 0; }
        }
        .success-checkmark {
            stroke-dasharray: 166;
            stroke-dashoffset: 166;
            animation: checkDraw 0.6s 0.3s var(--ease-out-expo) forwards;
        }
        @keyframes checkDraw {
            to { stroke-dashoffset: 0; }
        }
        .merchant-id-badge {
            background: linear-gradient(135deg, var(--cs-teal-soft), rgba(0,154,165,.1));
            border: 1.5px solid var(--cs-teal-border);
            border-radius: 12px;
            padding: 0.5rem 1rem;
            font-family: 'Syne', monospace;
            font-weight: 800;
            color: var(--cs-teal-deep);
            letter-spacing: 0.05em;
        }

        /* ============================================================
           PDF PREVIEW
        ============================================================ */
        .pdf-preview-wrap {
            border: 1.5px solid var(--cs-border);
            border-radius: 16px;
            overflow-y: auto;
            height: 480px;
            background: var(--cs-surface-2);
            padding: 1rem;
        }

        /* ============================================================
           ANIMATIONS
        ============================================================ */
        .animate-fade-in {
            animation: fadeInUp 0.55s var(--ease-out-expo) forwards;
            opacity: 0;
        }
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(18px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        .delay-1 { animation-delay: 0.08s; }
        .delay-2 { animation-delay: 0.16s; }
        .delay-3 { animation-delay: 0.24s; }
        .delay-4 { animation-delay: 0.32s; }
        .delay-5 { animation-delay: 0.40s; }
        .delay-6 { animation-delay: 0.48s; }

        .slide-in-right {
            animation: slideInRight 0.45s var(--ease-out-expo) forwards;
            opacity: 0;
        }
        @keyframes slideInRight {
            from { opacity: 0; transform: translateX(40px); }
            to   { opacity: 1; transform: translateX(0); }
        }

        /* ============================================================
           VALIDATION ERROR STATES
        ============================================================ */
        .form-input.border-red-500 {
            border-color: var(--cs-error) !important;
            box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important;
            background: rgba(239,68,68,.03) !important;
        }
        .custom-inline-error {
            font-size: 0.72rem; font-weight: 700;
            color: var(--cs-error);
            display: flex; align-items: center; gap: 4px;
            margin-top: 0.35rem;
            animation: fadeInUp 0.3s var(--ease-out-expo) forwards;
        }

        /* ============================================================
           ZIP CODE BADGE & OTHERS
        ============================================================ */
        input#m-zip.form-input {
            text-align: center;
            color: var(--cs-teal-deep);
            font-family: 'Syne', monospace;
            font-weight: 700;
            letter-spacing: 0.1em;
        }

        .addr-auto-box {
            background: linear-gradient(135deg, rgba(0,205,215,.04), rgba(0,154,165,.03));
            border: 1.5px solid var(--cs-teal-border);
            border-radius: 12px;
            padding: 0.75rem 1rem;
            font-size: 0.82rem;
            color: var(--cs-text-2);
            font-weight: 500;
            min-height: 60px;
            resize: none;
        }

        .logo-upload-wrapper {
            width: 80px; height: 80px;
            border-radius: 16px;
            border: 2px dashed var(--cs-border);
            overflow: hidden;
            cursor: pointer;
            flex-shrink: 0;
            background: var(--cs-surface-2);
            transition: border-color 0.25s, transform 0.25s var(--ease-spring);
        }
        .logo-upload-wrapper:hover {
            border-color: var(--cs-teal);
            transform: scale(1.04);
        }

        @media (max-width: 640px) {
            .form-card { padding: 1.25rem; }
            .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
            .section-title { font-size: 0.9rem; }
            .hours-row { flex-wrap: wrap; gap: 0.6rem; }
        }

        .badge-24h {
            background: linear-gradient(135deg, rgba(251,191,36,.15), rgba(245,158,11,.1));
            border: 1.5px solid rgba(251,191,36,.4);
            color: #92400e;
            border-radius: 99px;
            padding: 0.35rem 0.9rem;
            font-size: 0.72rem; font-weight: 700;
            display: inline-flex; align-items: center; gap: 5px;
        }

        #m-translating-status {
            align-items: center; gap: 6px;
            background: var(--cs-teal-soft);
            border: 1px solid var(--cs-teal-border);
            color: var(--cs-teal-deep);
            border-radius: 99px;
            padding: 0.25rem 0.75rem;
            font-size: 0.72rem;
            font-weight: 700;
        }
        
        #m-translating-status:not(.hidden) {
            display: inline-flex;
        }
        #m-translating-status.hidden {
            display: none !important;
        }

        .pdf-action-card {
            background: linear-gradient(135deg, var(--cs-surface), rgba(0,205,215,.03));
            border: 1.5px solid var(--cs-border);
            border-radius: 20px;
            padding: 2.5rem 2rem;
            text-align: center;
        }

        .flatpickr-calendar {
            border-radius: 16px !important;
            box-shadow: 0 8px 32px rgba(15,23,42,.12) !important;
            border: 1px solid var(--cs-border) !important;
        }
        .flatpickr-time input { font-family: 'Syne', monospace !important; }
