/**
 * BIOSHOCK / ART DECO THEME - СТРАНИЦА РЕГИСТРАЦИИ
 * Эстетика подводного города Восторг
 * Цветовая схема: бронза, латунь, глубокий синий, кремовый
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500&display=swap');

/* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ ===== */
:root {
    --gold-primary: #d4af37;        /* Латунь/золото */
    --gold-dim: #b08d57;             /* Состаренная бронза */
    --gold-dark: #8b7355;            /* Темная бронза */
    --copper: #b87333;                /* Медь */
    --deep-teal: #1a3b4f;             /* Глубокий сине-зеленый (вода) */
    --deep-teal-light: #2c5a70;       /* Светлый вариант воды */
    --wine: #722f37;                   /* Бордовый акцент */
    --wine-dim: #8b4c4c;               /* Приглушенный бордовый */
    --cream: #f5ecd9;                   /* Кремовый, цвет слоновой кости */
    --parchment: #e8dcc0;               /* Цвет старого пергамента */
    --ivory: #fffff0;                    /* Слоновая кость */
    --charcoal: #2c2c2c;                  /* Темно-серый для текста */
    --charcoal-light: #4a4a4a;            /* Светло-серый */
    --art-deco-border: #c0b7a8;           /* Цвет границ */
    --input-bg: rgba(255, 255, 255, 0.9); /* Фон полей ввода */
}

/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, var(--ivory) 100%);
    color: var(--charcoal);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Декоративные элементы в стиле ар-деко */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            rgba(212, 175, 55, 0.02) 0px,
            rgba(212, 175, 55, 0.02) 10px,
            transparent 10px,
            transparent 20px
        );
    pointer-events: none;
    z-index: -1;
}

/* ===== КОНТЕЙНЕР РЕГИСТРАЦИИ ===== */
.register-container {
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px var(--gold-dim),
        0 0 0 4px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.register-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--deep-teal), var(--gold-primary));
}

.register-card::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

/* ===== ШАПКА ===== */
.register-header {
    background: linear-gradient(135deg, var(--deep-teal) 0%, #0f2c3a 100%);
    padding: 30px;
    text-align: center;
    position: relative;
    border-bottom: 3px solid var(--gold-primary);
}

.register-header::before {
    content: "⚜️";
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 2rem;
    opacity: 0.2;
    transform: rotate(-15deg);
}

.register-header::after {
    content: "⚜️";
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.2;
    transform: rotate(15deg);
}

.register-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--gold-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.register-header p {
    color: var(--cream);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ===== ТЕЛО ===== */
.register-body {
    padding: 40px;
}

/* ===== ИНДИКАТОР ШАГОВ ===== */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 75px;
    right: 75px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-dim), var(--deep-teal), var(--gold-dim));
    z-index: 1;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--gold-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    color: var(--charcoal-light);
    transition: all 0.3s;
}

