﻿
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

  .header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .header p {
    opacity: 0.9;
    font-size: 0.95rem;
  }

.progress-bar {
  background: #e0e0e0;
  height: 8px;
  position: relative;
}

.progress-fill {
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  padding: 8px;
  font-size: 0.85rem;
  color: #666;
  background: #f5f5f5;
}

.content {
  padding: 30px;
}

.section {
  display: none;
  animation: fadeIn 0.4s ease;
}

  .section.active {
    display: block;
  }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  background: #1e3c72;
  color: white;
  padding: 15px 20px;
  margin: -30px -30px 25px -30px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group {
  margin-bottom: 20px;
}

  .form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="number"],
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
  }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: #667eea;
    }

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

  .checkbox-item:hover {
    background: #e9ecef;
  }

  .checkbox-item input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
  }

  .checkbox-item label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-weight: normal;
  }

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

  .radio-item:hover {
    background: #e9ecef;
  }

  .radio-item.selected {
    background: #e3f2fd;
    border-color: #2196F3;
  }

  .radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
  }

  .radio-item label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-weight: normal;
  }

.navigation {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  }

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

  .btn-secondary:hover {
    background: #e0e0e0;
  }

.btn-success {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
}

  .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
  }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.info-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 0 8px 8px 0;
}

  .info-box p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
  }

.results-section {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  margin-top: 20px;
}

.score-display {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 12px;
  margin-bottom: 20px;
}

.score-number {
  font-size: 4rem;
  font-weight: bold;
  color: #1e3c72;
}

.score-label {
  font-size: 1.2rem;
  color: #666;
  margin-top: 10px;
}

.maturity-level {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 15px;
}

.level-base {
  background: #ffebee;
  color: #c62828;
}

.level-intermediate {
  background: #fff3e0;
  color: #ef6c00;
}

.level-advanced {
  background: #e8f5e9;
  color: #2e7d32;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

  .file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
  }

.file-input-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #6c757d;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

  .file-input-label:hover {
    background: #5a6268;
  }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.textarea-full {
  width: 100%;
  min-height: 100px;
  resize: vertical;
}

.section-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  background: #f5f5f5;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s;
}

  .dot.active {
    background: #667eea;
    transform: scale(1.2);
  }

  .dot.completed {
    background: #4CAF50;
  }

@media (max-width: 768px) {
  .header h1 {
    font-size: 1.4rem;
  }

  .content {
    padding: 20px;
  }

  .section-title {
    margin: -20px -20px 20px -20px;
    padding: 12px 15px;
    font-size: 1rem;
  }

  .navigation {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .score-number {
    font-size: 3rem;
  }
}

.hidden {
  display: none !important;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

