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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.hero-image {
    margin-bottom: 20px;
}

.title-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

header h2 {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 25px;
}

.intro {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    text-align: center;
}

.intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.event-info {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #667eea;
}

.info-card p {
    font-size: 1rem;
    color: #555;
}

.registration {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.registration h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #667eea;
    text-align: center;
}

.registration-intro {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-label:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 28px;
    height: 28px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
    flex-shrink: 0;
    min-width: 28px;
    min-height: 28px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.1);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    color: white;
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    line-height: 1;
}

.checkbox-label input[type="checkbox"]:checked {
    + .checkbox-custom ~ span {
        color: #667eea;
        font-weight: 600;
    }
}

.checkbox-label input[type="checkbox"]:checked {
    ~ span:not(.checkbox-custom) {
        color: #667eea;
        font-weight: 600;
    }
}

.checkbox-label span:not(.checkbox-custom) {
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.checkbox-label[data-special="none"] {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.checkbox-label[data-special="none"]:hover {
    background: #ffeaa7;
}

.checkbox-label[data-special="none"] input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    border-color: #d63031;
}

.captcha {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

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

.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.success-block {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    background: white;
    color: #00b894;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.success-block h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.success-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.95;
}

.btn-reload {
    background: white;
    color: #00b894;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-reload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    background: #f8f9fa;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 1.7rem;
    }

    header h2 {
        font-size: 1rem;
    }

    .info-card,
    .registration {
        padding: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }
}