/* GENERAL LAYOUT */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f5f6fa;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* HEADER */
header {
  width: 100%;
  background: white;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 50px;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
}

/* NAVIGATION */
nav {
  margin-top: 10px;
  display: flex;
  gap: 20px;
}

.tab-link {
  background: none;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  border-bottom: 3px solid transparent;
  transition: 0.3s;
}

.tab-link:hover,
.tab-link.active {
  color: #e67e22;
  border-color: #e67e22;
}

/* MAIN */
.container {
  max-width: 700px;
  text-align: center;
  padding: 60px 20px;
}

h1 {
  font-size: 3rem;
  color: #2c3e50;
}

h2 {
  color: #e67e22;
  margin-bottom: 40px;
}

/* SECTIONS */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

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

/* QUESTIONNAIRE */
#riskForm {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.question {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: 0.25s;
}

.question:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

select {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.btn {
  padding: 14px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #2c3e50;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

.btn:hover {
  background: #1b2936;
}

.result-box {
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* FOOTER */
footer {
  margin-top: auto;
  padding: 20px 0;
  color: #777;
}

/* ANIMATION */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
