:root {
  --unifil-orange: #FF5B00;
  --unifil-orange-light: #FF8040;
  --unifil-green: #1BBC9B;
  --unifil-white: #fff;
  --unifil-gray: #f5f5f5;
  --unifil-dark: #333;
  --unifil-orange-gradient: linear-gradient(-45deg, #FF5B00 0%, #FE9252 75%);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--unifil-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.container {
  background: var(--unifil-white);
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 2.5rem;
  margin: 1rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);

}

.logo {
  height: 50px;
  margin-bottom: 0.5rem;
}

h1 {
  color: var(--unifil-dark);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  color: #555;
  font-size: 1rem;
  line-height: 1.3rem;
  margin-bottom: 1.5rem;
}

p span {
  color: var(--unifil-orange);
  font-weight: 600;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-wrapper {
  position: relative;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease;
  box-sizing: border-box;
  background-color: white;
}

input:focus,
select:focus {
  border-color: var(--unifil-orange);
}

input.error,
select.error {
  border-color: var(--unifil-orange);
  box-shadow: 0 0 15px rgba(255, 91, 0, 0.2);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select option[value=""] {
  color: #999;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
  margin-top: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: 0.2rem;
  cursor: pointer;
  border: 2px solid #ccc;
  border-radius: 0.25rem;
  background-color: white;
  transition: all 0.3s ease;
  position: relative;
}

.checkbox-wrapper input[type="checkbox"]:hover {
  border-color: var(--unifil-orange-light);
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background-color: var(--unifil-orange);
  border-color: var(--unifil-orange);
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-wrapper label {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  cursor: pointer;
}

.checkbox-wrapper label a {
  color: var(--unifil-orange);
  text-decoration: none;
}

.checkbox-wrapper label a:hover {
  text-decoration: underline;
}

.checkbox-wrapper.error label {
  color: var(--unifil-orange);
}

.error-message {
  color: var(--unifil-orange);
  font-size: 0.85rem;
  text-align: left;
  margin-top: 0.3rem;
  display: none;
}

.error-message.show {
  display: block;
}

button {
  background: var(--unifil-orange-gradient);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

button:hover {
  background: var(--unifil-orange-light);
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.footer {
  font-size: 0.85rem;
  color: #999;
  margin-top: 1rem;
}

.mensagem {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--unifil-orange);
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: fadeIn 0.5s ease forwards;
}

.mensagem.sucesso {
  color: var(--unifil-green);
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--unifil-orange);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

.check-icon {
  font-size: 1.2rem;
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}