:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(20, 26, 40, 0.7);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #06b6d4;
    --error: #ef4444;
    --success: #10b981;
    --border: rgba(255,255,255,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(45deg, #0b0f19, #1e1b4b, #0f172a, #0b0f19);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 12s infinite ease-in-out alternate;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: #3b82f6;
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 550px;
    height: 550px;
    background: #8b5cf6;
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
    animation-duration: 15s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #06b6d4;
    top: 40%;
    left: 50%;
    animation-delay: -2s;
    animation-duration: 10s;
}

.container {
    width: 100%;
    max-width: 600px;
    z-index: 1;
}

.hero {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.8s ease;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.tab-btn.active {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.form-container {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

input, select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Spinner Animation */
.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none !important;
}

/* Success Message */
#success-message {
    text-align: center;
    padding: 2rem 0;
}

#success-message h2 {
    color: var(--success);
    margin-bottom: 1rem;
}

#success-message p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

#success-message button {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

#success-message button:hover {
    background: rgba(255,255,255,0.05);
}



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

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

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

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0) scale(1) translateX(0); }
    100% { transform: translateY(40px) scale(1.1) translateX(20px); }
}

.other-city-input {
    margin-top: 0.75rem;
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
}
