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

html {
    height: 100%;
}

body {
    min-height: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: 'Georgia', serif;
    color: white;
    background: #0f0f23;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, #0f0f23 0%, #000011 50%, #000000 100%),
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(75, 0, 130, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(25, 25, 112, 0.3) 0%, transparent 50%);
    z-index: -20;
    pointer-events: none;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, #fff, transparent),
        radial-gradient(2px 2px at 40% 70%, #fff, transparent),
        radial-gradient(1px 1px at 90% 40%, #fff, transparent),
        radial-gradient(1px 1px at 60% 10%, #fff, transparent),
        radial-gradient(2px 2px at 30% 90%, #fff, transparent),
        radial-gradient(1px 1px at 80% 80%, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 200px, 150px 150px, 100px 100px, 80px 80px, 120px 120px, 90px 90px;
    animation: twinkle 3s infinite;
    z-index: -10;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.3; }
}

.container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 3em;
    background: linear-gradient(45deg, #ffd700, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.header p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.warning {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    backdrop-filter: blur(5px);
}

.warning p {
    color: #ffa500;
    font-size: 1.1em;
    margin: 5px 0;
}

.form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    color: #ffd700;
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 1.1em;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

select option {
    background: #1a1a2e;
    color: white;
    padding: 10px;
}

.date-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    border-radius: 30px;
    font-size: 1.4em;
    font-weight: bold;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    margin-top: 20px;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.4);
    color: #ff6b6b;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 215, 0, 0.4);
    max-width: 400px;
}

.cosmic-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
}

.cosmic-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-top: 3px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.cosmic-loader::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid transparent;
    border-bottom: 3px solid #00ffff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

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

.loading-text {
    color: #ffd700;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
    margin-bottom: 20px;
}

.mystical-facts {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    font-style: italic;
    max-width: 300px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #00ffff);
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

.back-link a {
    color: #ffd700;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #00ffff;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2em;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .date-time-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .time-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    input, select {
        padding: 12px;
        font-size: 1em;
    }

    .submit-btn {
        font-size: 1.2em;
        padding: 15px;
    }
}
