:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --light-accent: #f8d7da;
  --success: #27ae60;
  --background: #f8f9fa;
  --text: #333;
  --light-gray: #e9ecef;
  --border: #dee2e6;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--background);
  padding-bottom: 60px;
}

header {
  background: linear-gradient(135deg, var(--primary), #1a2530);
  color: white;
  padding: 2.5rem 0;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

h2 {
  color: var(--primary);
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
}

h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

.warning {
  background-color: var(--light-accent);
  border-left: 6px solid var(--accent);
  padding: 1.2rem;
  margin-bottom: 1.8rem;
  border-radius: 0 8px 8px 0;
  font-weight: 500;
  color: #721c24;
}

.test-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin: 2rem 0;
}

.test-option {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 1.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.test-option:hover {
  transform: translateY(-8px);
  border-color: var(--secondary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.test-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.test-option h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.btn {
  display: inline-block;
  background-color: var(--secondary);
  color: white;
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
  background-color: #2980b9;
  transform: scale(1.05);
}

.question {
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background-color: var(--light-gray);
  border-radius: 8px;
  border-left: 4px solid var(--secondary);
}

.question p {
  margin-bottom: 0.8rem;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.option-label {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  min-width: 120px;
}

.option-label:hover {
  background-color: #e3f2fd;
  border-color: var(--secondary);
  transform: translateY(-2px);
}

input[type="radio"] {
  margin-right: 0.6rem;
}

.results {
  margin-top: 2rem;
  padding: 1.8rem;
  background-color: #e8f5e8;
  border-radius: 10px;
  border-left: 5px solid var(--success);
}

.score-bar {
  height: 24px;
  background-color: #ddd;
  border-radius: 12px;
  margin: 1rem 0;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #27ae60);
  border-radius: 12px;
  transition: width 1s ease;
}

footer {
  background-color: var(--primary);
  color: white;
  padding: 2rem 0;
  margin-top: 2rem;
}

footer p {
  color: white !important;
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .test-options {
    grid-template-columns: 1fr;
  }

  .options {
    flex-direction: column;
  }

  .option-label {
    width: 100%;
  }
}