.step.active .step-number {
    border-color: var(--gold-primary);
    background: var(--gold-primary);
    color: var(--deep-teal);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.step.completed .step-number {
    border-color: var(--deep-teal);
    background: var(--deep-teal);
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: var(--charcoal-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step.active .step-label {
    color: var(--deep-teal);
    font-weight: 600;
}

/* ===== АЛЕРТЫ ===== */
.alert {
    border-left: 4px solid;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.alert-danger {
    border-left-color: var(--wine);
    color: var(--wine);
}

.alert-info {
    border-left-color: var(--deep-teal);
    color: var(--deep-teal);
}

.alert-success {
    border-left-color: #2e7d32;
    color: #1b5e20;
}

.alert-warning {
    border-left-color: var(--gold-primary);
    color: var(--gold-dark);
}

/* ===== ФОРМА ===== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--deep-teal);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group label::before {
    content: "⚜️ ";
    color: var(--gold-primary);
    font-size: 0.8rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--input-bg);
    border: 1px solid var(--art-deco-border);
    border-radius: 4px;
    color: var(--charcoal);
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder {
    color: var(--charcoal-light);
    opacity: 0.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

/* ===== ФАЙЛОВЫЕ ОБЛАСТИ ===== */
.file-upload-area {
    border: 2px dashed var(--gold-dim);
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.02);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--gold-dim);
    margin-bottom: 10px;
}

.file-upload-text {
    color: var(--charcoal-light);
    font-size: 1rem;
}

.file-upload-hint {
    color: var(--gold-dim);
    font-size: 0.85rem;
    margin-top: 5px;
}

.file-preview {
    margin-top: 15px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--gold-dim);
    border-radius: 4px;
    display: none;
    align-items: center;
    gap: 10px;
}

.file-preview.show {
    display: flex;
}

.file-preview-icon {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.file-preview-name {
    flex: 1;
    color: var(--deep-teal);
    font-size: 0.95rem;
}

.file-preview-size {
    color: var(--charcoal-light);
    font-size: 0.85rem;
}

.file-preview-remove {
    color: var(--wine);
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
}

.file-preview-remove:hover {
    color: var(--wine-dim);
}

/* ===== КАТЕГОРИИ НАПРАВЛЕНИЙ ===== */
.category-section {
    margin-bottom: 20px;
    border: 1px solid var(--art-deco-border);
    border-radius: 4px;
    overflow: hidden;
}

.category-header {
    background: linear-gradient(135deg, var(--deep-teal) 0%, #0f2c3a 100%);
    padding: 12px 20px;
    font-size: 1.1rem;
    color: var(--gold-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-header:hover {
    opacity: 0.95;
}

.category-header i {
    transition: transform 0.3s;
    color: var(--gold-primary);
}

.category-header.collapsed i {
    transform: rotate(-90deg);
}

.category-content {
    padding: 20px;
    background: white;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.category-content.collapsed {
    display: none;
}

.contest-item {
    background: rgba(245, 236, 217, 0.3);
    border: 1px solid var(--art-deco-border);
    border-radius: 4px;
    padding: 10px 12px;
    transition: all 0.3s;
}

.contest-item:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
}

.contest-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.contest-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--gold-primary);
}

.contest-name {
    color: var(--deep-teal);
    font-size: 0.95rem;
    flex: 1;
}

.contest-description {
    font-size: 0.8rem;
    color: var(--charcoal-light);
    margin-left: 28px;
    margin-top: 5px;
    font-style: italic;
}

.selected-count {
    color: var(--gold-primary);
    font-size: 0.95rem;
    margin-left: 10px;
    font-weight: 600;
}

.limit-info {
    color: var(--wine);
    font-size: 0.85rem;
    margin-top: 8px;
    border-left: 2px solid var(--wine);
    padding-left: 12px;
    background: rgba(114, 47, 55, 0.05);
    padding: 10px;
    border-radius: 4px;
}

/* ===== КНОПКИ ===== */
.btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid var(--gold-primary);
    border-radius: 4px;
    color: var(--gold-primary);
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn:hover:not(:disabled) {
    background: var(--gold-primary);
    color: var(--deep-teal);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--charcoal-light);
    color: var(--charcoal-light);
}

/* ===== ССЫЛКА НАЗАД ===== */
.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: var(--charcoal-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.back-link a:hover {
    color: var(--gold-primary);
}

/* ===== ФАЙЛОВАЯ ИНФОРМАЦИЯ ===== */
.file-info {
    color: var(--charcoal-light);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* ===== ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ ===== */
.decorative-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    width: 100px;
    margin: 20px auto;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .register-body {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .category-content {
        grid-template-columns: 1fr;
    }
    
    .register-header h1 {
        font-size: 1.5rem;
    }
    
    .step-indicator::before {
        left: 50px;
        right: 50px;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
}
/* Стили для вкладок выбора образования */
.education-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.edu-tab {
    flex: 1;
    padding: 15px 20px;
    background: white;
    border: 2px solid var(--art-deco-border, #c0b7a8);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.edu-tab:hover {
    border-color: var(--gold-primary, #d4af37);
}

.edu-tab.active {
    background: var(--gold-primary, #d4af37);
    border-color: var(--gold-primary, #d4af37);
    color: var(--deep-teal, #1a3b4f);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.institution-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--art-deco-border, #c0b7a8);
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    margin-bottom: 20px;
}

.institution-select:focus {
    outline: none;
    border-color: var(--gold-primary, #d4af37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.institution-select option {
    padding: 10px;
}
/* ===== ОБЩИЙ БЛОК НАПРАВЛЕНИЙ ===== */
.all-contests {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 15px 0;
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(245, 236, 217, 0.2);
    border: 1px solid var(--art-deco-border);
    border-radius: 8px;
}

.all-contests .contest-item {
    background: white;
    border: 1px solid var(--art-deco-border);
    border-radius: 6px;
    padding: 12px;
    transition: all 0.2s;
}

.all-contests .contest-item:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.all-contests .contest-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.all-contests .contest-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--gold-primary);
}

.all-contests .contest-name {
    flex: 1;
    color: var(--deep-teal);
    font-size: 0.95rem;
    line-height: 1.4;
}

.all-contests .contest-category {
    display: inline-block;
    color: var(--gold-dim);
    font-size: 0.75rem;
    margin-left: 5px;
    font-weight: normal;
}

.all-contests .contest-description {
    margin-left: 28px;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--charcoal-light);
    font-style: italic;
    line-height: 1.3;
}

/* Индикатор выбора */
.all-contests .contest-item.selected {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold-primary);
}

/* Скролл для блока */
.all-contests::-webkit-scrollbar {
    width: 8px;
}

.all-contests::-webkit-scrollbar-track {
    background: var(--cream);
    border-radius: 4px;
}

.all-contests::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 4px;
}

.all-contests::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .all-contests {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
}
