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

body {
    font-family: 'Arial', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 35%, #0f0f23 100%);
    position: relative;
}

/* Animație galaxie */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: galaxyMove 20s linear infinite;
    opacity: 0.8;
}

@keyframes galaxyMove {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* Planete în fundal */
.planets {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.planet {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.planet1 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ff6b47, #d63031);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.planet2 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #6c5ce7, #a29bfe);
    bottom: 20%;
    left: 15%;
    animation-delay: 3s;
}

.planet3 {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #00b894, #00cec9);
    top: 40%;
    right: 20%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotateZ(0deg); }
    50% { transform: translateY(-20px) rotateZ(10deg); }
}

/* Shooting stars */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: shootingStar 3s linear infinite;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, white, transparent);
}

.star1 {
    top: 20%;
    left: -50px;
    animation-delay: 0s;
}

.star2 {
    top: 60%;
    left: -50px;
    animation-delay: 2s;
}

@keyframes shootingStar {
    0% { transform: translateX(0) translateY(0); opacity: 1; }
    100% { transform: translateX(100vw) translateY(50px); opacity: 0; }
}

/* Container principal */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    z-index: 10;
}

/* Rachetă ultra-realistă */
.rocket-form {
    position: relative;
    width: 280px;
    height: 600px;
    background: linear-gradient(180deg, 
        #e8eaf6 0%, 
        #c5cae9 20%, 
        #9fa8da 40%,
        #7986cb 60%,
        #5c6bc0 80%,
        #3f51b5 100%);
    border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    box-shadow: 
        inset 10px 0 20px rgba(255,255,255,0.3),
        inset -10px 0 20px rgba(0,0,0,0.2),
        0 0 60px rgba(63, 81, 181, 0.6),
        0 0 100px rgba(63, 81, 181, 0.3);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: hover 4s ease-in-out infinite;
}

@keyframes hover {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    75% { transform: translateY(8px) rotate(-1deg); }
}

.rocket-form:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 
        inset 10px 0 30px rgba(255,255,255,0.4),
        inset -10px 0 30px rgba(0,0,0,0.3),
        0 0 100px rgba(63, 81, 181, 0.8),
        0 0 150px rgba(63, 81, 181, 0.4);
}

/* Coiful rachetei */
.rocket-nose {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 100px;
    background: linear-gradient(180deg, #ff5722 0%, #d84315 50%, #bf360c 100%);
    border-radius: 50% 50% 50% 50% / 90% 90% 10% 10%;
    box-shadow: 
        inset 5px 0 15px rgba(255,255,255,0.4),
        inset -5px 0 15px rgba(0,0,0,0.3),
        0 0 30px rgba(255, 87, 34, 0.8);
}

.rocket-nose::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 15px;
    height: 20px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    filter: blur(3px);
}

/* Ferestre rachetă */
.rocket-window {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #87ceeb 0%, #4682b4 70%, #2f4f4f 100%);
    border-radius: 50%;
    border: 4px solid #2c3e50;
    box-shadow: 
        inset 0 0 20px rgba(255,255,255,0.3),
        0 0 20px rgba(70, 130, 180, 0.6);
}

.rocket-window::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    filter: blur(2px);
}

.rocket-window::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
}

/* Aripi rachetă mai realiste */
.rocket-wing {
    position: absolute;
    bottom: 80px;
    width: 50px;
    height: 120px;
    background: linear-gradient(45deg, 
        #546e7a 0%, 
        #37474f 50%, 
        #263238 100%);
    clip-path: polygon(0 0, 100% 40%, 100% 100%, 0 80%);
    box-shadow: 
        inset 0 0 15px rgba(255,255,255,0.2),
        0 0 20px rgba(0,0,0,0.4);
}

.rocket-wing.left {
    left: -45px;
    transform: rotate(-10deg);
}

.rocket-wing.right {
    right: -45px;
    transform: rotate(10deg) scaleX(-1);
}

.rocket-wing::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 10px;
    width: 15px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    clip-path: polygon(0 0, 80% 30%, 100% 100%, 20% 90%);
}

/* Benzi decorative */
.rocket-stripe {
    position: absolute;
    left: 20px;
    right: 20px;
    height: 8px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ff9800 25%, 
        #f57c00 50%, 
        #ff9800 75%, 
        transparent 100%);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.6);
}

.stripe1 { top: 180px; }
.stripe2 { top: 200px; }
.stripe3 { bottom: 200px; }

/* Header formular */
.form-header {
    position: absolute;
    top: 160px;
    left: 30px;
    right: 30px;
    text-align: center;
    color: white;
    z-index: 5;
}

