:root {
    --primary: #f5c400; /* Gold/Yellow accent */
    --primary-hover: #dcae00;
    --bg-color: #0b0f19; /* Deep dark blue/black */
    --surface: #1a1f2e; /* Slightly lighter surface */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: #2d3748;
    --error: #ef4444;
    --success: #10b981;
    --req: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px;
}

.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: #0b0f19;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Bi-lingual support classes */
.ur {
    font-family: 'Jameel Noori Nastaleeq', serif;
    font-size: 1.2rem;
    direction: rtl;
}

.req {
    color: var(--req);
    margin-left: 4px;
}

/* Header */
.hero {
    background: linear-gradient(135deg, rgba(26,31,46,0.95), rgba(11,15,25,0.95)), 
                url('https://images.unsplash.com/photo-1542816417-0983c9c9ad53?auto=format&fit=crop&w=1200&q=80') center/cover;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    margin-bottom: -40px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.main-logo {
    max-width: 200px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero h2 {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 15px;
}

.hero .subtitle {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 25px;
}

/* Alert box */
.alertbox {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--error);
    padding: 15px 20px;
    border-radius: 6px;
    font-family: 'Jameel Noori Nastaleeq', Tahoma, Arial, sans-serif;
    font-size: 1.2rem;
    color: #fca5a5;
    backdrop-filter: blur(5px);
    display: inline-block;
    text-align: center;
    line-height: 1.8;
}

/* Form Container */
.container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--surface);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.row {
    display: flex;
    gap: 20px;
}

.col-half {
    flex: 1;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

select option {
    background-color: var(--bg-color);
    color: var(--text-main);
}

input::placeholder {
    color: #64748b;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.radio-group label:hover {
    background: rgba(255, 255, 255, 0.08);
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    /* Custom radio styling */
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    outline: none;
    cursor: pointer;
}

.radio-group input[type="radio"]:checked {
    border-color: var(--primary);
}

.radio-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.radio-group input[type="radio"]:focus {
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.2);
}

/* Checked label style via JS or pure CSS sibling selector logic if we restructured but let's keep it simple */
.radio-group label:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(245, 196, 0, 0.05);
}

/* Submit Button */
.submit-box {
    margin-top: 40px;
    text-align: center;
}

button[type="submit"] {
    background: var(--primary);
    color: #0b0f19;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

button[type="submit"]:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 196, 0, 0.2);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    background: #64748b;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(11, 15, 25, 0.3);
    border-top: 3px solid #0b0f19;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Status Message */
#statusMessage {
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.success-msg {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.error-msg {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Responsive */
@media (max-width: 600px) {
    .row {
        flex-direction: column;
        gap: 0;
    }
    
    .container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}
