@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

        :root {
            --bg-primary: #ffffff;
            --text-primary: #09090b;
            --text-secondary: #71717a;
            --border-color: #e4e4e7;
            --input-bg: #f4f4f5;
            --accent: #000000;
            --radius-lg: 24px;
            --radius-md: 12px;
            --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Plus Jakarta Sans', sans-serif;
            -webkit-user-select: none;
            user-select: none;
        }

        input, textarea {
            -webkit-user-select: text;
            user-select: text;
        }

        html, body {
            width: 100%;
            min-height: 100%;
            background-color: var(--bg-primary);
            color: var(--text-primary);
        }

        body {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: calc(max(16px, env(safe-area-inset-top, 16px)) + 58px) 16px 40px;
        }

        #back-btn {
            position: fixed; z-index: 10;
            top: max(16px, env(safe-area-inset-top, 16px));
            left: 16px;
            width: 42px; height: 42px; border-radius: 50%;
            background: var(--input-bg); border: none; cursor: pointer;
            color: var(--text-primary); display: flex; align-items: center; justify-content: center;
            box-shadow: 0 4px 14px rgba(0,0,0,0.10);
            transition: background 0.12s;
        }
        #back-btn:hover { background: var(--border-color); }

        /* Container Tanpa Border + Soft Black Glow */
        .container {
            width: 100%;
            max-width: 400px;
            background: var(--bg-primary);
            border: none;
            border-radius: var(--radius-lg);
            padding: 36px 24px;
            box-shadow: 
                0 10px 30px rgba(0, 0, 0, 0.04),
                0 30px 60px rgba(0, 0, 0, 0.08);
            z-index: 1;
            position: relative;
        }

        .header {
            margin-bottom: 24px;
            text-align: center;
        }

        .header h1 {
            font-size: 22px;
            font-weight: 700;
            letter-spacing: -0.5px;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .header p {
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .form-group {
            margin-bottom: 14px;
        }

        .form-group label {
            display: block;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            color: var(--text-secondary);
            margin-bottom: 6px;
        }

        .form-control {
            width: 100%;
            background: var(--input-bg);
            border: 1px solid transparent;
            border-radius: var(--radius-md);
            padding: 12px 14px;
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 500;
            transition: var(--transition);
            outline: none;
        }

        .form-control:focus {
            background: var(--bg-primary);
            border-color: var(--accent);
            box-shadow: 0 0 0 1px var(--accent);
        }

        .form-control:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: var(--input-bg);
        }

        textarea.form-control {
            resize: none;
            min-height: 90px;
        }

        .btn-submit {
            width: 100%;
            background: var(--accent);
            color: var(--bg-primary);
            border: none;
            border-radius: var(--radius-md);
            padding: 14px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 6px;
        }

        .btn-submit:hover:not(:disabled) {
            background: #27272a;
        }

        .btn-submit:disabled {
            background: var(--border-color);
            color: #a1a1aa;
            cursor: not-allowed;
        }

        /* Full Screen Overlay */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
        }

        .overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        .overlay-content {
            text-align: center;
            width: 90%;
            max-width: 320px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        /* Loading Spinner */
        .loader {
            width: 40px;
            height: 40px;
            border: 3px solid #e4e4e7;
            border-bottom-color: var(--accent);
            border-radius: 50%;
            display: inline-block;
            animation: rotation 1s linear infinite;
            margin-bottom: 16px;
        }

        .loading-text {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        /* Animasi Centang Premium */
        .success-state {
            display: none;
            animation: fadeIn 0.4s ease forwards;
            width: 100%;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }

        .checkmark-svg {
            width: 64px;
            height: 64px;
            display: block;
            margin: 0 auto 20px;
        }

        .checkmark-circle {
            stroke-dasharray: 166;
            stroke-dashoffset: 166;
            stroke-width: 2;
            stroke: var(--accent);
            fill: none;
            animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
        }

        .checkmark-check {
            transform-origin: 50% 50%;
            stroke-dasharray: 48;
            stroke-dashoffset: 48;
            stroke: var(--accent);
            stroke-width: 3;
            animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
        }

        @keyframes stroke {
            100% { stroke-dashoffset: 0; }
        }

        .success-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .success-desc {
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 24px;
        }

        .btn-done {
            background: var(--accent);
            color: var(--bg-primary);
            border: none;
            padding: 12px 30px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-done:hover {
            background: #27272a;
        }

        /* UI Pop-up Detail Kecil di Tengah (Summary Card) */
        .summary-card {
            background: var(--bg-primary);
            width: 100%;
            padding: 24px;
            border-radius: var(--radius-lg);
            text-align: left;
            box-shadow: 
                0 10px 30px rgba(0, 0, 0, 0.04),
                0 20px 40px rgba(0, 0, 0, 0.08);
            animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .summary-card h2 {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 18px;
            text-align: center;
            letter-spacing: -0.3px;
        }

        .summary-item {
            margin-bottom: 12px;
        }

        .summary-label {
            display: block;
            font-size: 9px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-secondary);
            margin-bottom: 3px;
        }

        .summary-value {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-primary);
            word-break: break-all;
        }

        .summary-message-box {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-primary);
            background: var(--input-bg);
            padding: 10px 12px;
            border-radius: var(--radius-md);
            max-height: 100px;
            overflow-y: auto;
            white-space: pre-wrap;
            word-break: break-word;
            touch-action: pan-y; /* Izinin scroll dalam box pesan */
        }

        .btn-close-summary {
            width: 100%;
            background: var(--accent);
            color: var(--bg-primary);
            border: none;
            border-radius: var(--radius-md);
            padding: 12px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            margin-top: 14px;
        }

        .btn-close-summary:hover {
            background: #27272a;
        }

        /* Banner Limit Form di BG */
        .limit-info {
            background: var(--input-bg);
            border: none;
            color: var(--text-secondary);
            padding: 10px;
            border-radius: 10px;
            font-size: 11px;
            text-align: center;
            margin-bottom: 14px;
            font-weight: 500;
            display: none;
        }

        @keyframes rotation {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Layar HP Pendek */
        @media (max-height: 600px) {
            .container {
                padding: 20px 20px;
            }
            .header {
                margin-bottom: 14px;
            }
            .header h1 {
                font-size: 18px;
            }
            .form-group {
                margin-bottom: 10px;
            }
            textarea.form-control {
                min-height: 70px;
            }
        }
