/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #25A7DF;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
#home-page .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}
#home-page .footer {
    margin-top: 0;
}

/* Стили для страниц */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Главная страница */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.header-img {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 24px auto;
    display: block;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
}

.main-content {
    text-align: center;
    margin-bottom: 40px;
}

.qr-section {
    margin-bottom: 40px;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: transparent;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.qr-sign-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 50px;
}

.qr-sign-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0,0,0,0.10);
    max-width: 280px;
    text-align: left;
}

@media (max-width: 700px) {
    .qr-sign-row { flex-direction: column; gap: 18px; }
    .qr-sign-text { font-size: 1.2rem; max-width: 90vw; }
}

.sponsors-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 36px;
    overflow-x: auto;
}

.sponsors-row img {
    height: 4em;
    max-width: auto;
    filter: none; /* цветные лого */
    opacity: 1;
    background: transparent;
}

.register-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.6);
}

/* Форма регистрации */
.progress-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active {
    background: #ff6b6b;
    box-shadow: 0 0 20px rgba(255,107,107,0.5);
}

.step-content {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.step-content.active {
    display: block;
}

.step-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
}

.step-image {
    text-align: center;
    margin-bottom: 30px;
}

.form-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    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: #4285f4;
    box-shadow: 0 0 0 3px rgba(66,133,244,0.1);
}

.field-hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Кнопки выбора */
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gender-btn,
.status-btn {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
}

.gender-btn:hover,
.status-btn:hover {
    border-color: #4285f4;
    background: #f8f9ff;
}

.gender-btn.selected,
.status-btn.selected {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

/* Радиокнопки для типа участия */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


/* Контейнер — в одну колонку */
#participation-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Сами «кнопки» */
#participation-options .checkbox-item {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover точно как у gender-btn */
#participation-options .checkbox-item:hover {
    border-color: #4285f4;
    background: #f8f9ff;
}

/* Состояние «selected» */
#participation-options .checkbox-item.selected {
    background: #4285f4;
    border-color: #4285f4;
    color: #ffffff;
}

/* Скрываем оригинальные радиокнопки и маркеры */
#participation-options .checkbox-item input[type="radio"],
#participation-options .checkbox-item .checkmark {
    display: none;
}

#family-status-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  #family-status-options .checkbox-item {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* hover */
  #family-status-options .checkbox-item:hover {
    border-color: #4285f4;
    background: #f8f9ff;
  }
  
  /* selected */
  #family-status-options .checkbox-item.selected {
    background: #4285f4;
    border-color: #4285f4;
    color: #fff;
  }
  
  /* скрываем радио и маркер */
  #family-status-options .checkbox-item input[type="radio"],
  #family-status-options .checkbox-item .checkmark {
    display: none;
  }
/* Навигационные кнопки */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-secondary,
.btn-primary {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-primary {
    background: #4285f4;
    color: white;
}

.btn-primary:hover {
    background: #3367d6;
    transform: translateY(-1px);
}

/* Футер */
.footer {
    text-align: center;
    margin-top: 40px;
}

.sponsors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sponsors img {
    height: 60px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.sponsors img:hover {
    opacity: 1;
}

/* Страница успеха */
.success-content {
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.success-content h2 {
    color: #4caf50;
    margin-bottom: 20px;
    font-size: 2rem;
}

.success-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #666;
}

#registration-id {
    font-weight: bold;
    color: #333;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Дети */
.child-group {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.child-group h4 {
    margin-bottom: 15px;
    color: #333;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .step-content {
        padding: 25px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .gender-btn,
    .status-btn {
        min-width: auto;
    }
    
    .navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .sponsors {
        gap: 15px;
    }
    
    .sponsors img {
        height: 50px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content.active {
    animation: fadeIn 0.5s ease;
}
/* Выделенный вариант участия */
.checkbox-item.selected {
    background: #4285f4;
    border-color: #4285f4;
    color: white;
}
.checkbox-item.selected .participation-label {
    color: white;
}
@media (max-width: 768px) {
    .step-content.step-7 .form-group {
        margin-bottom: 20px;
    }
    .step-content.step-7 .navigation {
        flex-direction: column;
        gap: 10px;
    }
}
 html, body {
         height: 100%;
     }
     #home-page .container {
         display: flex;
         flex-direction: column;
         min-height: 100vh;
     }
     #home-page .footer {
         margin-top: auto;
     }

      .checkbox-item.selected {
          background: #4285f4;
          border-color: #4285f4;
      }
      .checkbox-item.selected .participation-label,
      .checkbox-item.selected span {
          color: white;
          font-weight: 600;
      }
      .checkbox-item.selected .checkmark {
          background: white;
          border-color: white;
      }
      .checkbox-item.selected .checkmark::after {
          background: #4285f4;
      }
      /* === Confirmation page checkboxes === */
#confirmation-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 600px;       /* ограничиваем ширину для широких экранов */
    margin: 0 auto;         /* по центру */
  }
  
  #confirmation-options .checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
  }
  #confirmation-options .checkbox-item:hover {
    background: #f8f9ff;
    border-color: #4285f4;
  }
  
  /* Скрываем нативный чекбокс */
  #confirmation-options .checkbox-item input[type="checkbox"] {
    display: none;
  }
  
  /* Стили для кастомной галочки */
  #confirmation-options .checkbox-item .checkmark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 12px;
    transition: background 0.3s, border-color 0.3s;
  }
  
  /* Состояние “отмечен” */
  #confirmation-options .checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: #4285f4;
    border-color: #4285f4;
  }
  #confirmation-options .checkbox-item input[type="checkbox"]:checked + .checkmark + .label-text {
    font-weight: 600;
    color: #333;
  }
  
  /* Адаптив: на узких экранах текст переносится */
  @media (max-width: 480px) {
    #confirmation-options .checkbox-item {
      padding: 10px 15px;
    }
    #confirmation-options .checkbox-item .label-text {
      font-size: 14px;
    }
  }