        @import url('https://fonts.googleapis.com/css2?family=Kantumruy+Pro:ital,wght@0,100..700;1,100..700&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Kantumruy Pro", sans-serif;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #3c84d7 0%, #2b52c8 100%);
            min-height: 100vh;
            padding: 10px;
            line-height: 1.6;
        }

        .container {
            max-width: 100%;
            margin: 0 auto;
            padding: 0;
        }

        .form-wrapper {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            margin-bottom: 20px;
        }

        .form-header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px 0;
            background: linear-gradient(135deg, #3c84d7 0%, #2b52c8 100%);
            border-radius: 15px;
            color: white;
            margin: -20px -20px 30px -20px;
        }

        .form-header h1 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 5px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .form-header p {
            font-size: 16px;
            opacity: 0.9;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }

        .label-text {
            display: block;
            margin-bottom: 2px;
        }

        .required {
            color: #e74c3c;
            font-weight: bold;
        }

        .form-input,
        .form-select {
            width: 100%;
            padding: 15px 16px;
            border: 2px solid #e0e6ed;
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: #fff;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }

        .form-input:focus,
        .form-select:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            transform: translateY(-1px);
        }

        .form-input.error,
        .form-select.error {
            border-color: #e74c3c;
            background-color: #fdf2f2;
        }

        .form-input.success,
        .form-select.success {
            border-color: #27ae60;
            background-color: #f8fff8;
            color: #000000;
        }

        .form-select {
            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='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
            background-position: right 12px center;
            background-repeat: no-repeat;
            background-size: 16px;
            padding-right: 40px;
        }

        .error-message {
            display: block;
            color: #e74c3c;
            font-size: 12px;
            margin-top: 5px;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            line-height: 1.4;
        }

        .error-message.show {
            opacity: 1;
            transform: translateY(0);
        }

        .form-actions {
            display: flex;
            gap: 12px;
            margin-top: 30px;
        }

        .btn {
            flex: 1;
            padding: 16px 20px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            text-transform: none;
        }

        .btn-primary {
            background: linear-gradient(135deg, #3c84d7 0%, #2b52c8 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        .btn-secondary {
            background: #f8f9fa;
            color: #6c757d;
            border: 2px solid #e9ecef;
        }

        .btn-secondary:hover {
            background: #e9ecef;
            transform: translateY(-1px);
        }

        .btn.loading {
            pointer-events: none;
        }

        .btn-loader {
            display: none;
            width: 20px;
            height: 20px;
            border: 2px solid #ffffff;
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-left: 8px;
        }

        .btn.loading .btn-loader {
            display: inline-block;
        }

        .btn.loading .btn-text {
            opacity: 0.7;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            10%,
            30%,
            50%,
            70%,
            90% {
                transform: translateX(-8px);
            }

            20%,
            40%,
            60%,
            80% {
                transform: translateX(8px);
            }
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 50%;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
        }

        .modal-content {
            background-color: #fff;
            margin: 50% auto;
            padding: 0;
            border-radius: 20px;
            width: 90%;
            max-width: 400px;
            transform: translateY(-50%);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-50%) scale(0.9);
            }

            to {
                opacity: 1;
                transform: translateY(-50%) scale(1);
            }
        }

        .modal-header {
            padding: 25px 20px 15px;
            text-align: center;
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            color: white;
            border-radius: 20px 20px 0 0;
        }

        .modal-header h2 {
            font-size: 24px;
            margin: 0;
        }

        .modal-body {
            padding: 20px;
            text-align: center;
        }

        .modal-body p {
            margin-bottom: 10px;
            font-size: 16px;
            color: #333;
        }

        .modal-actions {
            padding: 0 20px 25px;
            text-align: center;
        }

        .modal-actions .btn {
            margin: 0;
            min-width: 120px;
        }

        /* Touch-friendly improvements */
        @media (max-width: 480px) {
            body {
                padding: 5px;
            }


            .form-wrapper {
                padding: 15px;
                border-radius: 15px;
            }

            .form-header {
                margin: -15px -15px 25px -15px;
                padding: 15px 0;
                border-radius: 15px 15px 0 0;
            }

            .form-header h1 {
                font-size: 24px;
            }

            .form-input,
            .form-select {
                padding: 18px 16px;
                font-size: 16px;
                /* Prevents zoom on iOS */
            }

            .btn {
                padding: 18px 20px;
                font-size: 16px;
            }

            .form-actions {
                flex-direction: column;
            }

            .modal-content {
                width: 95%;
                margin: 40% auto;
            }
        }

        /* Landscape mobile */
        @media (max-height: 600px) and (orientation: landscape) {
            .form-header {
                padding: 10px 0;
            }

            .form-header h1 {
                font-size: 20px;
            }

            .form-group {
                margin-bottom: 15px;
            }

            .modal-content {
                margin: 20% auto;
            }
        }

        /* Dark mode support */
        @media (prefers-color-scheme: dark) {
            body {
                background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            }

            .form-wrapper {
                background: rgba(44, 62, 80, 0.95);
                color: #ecf0f1;
            }

            .form-input,
            .form-select {
                background: #34495e;
                border-color: #4a6578;
                color: #ecf0f1;
            }

            .form-input::placeholder {
                color: #bdc3c7;
            }

            .form-label {
                color: #ecf0f1;
            }
        }

        /* Accessibility improvements */
        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* High contrast support */
        @media (prefers-contrast: high) {

            .form-input,
            .form-select {
                border-width: 3px;
            }

            .btn {
                border: 2px solid currentColor;
            }
        }

        /* Location restriction overlay */
        .location-restriction {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            text-align: center;
            padding: 20px;
        }

        .location-restriction-content {
            max-width: 400px;
        }

        .location-restriction h2 {
            font-size: 24px;
            margin-bottom: 20px;
        }

        .location-restriction p {
            font-size: 16px;
            opacity: 0.9;
        }