/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #1C7C4E;
  --primary-green-dark: #155A38;
  --solar-yellow: #F4B400;
  --solar-orange: #FFB300;
  --neutral-light: #FAFAFA;
  --neutral-gray: #F5F5F5;
  --neutral-dark: #2D2D2D;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #1C7C4E 0%, #22965E 50%, #F4B400 100%);
  min-height: 100vh;
  color: var(--neutral-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--neutral-dark);
}

/* Container principal */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card do formulário */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
  margin: 20px 0;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header com logo */
.header {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 32px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #1C7C4E;
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 32px;
  line-height: 1.6;
  font-weight: 500;
}

/* Form Groups */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--neutral-dark);
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(28, 124, 78, 0.1);
}

.form-input::placeholder {
  color: #999;
}

.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.3s ease;
  background: var(--white);
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(28, 124, 78, 0.1);
}

.form-textarea::placeholder {
  color: #999;
}

.form-input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Botões */
.btn {
  width: 100%;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(28, 124, 78, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 124, 78, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Prova social */
.social-proof {
  text-align: center;
  margin-top: 20px;
  padding: 12px;
  background: rgba(28, 124, 78, 0.05);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--primary-green);
  font-weight: 600;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  font-size: 12px;
  color: #999;
}

.footer a {
  color: var(--primary-green);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Error Banner */
.error-banner {
  background: #fee;
  border: 2px solid #fcc;
  color: #c33;
  padding: 12px;
  border-radius: var(--radius);
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Responsivo */
@media (max-width: 640px) {
  .form-card {
    padding: 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .container {
    padding: 12px;
  }
}

/* Loading spinner */
.spinner {
  border: 3px solid var(--neutral-gray);
  border-top: 3px solid var(--primary-green);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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