/* === СБРОС И БАЗОВЫЕ НАСТРОЙКИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-green: #0f0;
    --neon-red: #f00;
    --neon-blue: #0ff;
    --neon-pink: #f0f;
    --neon-yellow: #ff0;
    --dark-bg: #000;
    --transparent-bg: rgba(0, 0, 0, 0.9);
}

body {
    background-color: #000;
    color: var(--neon-green);
    font-family: 'Roboto Mono', 'Courier New', monospace;
    margin: 0;
    padding: 20px;
    background-image: url('../img/phone.jpg'); /* Можешь заменить на свою фоновую картинку */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

.content-wrapper {
    background-color: var(--transparent-bg);
    border: 2px solid var(--neon-red);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 0 20px var(--neon-green);
}

header {
    text-align: center;
    padding: 10px 0;
    border-bottom: 2px dashed var(--neon-green);
    margin-bottom: 25px;
}

h1 {
    font-family: 'Audiowide', cursive;
    color: var(--neon-yellow);
    text-shadow: 3px 3px var(--neon-red);
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin: 5px 0;
    line-height: 1.2;
}

h2 {
    font-family: 'Press Start 2P', cursive;
    color: var(--neon-blue);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    border-bottom: 2px dotted var(--neon-pink);
    padding-bottom: 12px;
    margin: 20px 0 25px 0;
    line-height: 1.4;
    text-transform: uppercase;
    text-align: center;
}

.back-link {
    text-align: center;
    margin: 20px 0;
}

.back-link a {
    display: inline-block;
    color: var(--neon-green);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid var(--neon-blue);
    background: var(--dark-bg);
    border-radius: 30px;
    font-size: clamp(0.9rem, 3vw, 1rem);
    transition: all 0.3s;
}

.back-link a:hover {
    background: var(--neon-blue);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--neon-blue);
}

/* === СТИЛИ ФОРМЫ === */
.form-container {
    background: rgba(0, 30, 0, 0.5);
    border: 2px solid var(--neon-blue);
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 0 30px var(--neon-blue);
    margin: 30px 0;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    color: var(--neon-yellow);
    margin-bottom: 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.required::after {
    content: " *";
    color: var(--neon-red);
    font-size: 1.2rem;
}

input, textarea {
    width: 100%;
    padding: 15px;
    background: #111;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--neon-pink) !important;
    box-shadow: 0 0 20px var(--neon-pink);
    background: #1a1a1a;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Стили для поля загрузки файла */
.file-input-wrapper {
    position: relative;
}

input[type="file"] {
    padding: 12px;
    background: #111;
    color: #aaa;
    border: 2px dashed var(--neon-blue);
}

input[type="file"]::file-selector-button {
    background: var(--dark-bg);
    color: var(--neon-green);
    border: 2px solid var(--neon-red);
    padding: 10px 20px;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background: var(--neon-red);
    color: #000;
    box-shadow: 0 0 10px var(--neon-red);
}

.file-hint {
    color: #aaa;
    font-size: 0.8rem;
    margin-top: 8px;
    display: block;
}

/* Кнопка отправки */
.submit-btn {
    text-align: center;
    margin: 35px 0 15px 0;
}

button[type="submit"] {
    background: #000;
    color: var(--neon-green);
    border: 3px solid var(--neon-red);
    padding: 18px 50px;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 0 15px var(--neon-red);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

button[type="submit"]:hover {
    background: var(--neon-red);
    color: #000;
    box-shadow: 0 0 30px var(--neon-red);
    transform: scale(1.05);
}

/* Дорожка с машинкой (как на главной) */
.road {
    height: 50px;
    background: #111;
    position: relative;
    overflow: hidden;
    margin: 30px 0;
    border: 2px solid var(--neon-green);
    border-radius: 8px;
}

.road::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--neon-green), var(--neon-green) 15px, transparent 15px, transparent 30px);
    transform: translateY(-50%);
}

.car {
    position: absolute;
    width: 80px;
    height: 30px;
    background: #444;
    top: 10px;
    border-radius: 6px;
    animation: drive 5s linear infinite;
    border: 1px solid var(--neon-red);
}

.car::before {
    content: "LADA SPORT";
    position: absolute;
    left: 5px;
    top: 5px;
    color: var(--neon-yellow);
    font-size: 8px;
    font-weight: bold;
}

.car::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 5px;
    width: 6px;
    height: 15px;
    background: var(--neon-red);
    border-radius: 2px;
}

@keyframes drive {
    0% { left: -100px; }
    100% { left: 100%; }
}

/* Адаптация под мобилки */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 15px;
    }
    
    .form-container {
        padding: 20px 15px;
    }
    
    label {
        font-size: 0.6rem;
    }
    
    input, textarea {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    button[type="submit"] {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%;
    }
    
    .car {
        width: 60px;
        height: 25px;
    }
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px 5px;
    border-top: 2px dashed var(--neon-green);
    font-size: clamp(0.7rem, 2vw, 0.8rem);
}

footer a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--neon-pink);
}

.glitch {
    animation: simple-glitch 2s infinite;
}

@keyframes simple-glitch {
    0%, 100% { text-shadow: 2px 0 var(--neon-red), -2px 0 var(--neon-blue); }
    50% { text-shadow: -2px 0 var(--neon-red), 2px 0 var(--neon-blue); }
}