        /* Basic Reset & Body Styling */
        body {
            margin: 0;
            padding: 0;
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, #a8c0ff, #3f2b96);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh; /* Ensure body takes full viewport height */
            color: #333;
            overflow: hidden; /* Hide any potential body scrollbar */
        }

        /* Container for the form */
        .registration-container {
            background-color: #fff;
            padding: 25px; /* Reduced padding from 40px */
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            width: 100%;
            max-width: 500px;

            box-sizing: border-box;
            animation: fadeIn 1s ease-out;
            display: flex;
            flex-direction: column;
            /* Removed max-height and overflow-y: auto to ensure no scrollbar if content fits */
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        h2 {
            text-align: center;
            color: #3f2b96;
            margin-top: 0; /* Reduced margin-bottom from 30px */
            font-weight: 700;
            font-size: 1.8rem; /* Slightly reduced font size for title */
        }

        /* Form Grid Layout */
        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px; /* Reduced gap from 20px */
            flex-grow: 1;
        }

        .form-group {
            margin-bottom: 10px; /* Reduced margin-bottom from 15px */
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px; /* Reduced margin-bottom from 8px */
            font-weight: 500;
            font-size: 0.9rem; /* Slightly reduced label font size */
            color: #555;
        }

        .form-group input[type="text"],
        .form-group input[type="email"],
        .form-group input[type="tel"],
        .form-group input[type="password"],
        .form-group select {
            width: 100%;
            padding: 10px; /* Reduced padding from 12px */
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 0.95rem; /* Slightly reduced input font size */
            box-sizing: border-box;
            transition: border-color 0.3s ease;
        }

        .form-group input[type="text"]:focus,
        .form-group input[type="email"]:focus,
        .form-group input[type="tel"]:focus,
        .form-group input[type="password"]:focus,
        .form-group select:focus {
            border-color: #3f2b96;
            outline: none;
            box-shadow: 0 0 0 3px rgba(63, 43, 150, 0.2);
        }

        /* Captcha Styling */
        .captcha-group {
            grid-column: span 2;
            display: flex;
            align-items: center;
            gap: 10px; /* Reduced gap from 15px */
            margin-bottom: 15px; /* Reduced margin-bottom from 20px */
        }

        .captcha-display {
            background-color: #e0e0e0;
            border: 1px dashed #aaa;
            border-radius: 8px;
            padding: 4px 43px; /* Reduced padding from 10px 15px */
            margin-top: 18px;
            font-size: 1.3rem; /* Reduced font size from 1.5rem */
            font-weight: 700;
            color: #333;
            letter-spacing: 2px; /* Slightly reduced letter spacing */
            position: relative;
            overflow: hidden;
            flex-grow: 1;
            text-align: center;
        }

        .captcha-display::before,
        .captcha-display::after {
            content: '';
            position: absolute;
            width: 120%;
            height: 2px;
            background-color: rgba(0, 0, 0, 0.3);
            transform: rotate(-10deg);
            top: 40%;
            left: -10%;
        }

        .captcha-display::after {
            transform: rotate(10deg);
            top: 60%;
            left: -10%;
        }

        .refresh-captcha {
            background: none;
            border: none;
            cursor: pointer;
            margin-top: 20px;
            font-size: 1.6rem; /* Reduced font size from 1.8rem */
            color: #3f2b96;
            transition: color 0.3s ease;
        }

        .refresh-captcha:hover {
            color: #5d48bf;
        }

        .captcha-group input {
            flex-grow: 1;
        }

        /* Button Styling */
        .signup-button {
            grid-column: span 2;
            padding: 12px 20px; /* Reduced padding from 15px 25px */
            background: linear-gradient(45deg, #3f2b96, #a8c0ff);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 1rem; /* Reduced font size from 1.1rem */
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: block;
            width: 100%;
            margin-top: 15px; /* Reduced margin-top from 20px */
        }

        .signup-button:hover {
            background: linear-gradient(45deg, #5d48bf, #c1d9ff);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .signup-button:active {
            transform: translateY(0);
        }

        /* Error Message Styling */
        .error-message {
            color: #e74c3c;
            font-size: 0.75rem; /* Reduced font size from 0.85rem */
            margin-top: 3px; /* Reduced margin-top from 5px */
            display: none; /* Hidden by default */
        }

        /* Success Message Styling */
        .success-message {
            text-align: center;
            padding: 30px;
            color: #3f2b96;
            font-size: 2.2rem;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
            display: none; /* Hidden by default */
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100%;
            animation: scaleIn 0.8s ease-out;
        }

        .success-message span {
            display: block;
            margin-top: 15px;
            font-size: 1.2rem;
            color: #555;
            font-weight: 400;
        }

        @keyframes scaleIn {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }


        /* Responsive Design */
        @media (max-width: 768px) {
            .form-grid {
                grid-template-columns: 1fr;
            }
            .captcha-group {
                flex-direction: column;
                align-items: stretch;
            }
            .registration-container {
                padding: 20px; /* Further reduced padding for smaller screens */
                margin: 15px;
            }
            h2 {
                font-size: 1.6rem;
                margin-bottom: 15px;
            }
            .form-group label {
                font-size: 0.85rem;
            }
            .form-group input[type="text"],
            .form-group input[type="email"],
            .form-group input[type="tel"],
            .form-group input[type="password"],
            .form-group select {
                padding: 8px;
                font-size: 0.9rem;
            }
            .captcha-display {
                font-size: 1.1rem;
            }
            .refresh-captcha {
                font-size: 1.4rem;
            }
            .signup-button {
                padding: 10px 18px;
                font-size: 0.95rem;
            }
            .success-message {
                font-size: 1.8rem;
            }
            .success-message span {
                font-size: 1rem;
            }
        }
