* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 25%, #1e40af 50%, #0ea5e9 75%, #06b6d4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-space {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    max-width: 450px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #1e40af;
    margin-bottom: 35px;
    font-size: 2.2em;
    font-weight: 700;
    background: linear-gradient(135deg, #1e40af, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #1e40af, #0ea5e9);
    border-radius: 2px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e40af;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

select, input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    color: #1e40af;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}

select:focus, input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: #ffffff;
}

select:hover, input[type="text"]:hover {
    border-color: #60a5fa;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

select {
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
}

input[type="text"]::placeholder {
    color: #93c5fd;
    font-style: italic;
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 
        0 8px 20px rgba(30, 64, 175, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

button::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(30, 64, 175, 0.4),
        0 0 20px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

button:hover::before {
    left: 100%;
}

button:hover::after {
    opacity: 1;
}

button:active {
    transform: translateY(-1px);
}

.result {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    font-size: 16px;
    font-weight: 500;
    color: #1e40af;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.result:empty {
    display: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.floating-elements::before {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    top: 70%;
    right: 10%;
    animation-delay: 4s;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .form-space {
        padding: 35px 30px;
        max-width: 100%;
    }
    
    h1 {
        font-size: 2em;
    }
}

@media (max-width: 500px) {
    body {
        padding: 10px;
    }
    
    .form-space {
        padding: 30px 25px;
        margin: 0 auto;
    }
    
    h1 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    select, input[type="text"] {
        padding: 13px 18px;
        font-size: 15px;
    }
    
    button {
        padding: 14px;
        font-size: 16px;
    }
    
    .result {
        padding: 18px;
        font-size: 15px;
        min-height: 55px;
    }
}

@media (max-width: 350px) {
    .form-space {
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    select, input[type="text"] {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    button {
        padding: 12px;
        font-size: 15px;
    }
}
