/* GSB Samaj Sambandh - Register Page Styles */
/* Design System Variables */
:root {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 0 84.2% 60.2%;
    --primary-foreground: 0 0% 98%;
    --primary-dark: 0 84.2% 46%;
    --primary-light: 0 84.2% 74%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --input-bg: 0 0% 100%;
    --ring: 0 84.2% 60.2%;
    --success: 142 76% 36%;
    --success-foreground: 0 0% 98%;
    --error: 0 84.2% 60.2%;
    --radius: 0.5rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   Progress Bar
   ===================================================== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(245, 82, 234, 0.1);
    z-index: 9999;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary-light)));
    width: 33.33%;
    transition: width 0.4s ease;
}

/* =====================================================
   Main Wrapper
   ===================================================== */
.register-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: hsl(var(--background));
}

.register-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 700px;
    background: hsl(var(--card));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* =====================================================
   Left Side - Branding Section
   ===================================================== */
.branding-section {
    flex: 1;
    background: linear-gradient(145deg, hsl(var(--primary)) 0%, hsl(245 82% 55%) 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: hsl(var(--primary-foreground));
    position: relative;
    overflow: hidden;
}

.branding-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.branding-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.branding-content {
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem;
    backdrop-filter: blur(10px);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-message {
    margin-bottom: 3rem;
}

.welcome-message h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.welcome-message p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 90%;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(0.5rem);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.benefit-icon svg {
    stroke: hsl(var(--primary-foreground));
}

.benefit-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

.stats-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* =====================================================
   Right Side - Form Section
   ===================================================== */
.form-section {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    overflow-y: auto;
}

.form-container {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.form-header p {
    color: hsl(var(--secondary-foreground));
    font-size: 0.95rem;
}

/* =====================================================
   Enhanced Stepper
   ===================================================== */
.stepper-container {
    margin-bottom: 2.5rem;
}

.stepper-track {
    position: relative;
    height: 4px;
    background: hsl(var(--secondary));
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.stepper-progress {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary-light)));
    border-radius: 2px;
    width: 33.33%;
    transition: width 0.4s ease;
}

.stepper-steps {
    display: flex;
    justify-content: space-between;
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.5;
    transition: var(--transition-normal);
}

.stepper-step.active {
    opacity: 1;
}

.stepper-step.completed {
    opacity: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: hsl(var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--secondary-foreground));
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.stepper-step.active .step-circle {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0.2);
}

.stepper-step.completed .step-circle {
    background: hsl(var(--success));
    color: hsl(var(--success-foreground));
}

.stepper-step.completed .step-circle svg {
    display: block;
}

.step-circle svg {
    display: none;
}

.step-info {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

.step-desc {
    font-size: 0.75rem;
    color: hsl(var(--secondary-foreground));
}

/* =====================================================
   Form Styles
   ===================================================== */
.registration-form {
    display: flex;
    flex-direction: column;
}

.form-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 1.5rem;
}

.step-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.step-header p {
    font-size: 0.9rem;
    color: hsl(var(--secondary-foreground));
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.required {
    color: hsl(var(--error));
}

.optional {
    font-size: 0.8rem;
    color: hsl(var(--secondary-foreground));
    font-weight: 400;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    border: 1.5px solid hsl(var(--border));
    border-radius: var(--radius-md);
    background: hsl(var(--input-bg));
    color: hsl(var(--foreground));
    transition: var(--transition-fast);
}

.form-input:hover {
    border-color: hsl(var(--primary) / 0.5);
}

.form-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

.form-input::placeholder {
    color: hsl(var(--secondary-foreground));
    opacity: 0.7;
}

.form-input.readonly {
    background: hsl(var(--secondary));
    cursor: not-allowed;
}

.form-input.readonly:focus {
    border-color: hsl(var(--border));
    box-shadow: none;
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper .form-input {
    appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: hsl(var(--secondary-foreground));
    transition: var(--transition-fast);
}

.select-wrapper:hover .select-arrow {
    color: hsl(var(--primary));
}

/* =====================================================
   Autocomplete Styles
   ===================================================== */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid hsl(var(--border));
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: hsl(var(--input-bg));
    color: hsl(var(--foreground));
    transition: all 0.2s ease;
}

.autocomplete-input:hover {
    border-color: hsl(var(--primary) / 0.5);
}

.autocomplete-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

.autocomplete-input::placeholder {
    color: hsl(var(--secondary-foreground));
    opacity: 0.7;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid hsl(var(--border));
    font-size: 0.95rem;
    color: hsl(var(--foreground));
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: hsl(var(--secondary));
}

.autocomplete-item:active {
    background-color: hsl(var(--primary) / 0.15);
}

.autocomplete-add-new {
    background-color: hsl(var(--primary) / 0.08);
    font-weight: 500;
    color: hsl(var(--primary));
}

.autocomplete-add-new:hover {
    background-color: hsl(var(--primary) / 0.15);
}

/* Scrollbar styling for autocomplete dropdown */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: hsl(var(--secondary));
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: hsl(var(--border));
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary) / 0.5);
}

