:root {
    --primary: #0a192f;
    --secondary: #64ffda;
    --accent: #FFD700;
    --text: #ccd6f6;
    --gray: #8892b0;
    --white: #fff;
    --glass: rgba(10,25,47,0.7);
    --shadow: 0 8px 32px 0 rgba(31,38,135,0.37);
    --gradient: linear-gradient(135deg, #64ffda 0%, #0a192f 100%);
    --error: #ff6b6b;
    --success: #51cf66;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}
.bg-animated {
    position: fixed;
    top:0; left:0; width:100vw; height:100vh;
    z-index:0;
    pointer-events:none;
    overflow:hidden;
}
.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    animation: float 8s ease-in-out infinite alternate;
}
.bg-shape1 { width: 400px; height: 400px; background: var(--secondary); left: -100px; top: -100px; animation-delay: 0s;}
.bg-shape2 { width: 300px; height: 300px; background: var(--accent); right: -80px; top: 40vh; animation-delay: 2s;}
.bg-shape3 { width: 200px; height: 200px; background: #233554; left: 50vw; bottom: -100px; animation-delay: 4s;}
@keyframes float {
    0% { transform: translateY(0) scale(1);}
    100% { transform: translateY(-40px) scale(1.1);}
}
.form-container {
    max-width: 520px;
    margin: 6rem auto 2rem auto;
    background: rgba(10,25,47,0.7);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem 2rem 2rem;
    z-index: 1;
    position: relative;
    backdrop-filter: blur(8px);
    animation: fadeIn 1.2s;
}
@keyframes fadeIn { from { opacity:0; transform: translateY(40px);} to { opacity:1; transform: none;}}
.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-align: center;
}
.form-section {
    margin-bottom: 2.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #233554;
    position: relative;
}
.form-section:last-child { border-bottom: none; }
.section-label {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 0.5px;
}
.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
label {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    letter-spacing: 0.2px;
}
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="file"] {
    padding: 0.7rem 1rem;
    border-radius: 6px;
    border: 1.5px solid #233554;
    background: rgba(35,53,84,0.5);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    border-color: var(--secondary);
}
input[type="file"] {
    color: var(--gray);
    background: rgba(35,53,84,0.3);
    border: none;
    padding: 0.7rem 0;
}
.file-label {
    font-size: 0.98rem;
    color: var(--gray);
    margin-bottom: 0.2rem;
    font-weight: 500;
}
.btn {
    padding: 1rem 2.5rem;
    border-radius: 6px;
    background: var(--gradient);
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 16px #64ffda33;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    text-decoration: none;
    display: block;
    margin: 2rem auto 0 auto;
    width: fit-content;
}
.btn:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px) scale(1.04);
}
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10,25,47,0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 48px;
}
.messages {
    position: fixed;
    top: 5px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
}
.message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2px;
    animation: slideIn 0.5s ease-out;
}
.message.success {
    background: var(--success);
    color: white;
}
.message.error {
    background: var(--error);
    color: white;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.error-text {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}
.validation-message {
    font-size: 0.9rem;
    margin-top: 0.3rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    display: none;
}
.validation-message.error {
    background: rgba(255, 107, 107, 0.1);
    color: var(--error);
    display: block;
}
.validation-message.success {
    background: rgba(81, 207, 102, 0.1);
    color: var(--success);
    display: block;
}
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
    border-top: 1px solid #233554;
    margin-top: 3rem;
}
/* Responsive */
@media (max-width: 600px) {
    .form-container { padding: 1.2rem 0.5rem; margin-top: 8rem;}
    .form-title { font-size: 1.3rem;}
    .navbar { padding: 1rem; }
    .messages { right: 10px; max-width: 300px; }
}
