:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --background-color: #f0f7ff;
    --text-color: #1e3a8a;
    --border-radius: 12px;
}

body {
    background-color: var(--background-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.registration-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.registration-container {
    position: relative;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    padding: 2.5rem;
    max-width: 800px;
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.form-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header h2::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 4px;
    bottom: -10px;
    left: 0;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    animation: lineExpand 1s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes lineExpand {
    from { width: 0; }
    to { width: 100%; }
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

.form-group:hover {
    transform: translateY(-2px);
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.required {
    color: #e74c3c;
    margin-left: 0.25rem;
    font-size: 0.9rem;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem;
    border-color: #ddd;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.25);
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
    transition: color 0.3s ease;
}

.radio-group label:hover {
    color: var(--primary-color);
}

.radio-group input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    outline: none;
    transition: all 0.3s ease;
}

.radio-group input[type="radio"]:checked {
    background-color: var(--primary-color);
    /* box-shadow: 0 0 0 4px white inset; */
}

.submit-btn {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(37, 99, 235, 0.2), 0 3px 6px rgba(0,0,0,.08);
}

.submit-btn:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .registration-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Custom Icon Styling */
.form-icon {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.form-group:hover .form-icon {
    transform: scale(1.2);
}

/* Add this to your existing CSS file */
.captcha-code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 2px;
    min-width: 120px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.captcha-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.05) 10px,
        rgba(0, 0, 0, 0) 10px,
        rgba(0, 0, 0, 0) 20px
    );
}

.captcha-container {
    margin-top: 5px;
}