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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    padding: 20px;
    color: #333;
     overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: visible;
    position: relative;
}

header {
    background: url('images/banner.png') no-repeat center center;
    background-size: 60% auto;
    height: 260px;
    width: 200%;
    margin-left: -50%;
    position: relative;
    z-index: 10;
    margin-bottom: -30px;
    margin-top: -10px;
}

.form-intro {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e8ed;
    padding-top: 30px;
}

.form-intro h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c5aa0;
    font-weight: 400;
}

.form-intro p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
}


form {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c5aa0;
    font-size: 1.1rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    cursor: pointer;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background-color: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.2);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #4a90e2 0%, #2c5aa0 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

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

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.success-message {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 30px;
    text-align: center;
    margin: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.error-message {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
    color: white;
    padding: 30px;
    text-align: center;
    margin: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.success-message h3,
.error-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    header {
        height: 160px;
        width: 220%;
        margin-left: -60%;
    }
    
    .form-intro h1 {
        font-size: 1.2rem;
    }
    
    
    form {
        padding: 30px 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .success-message,
    .error-message {
        margin: 20px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    header {
        height: 140px;
        width: 250%;
        margin-left: -75%;
    }
    
    .form-intro h1 {
        font-size: 1rem;
    }
    
    .form-intro p {
        font-size: 1rem;
    }
    
    form {
        padding: 20px 15px;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 1.1rem;
    }
    .rules-text {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #4a90e2;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
    border-radius: 4px;
}
}