.form-header h1 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.form-header p {
    font-size: 11px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Formular în interiorul rachetei */
.form-content {
    position: absolute;
    top: 220px;
    left: 25px;
    right: 25px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.form-content::-webkit-scrollbar {
    display: none;
}

.form-row {
    display: flex;
    gap: 8px;
}

.form-group {
    position: relative;
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 10px;
    color: #fff;
    margin-bottom: 3px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.form-group label.required::after {
    content: ' *';
    color: #ff5722;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    font-size: 11px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.1),
        0 2px 8px rgba(0,0,0,0.1);
}

.form-group textarea {
    resize: none;
    height: 60px;
    border-radius: 15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 1);
    border-color: #ff5722;
    transform: scale(1.02);
    box-shadow: 
        inset 0 2px 6px rgba(0,0,0,0.1),
        0 0 15px rgba(255, 87, 34, 0.4),
        0 4px 15px rgba(0,0,0,0.2);
}

.form-group select {
    cursor: pointer;
}

/* Buton de lansare */
.submit-btn {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 45px;
    background: linear-gradient(135deg, #ff5722 0%, #d84315 50%, #bf360c 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        inset 0 2px 0 rgba(255,255,255,0.3),
        inset 0 -2px 0 rgba(0,0,0,0.3),
        0 4px 15px rgba(255, 87, 34, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    position: relative;
}

.submit-btn::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.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateX(-50%) scale(1.05) translateY(-3px);
    box-shadow: 
        inset 0 2px 0 rgba(255,255,255,0.4),
        inset 0 -2px 0 rgba(0,0,0,0.4),
        0 8px 25px rgba(255, 87, 34, 0.6);
}

.submit-btn:active {
    transform: translateX(-50%) scale(0.98) translateY(1px);
}

/* Flăcări rachetă mai realiste */
.rocket-flames {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 80px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flame {
    position: absolute;
    bottom: 0;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    filter: blur(1px);
}

.flame1 {
    left: 20px;
    width: 25px;
    height: 50px;
    background: radial-gradient(ellipse at center bottom, #ffeb3b 0%, #ff5722 70%, #d84315 100%);
    animation: flicker 0.3s ease-in-out infinite alternate;
}

.flame2 {
    left: 35px;
    width: 35px;
    height: 65px;
    background: radial-gradient(ellipse at center bottom, #fff 0%, #ffeb3b 30%, #ff5722 80%, #d84315 100%);
    animation: flicker 0.4s ease-in-out infinite alternate;
    animation-delay: 0.1s;
}

.flame3 {
    left: 50px;
    width: 30px;
    height: 55px;
    background: radial-gradient(ellipse at center bottom, #ffeb3b 0%, #ff5722 70%, #d84315 100%);
    animation: flicker 0.35s ease-in-out infinite alternate;
    animation-delay: 0.2s;
}

.flame4 {
    left: 65px;
    width: 25px;
    height: 45px;
    background: radial-gradient(ellipse at center bottom, #ffeb3b 0%, #ff5722 70%, #d84315 100%);
    animation: flicker 0.32s ease-in-out infinite alternate;
    animation-delay: 0.15s;
}

@keyframes flicker {
    0% { 
        transform: scale(1) rotate(-2deg);
        opacity: 0.8;
    }
    100% { 
        transform: scale(1.2) rotate(2deg);
        opacity: 1;
    }
}

/* Animație lansare */
@keyframes launch {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    10% {
        transform: translateY(-30px) scale(1.05) rotate(-1deg);
        opacity: 1;
    }
    20% {
        transform: translateY(-80px) scale(1.1) rotate(2deg);
        opacity: 1;
    }
    40% {
        transform: translateY(-200px) scale(0.9) rotate(-1deg);
        opacity: 0.9;
    }
    70% {
        transform: translateY(-60vh) scale(0.6) rotate(3deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-120vh) scale(0.2) rotate(5deg);
        opacity: 0;
    }
}

.launching {
    animation: launch 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 1000;
}

.launching .rocket-flames {
    opacity: 1;
}

/* Extra efecte la lansare */
.launching::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, 
        rgba(255, 87, 34, 0.8) 0%, 
        rgba(255, 193, 7, 0.6) 30%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 70%);
    border-radius: 50%;
    animation: shockwave 1s ease-out;
}

@keyframes shockwave {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* Mesaje de stare */
.success-message, .error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px 35px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    scale: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
    max-width: 400px;
}

.success-message {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.4);
}

.error-message {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

.success-message.show, .error-message.show {
    opacity: 1;
    scale: 1;
}

/* Particule avansate */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
}

.spark {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffeb3b, #ff5722);
    animation: spark-float 2s ease-out forwards;
}

.smoke {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(200,200,200,0.8), transparent);
    animation: smoke-float 3s ease-out forwards;
}

.fire-particle {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #fff, #ffeb3b, #ff5722);
    animation: fire-float 1.5s ease-out forwards;
}

@keyframes spark-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) translateX(var(--random-x, 0)) scale(0);
    }
}

@keyframes smoke-float {
    0% {
        opacity: 0.8;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(3);
    }
}

@keyframes fire-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) translateX(var(--random-x, 0)) scale(0.5);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .rocket-form {
        width: 260px;
        height: 550px;
    }
    
    .form-content {
        gap: 10px;
        top: 200px;
    }
    
    .form-header h1 {
        font-size: 14px;
    }
    
    .form-header p {
        font-size: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 10px;
        padding: 6px 8px;
    }
    
    .submit-btn {
        width: 160px;
        height: 40px;
        font-size: 12px;
    }
}

/* Hidden field styling */
.hidden-email {
    display: none;
}

/* Loading animation pentru buton */
.submit-btn.loading {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    cursor: not-allowed;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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