* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  background: #f5f7fa;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #0a9396;
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.subtitle {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 300;
  color: #e0f2f1;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
}

.input-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

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

button {
  width: 100%;
  padding: 1rem;
  background-color: #0a9396;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #00797a;
}

.result-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: #e0f7f5;
  color: #064e3b;
  max-width: 400px;
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
}

.hidden {
  display: none;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #e0e0e0;
  font-size: 0.9rem;
}

.mensagem-erro {
  background-color: #f39494; 
  color: rgb(252, 250, 250);
  padding: 1rem;
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
  position: relative;
}

.mensagem-sucesso {
  color: #064e3b;
  font-weight: bold;
}

.tooltip {
  display: inline-block;
  position: relative;
  margin-top: 0.5rem;
  cursor: help;
}

.tooltip svg {
  vertical-align: middle;
  margin-left: 0.5rem;
}

.tooltip-text {
  visibility: hidden;
  background-color: #fef3c7;
  color: #333;
  text-align: left;
  border-radius: 6px;
  padding: 0.8rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  white-space: pre-line;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