/* =====================================================
   Astro Calculator Section
   ===================================================== */
.astro-calculator {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: hsl(var(--secondary));
    border-radius: var(--radius-md);
    border: 1px dashed hsl(var(--border));
}

.astro-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.astro-btn:hover {
    background: hsl(var(--primary-dark));
    transform: translateY(-1px);
}

.astro-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: hsl(var(--secondary-foreground));
    line-height: 1.5;
}

/* =====================================================
   File Upload Styles
   ===================================================== */
.file-upload {
    position: relative;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 2px dashed hsl(var(--border));
    border-radius: var(--radius-md);
    background: hsl(var(--secondary));
    transition: var(--transition-normal);
}

.file-upload:hover .file-content,
.file-input:focus + .file-content {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.03);
}

.file-icon {
    color: hsl(var(--primary));
    margin-bottom: 0.75rem;
}

.file-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.file-hint {
    font-size: 0.75rem;
    color: hsl(var(--secondary-foreground));
}

/* =====================================================
   Form Actions
   ===================================================== */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 4px 14px hsl(var(--primary) / 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsl(var(--primary) / 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background: hsl(var(--border));
}

.btn-success {
    background: linear-gradient(135deg, hsl(var(--success)), hsl(142 76% 30%));
    color: hsl(var(--success-foreground));
    box-shadow: 0 4px 14px hsl(var(--success) / 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsl(var(--success) / 0.5);
}

.hidden {
    display: none !important;
}

.btn.loading {
    position: relative;
    pointer-events: none;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-primary.loading::after {
    border-color: hsl(var(--primary-foreground));
    border-right-color: transparent;
}

.btn-success.loading::after {
    border-color: hsl(var(--success-foreground));
    border-right-color: transparent;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   Success Animation for Submit
   ===================================================== */
@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 hsl(var(--success) / 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px hsl(var(--success) / 0);
    }
    100% {
        box-shadow: 0 0 0 0 hsl(var(--success) / 0);
    }
}

.btn-success.success-animation {
    animation: successPulse 0.6s ease-out;
}

/* =====================================================
   Form Messages
   ===================================================== */
.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
    border: 1px solid hsl(var(--success) / 0.2);
}

.form-message.error {
    display: block;
    background: hsl(var(--error) / 0.1);
    color: hsl(var(--error));
    border: 1px solid hsl(var(--error) / 0.2);
}

/* =====================================================
   Login Prompt
   ===================================================== */
.login-prompt {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
    font-size: 0.9rem;
    color: hsl(var(--secondary-foreground));
}

.login-prompt a {
    color: hsl(var(--primary));
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* =====================================================
   Success Container - Membership Number Display
   ===================================================== */
.success-container {
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, hsl(var(--success)), hsl(142 76% 36%));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px hsl(var(--success) / 0.4);
    animation: scaleIn 0.5s ease 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.success-description {
    font-size: 1rem;
    color: hsl(var(--secondary-foreground));
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.membership-number-box {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: hsl(var(--primary-foreground));
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px hsl(var(--primary) / 0.35);
}

.membership-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.membership-number {
    display: block;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.success-actions .btn {
    min-width: 160px;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
    .register-container {
        flex-direction: column;
        max-width: 600px;
    }

    .branding-section {
        padding: 2rem;
    }

    .logo-container {
        margin-bottom: 1.5rem;
    }

    .welcome-message h1 {
        font-size: 1.75rem;
    }

    .welcome-message p {
        font-size: 1rem;
    }

    .benefits-list {
        display: none;
    }

    .stats-row {
        display: none;
    }

    .form-section {
        padding: 2rem;
    }

    .success-container {
        padding: 1.5rem 0.5rem;
    }

    .success-icon {
        width: 70px;
        height: 70px;
    }

    .success-icon svg {
        width: 36px;
        height: 36px;
    }

    .success-title {
        font-size: 1.25rem;
    }

    .membership-number {
        font-size: 1.5rem;
    }

    .membership-number-box {
        padding: 1.25rem 1.5rem;
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 640px) {
    .register-wrapper {
        padding: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .stepper-steps {
        display: none;
    }

    .stepper-track {
        margin-bottom: 0;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }

    .stepper-progress {
        width: 50%;
    }
}

/* =====================================================
   Dark Mode Support
   ===================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --background: 220 14% 6%;
        --foreground: 220 14% 98%;
        --card: 220 14% 8%;
        --card-foreground: 220 14% 98%;
        --secondary: 220 14% 14%;
        --secondary-foreground: 220 14% 70%;
        --border: 220 14% 20%;
        --input-bg: 220 14% 10%;
    }

    .form-input,
    .autocomplete-input {
        color: hsl(var(--foreground));
    }

    .form-input::placeholder,
    .autocomplete-input::placeholder {
        opacity: 0.5;
    }

    .branding-section::before,
    .branding-section::after {
        display: none;
    }

    .autocomplete-dropdown {
        background: hsl(var(--card));
        border-color: hsl(var(--border));
    }

    .autocomplete-item {
        color: hsl(var(--foreground));
        border-bottom-color: hsl(var(--border));
    }
}

/* =====================================================
   Reduced Motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   Registration Fee Notice Modal
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
    animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
    from {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }
    to {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(2px);
    }
}

.modal-content {
    background: hsl(var(--card));
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInModal 0.4s ease;
    position: relative;
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOutModal {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    /* Changed from space-between to relative to allow absolute positioning of children */
    justify-content: center; 
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
    position: sticky;
    top: 0;
    background: hsl(var(--card));
    z-index: 1;
    min-height: 4rem; /* Ensures consistent height */
}

.modal-title {
    font-size: 1.00rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0;
    text-align: center;
    /* The title now stays in the center of the flex container */
}

.modal-close-btn {
    /* Position the button absolutely so it doesn't push the title to the side */
    position: absolute;
    right: 1.5rem; 
    
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--secondary-foreground));
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

.modal-close-btn svg {
    width: 18px;
    height: 18px;
}

/* =====================================================
   Language Tabs
   ===================================================== */
.modal-language-tabs {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid hsl(var(--border));
    gap: 0.5rem;
    background: hsl(var(--secondary));
}

.language-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: hsl(var(--secondary-foreground));
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.language-tab:hover {
    background: hsl(var(--card));
}

.language-tab.active {
    background: hsl(var(--card));
    color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

/* =====================================================
   Modal Body & Content
   ===================================================== */
.modal-body {
    padding: 2rem 1.5rem;
}

.modal-language-content {
    display: none;
}

.modal-language-content.active {
    display: block;
    animation: fadeInContent 0.3s ease;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fee-notice-text {
    font-size: 1rem;
    line-height: 1.8;
    color: hsl(var(--foreground));
    margin: 1rem 0;
}

.fee-notice-text strong {
    font-weight: 700;
    color: hsl(var(--primary));
}

.fee-notice-footer {
    font-size: 1rem;
    line-height: 1.8;
    color: hsl(var(--secondary-foreground));
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
}

/* =====================================================
   Payment Details Section
   ===================================================== */
.payment-details-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: hsl(var(--secondary));
    border-radius: var(--radius-md);
    text-align: center;
}

.payment-qr-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.payment-qr-code {
    max-width: 150px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-upi-container {
    text-align: center;
}

.payment-upi-label {
    font-size: 0.9rem;
    color: hsl(var(--secondary-foreground));
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.payment-upi-id {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin: 0;
    letter-spacing: 0.5px;
}

/* =====================================================
   Modal Footer & Actions
   ===================================================== */
.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    gap: 1rem;
    justify-content: center;
    background: hsl(var(--secondary));
    position: sticky;
    bottom: 0;
}

.modal-footer .btn {
    min-width: 200px;
}

/* =====================================================
   Responsive Modal
   ===================================================== */
@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
        border-radius: var(--radius-md);
    }

    .modal-header {
        padding: 1.25rem;
    }

    .modal-title {
        font-size: 1.00rem;
        text-align: center;
    }

    .modal-body {
        padding: 1.5rem 1rem;
    }

    .fee-notice-text {
        font-size: 0.95rem;
    }

    .modal-footer .btn {
        min-width: auto;
        flex: 1;
    }

    .modal-language-tabs {
        padding: 0.75rem;
        gap: 0.25rem;
    }

    .language-tab {
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
    }
}

/* =====================================================
   No Escape Key Dismiss
   ===================================================== */
body.modal-open {
    overflow: hidden;
}


