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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, -50px) rotate(90deg);
    }
    50% {
        transform: translate(0, -100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, -50px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Dark mode styles */
body {
    background-color: #0a192f;
    color: #e6f1ff;
    position: relative;
    min-height: 100vh;
}
.bubble {
    z-index: -1; /* Ensure bubbles are behind other elements */
}
.container {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.bubble {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    animation: float 15s infinite linear;
    opacity: 0.8;
}

.bubble:nth-child(1) {
    width: 100px;
    height: 100px;
    left: 10%;
    top: 20%;
    animation-duration: 20s;
    animation-delay: 0s;
    background: linear-gradient(135deg, #0a192f 0%, #1a365d 50%, #2d3748 100%);
    box-shadow: 0 0 20px rgba(26, 54, 93, 0.3);
}

.bubble:nth-child(2) {
    width: 150px;
    height: 150px;
    right: 15%;
    top: 40%;
    animation-duration: 25s;
    animation-delay: 2s;
    background: linear-gradient(135deg, #1a1b4b 0%, #4a1b4b 50%, #6b1b4b 100%);
    box-shadow: 0 0 20px rgba(74, 27, 75, 0.3);
}

.bubble:nth-child(3) {
    width: 80px;
    height: 80px;
    left: 30%;
    bottom: 20%;
    animation-duration: 18s;
    animation-delay: 4s;
    background: linear-gradient(135deg, #1a1b4b 0%, #3b1b4b 50%, #5c1b4b 100%);
    box-shadow: 0 0 20px rgba(59, 27, 75, 0.3);
}

.bubble:nth-child(4) {
    width: 120px;
    height: 120px;
    right: 25%;
    bottom: 30%;
    animation-duration: 22s;
    animation-delay: 6s;
    background: linear-gradient(135deg, #0a192f 0%, #1a1b4b 50%, #2a1b4b 100%);
    box-shadow: 0 0 20px rgba(42, 27, 75, 0.3);
}

/* Form styles for dark mode */
.max-w-3xl {
    background-color: #112240;
    border: 1px solid #233554;
    position: relative;
    z-index: 1;
}

.text-gray-700 {
    color: #e6f1ff;
}

.form-group {
    position: relative;
}

input, textarea {
    background-color: #0a192f;
    color: #e6f1ff;
    transition: all 0.3s ease;
    border: 2px solid #233554;
    position: relative;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #64ffda;
    background-color: #112240;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

input:hover, textarea:hover {
    background-color: #112240;
}

label.flex.flex-col.items-center {
    background-color: #0a192f;
    border-color: #233554;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

label.flex.flex-col.items-center span {
    color: #e6f1ff;
    transition: color 0.3s ease;
}

label.flex.flex-col.items-center:hover::before,
label.flex.flex-col.items-center.selected::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 0.5rem;
    padding: 2px;
    background: linear-gradient(45deg, #ff6b6b, #9c27b0, #2196f3);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

label.flex.flex-col.items-center:hover,
label.flex.flex-col.items-center.selected {
    position: relative;
    background-color: #112240;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

label.flex.flex-col.items-center:hover span,
label.flex.flex-col.items-center.selected span {
    color: #e6f1ff;
}

label.flex.flex-col.items-center input[type="radio"]:checked + span {
    color: #e6f1ff;
}

label.flex.flex-col.items-center input[type="radio"]:checked {
    border-color: #64ffda;
    background-color: #112240;
}

label.flex.flex-col.items-center input[type="radio"]:checked ~ span {
    color: #e6f1ff;
}

button[type="submit"] {
    background-color: #64ffda;
    color: #0a192f;
}

button[type="submit"]:hover {
    background-color: #52d3b0;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.form-group {
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
    animation-delay: calc(var(--animation-order) * 0.1s);
}

.form-group:nth-child(1) { --animation-order: 1; }
.form-group:nth-child(2) { --animation-order: 2; }
.form-group:nth-child(3) { --animation-order: 3; }
.form-group:nth-child(4) { --animation-order: 4; }
.form-group:nth-child(5) { --animation-order: 5; }
.form-group:nth-child(6) { --animation-order: 6; }
.form-group:nth-child(7) { --animation-order: 7; }
.form-group:nth-child(8) { --animation-order: 8; }

/* RTL specific styles */
[dir="rtl"] .form-group input[type="radio"] {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
} 