:root {
            --primary-color: rgba(243, 65, 75, 255);
            --secondary-color: #2c3e50;
            --accent-color: #3498db;
            --light-color: #ecf0f1;
            --dark-color: #2c3e50;
            --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 40px 20px;
            color: var(--dark-color);
        }

        .container {
            width: 100%;
            max-width: 800px;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        header {
            display: flex;
            padding: 20px;
            background: white;
            border-bottom: 2px solid var(--primary-color);
        }

        .logo {
            flex: 1;
            display: flex;
            align-items: center;
        }

        .header-text {
            flex: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-color);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .form-container {
            padding: 30px;
        }

        h1 {
            color: var(--secondary-color);
            margin-bottom: 25px;
            text-align: center;
            font-size: 28px;
            position: relative;
            padding-bottom: 15px;
        }

        h1:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: var(--primary-color);
            border-radius: 2px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--secondary-color);
        }

        input, textarea, select {
            width: 100%;
            padding: 14px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        input:focus, textarea:focus, select:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }

        .row {
            display: flex;
            gap: 20px;
        }

        .row .form-group {
            flex: 1;
        }

        .signature-container {
            margin: 30px 0;
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 15px;
        }

        .signature-title {
            margin-bottom: 15px;
            font-weight: 600;
            color: var(--secondary-color);
        }

        .signature-box {
            border: 1px dashed #ccc;
            border-radius: 6px;
            background: #f9f9f9;
            height: 150px;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #777;
            font-style: italic;
        }

        .file-upload {
            background: #f9f9f9;
            border: 2px dashed #ddd;
            border-radius: 6px;
            padding: 20px;
            text-align: center;
            margin: 20px 0;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .file-upload:hover {
            border-color: var(--accent-color);
            background: #f0f8ff;
        }

        .file-upload i {
            font-size: 40px;
            color: var(--accent-color);
            margin-bottom: 10px;
        }

        .file-upload p {
            margin: 5px 0;
            color: #666;
        }

        .file-input {
            display: none;
        }

        .file-name {
            margin-top: 10px;
            font-size: 14px;
            color: var(--primary-color);
            font-weight: 600;
        }

        .file-size-warning {
            color: #e74c3c;
            font-size: 12px;
            margin-top: 5px;
            display: none;
        }

        button {
            padding: 14px 28px;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-primary {
            background: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background: #e03545;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .btn-secondary {
            background: var(--accent-color);
            color: white;
        }

        .btn-secondary:hover {
            background: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .btn-clear {
            background: #95a5a6;
            color: white;
        }

        .btn-clear:hover {
            background: #7f8c8d;
        }

        .footer-box {
            background: var(--primary-color);
            padding: 20px;
            color: white;
            text-align: center;
            font-weight: 600;
            margin: 20px 0;
            border-radius: 6px;
        }

        .declaration {
            background: #f9f9f9;
            padding: 20px;
            border-radius: 6px;
            margin: 20px 0;
            line-height: 1.6;
        }

        .action-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
        }

        .share-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 25px;
        }

        .whatsapp {
            background: #25D366;
        }

        .email {
            background: #EA4335;
        }

        .success-message {
            background: #2ecc71;
            color: white;
            padding: 15px;
            border-radius: 6px;
            margin: 20px 0;
            text-align: center;
            display: none;
        }

        .header {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        .seblogo {
            max-width: 200px;
            height: auto;
        }

        .header-text {
            font-size: 24px;
            font-weight: bold;
            color: #000;
            flex: 1;
        }

        @media (max-width: 768px) {
            .row {
                flex-direction: column;
                gap: 0;
            }

            .action-buttons {
                flex-direction: column;
            }

            .header-text {
                flex-basis: 100%;
                text-align: center;
                margin-top: 10px;
            }
        }

        .loading {
            display: none;
            text-align: center;
            margin: 20px 0;
        }

        .spinner {
            border: 4px solid rgba(0, 0, 0, 0.1);
            border-radius: 50%;
            border-top: 4px solid var(--primary-color);
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        #nid:invalid {
            border: 2px solid red;
        }
        #nid:valid {
            border: 2px solid green;
        }

        .link-box {
            margin-top: 15px;
            padding: 15px;
            background: #f0f8ff;
            border-radius: 6px;
            text-align: center;
            display: none;
        }

        .link-box a {
            color: var(--accent-color);
            font-weight: bold;
            word-break: break-all;
            display: block;
            margin: 10px 0;
        }

        /* Processing Animation Styles */
        .processing-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .processing-container {
            background: white;
            border-radius: 12px;
            padding: 30px;
            text-align: center;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .processing-title {
            font-size: 24px;
            color: var(--primary-color);
            margin-bottom: 20px;
            font-weight: 600;
        }

        .processing-text {
            margin-bottom: 25px;
            color: var(--secondary-color);
            line-height: 1.5;
        }

        .processing-steps {
            text-align: left;
            margin: 20px 0;
            padding: 15px;
            background: #f9f9f9;
            border-radius: 8px;
        }

        .processing-step {
            margin: 10px 0;
            display: flex;
            align-items: center;
            font-size: 14px;
        }

        .step-icon {
            margin-right: 10px;
            color: var(--primary-color);
        }

        .step-text {
            flex: 1;
        }

        .step-completed {
            color: #2ecc71;
        }

        .step-active {
            color: var(--primary-color);
            font-weight: 600;
        }

        .step-pending {
            color: #95a5a6;
        }

        .processing-spinner {
            margin: 20px auto;
        }