:root {
  --primary-color: #1a3e0a;
  --secondary-color: #25550f;
  --success-color: #10b981;

  --text-color: #374151;
  --text-dark: #1f2937;
  --light-gray: #f9f9f7;
  --dark-gray: #6b7280;
  --border-color: #d1d5db;

  --button-primary: #1a3e0a;
  --button-hover: #25550f;

  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --focus-shadow: 0 0 0 3px rgba(26, 62, 10, 0.1);
  --button-focus-shadow: 0 0 0 3px rgba(26, 62, 10, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  background-color: #f9f9f7;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  top: 50px;
  width: 100%;
  margin: 0 auto;
  background-color: transparent;
  align-items: center;
  box-shadow: 0 4px 16px rgba(26, 62, 10, 0.08);
}

.logo {
  font-weight: bold;
  color: #1a3e0a;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: #1a3e0a;
  text-decoration: none;
  font-weight: 500;
}

.language-toggle {
  background: none;
  border: 2px solid #1a3e0a;
  color: #1a3e0a;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.language-toggle:hover {
  background-color: #1a3e0a;
  color: white;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  position: relative;
  padding: 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    transparent 70%,
    #f9f9f7 100%
  );
  z-index: -1;
}

.circles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -2;
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 62, 10, 0.12);
  transform-origin: center;
  box-shadow: 0 0 40px rgba(26, 62, 10, 0.03);
}

.circle-1 {
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  border-width: 1px;
  border-color: rgba(26, 62, 10, 0.08);
  animation: rotate 120s linear infinite;
}

.circle-2 {
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  border-width: 2px;
  border-color: rgba(26, 62, 10, 0.1);
  animation: rotate 90s linear infinite reverse;
}

.circle-3 {
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
  border-width: 2.5px;
  border-color: rgba(26, 62, 10, 0.15);
  animation: rotate 60s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.heading {
  margin-bottom: 2rem;
  font-size: 5rem;
  line-height: 1.1;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s forwards 0.3s;
}

.heading span {
  display: inline-block;
}

.heading .we {
  color: #1a1a1a;
  font-style: italic;
}

.heading .you {
  color: #1a3e0a;
  text-decoration: underline;
  text-underline-offset: 10px;
}

.description {
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  color: #444;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s forwards 0.6s;
}

.stats {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s forwards 0.9s;
}

.cta-button {
  background-color: #1a3e0a;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s forwards 1.2s;
}

.cta-button:hover {
  background-color: #25550f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .heading {
    font-size: 3.5rem;
  }

  .description {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .heading {
    font-size: 2.5rem;
  }

  .description {
    font-size: 0.9rem;
  }
}

/* Contenedores principales */
.prsa_container,
.relief_container {
  max-width: 900px;
  margin: 0 auto 40px;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 30px;
}

.prsa_container {
  margin-top: -25px;
}

/* Encabezados */
.prsa_heading,
.relief_heading {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 28px;
}

.prsa_subtitle,
.relief_subtitle {
  text-align: center;
  color: var(--dark-gray);
  margin-bottom: 32px;
  font-size: 16px;
}

/* Grid de la calculadora PRSA */
.prsa_calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .prsa_calculator-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.prsa_calculator-section {
  background-color: white;
  border-radius: 8px;
}

.prsa_section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary-color);
}

/* Grupos de entradas para PRSA */
.prsa_input-group {
  margin-bottom: 20px;
}

.prsa_input-label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}

.prsa_slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prsa_slider {
  flex-grow: 1;
  height: 5px;
  background-color: var(--light-gray);
  border-radius: 5px;
  appearance: none;
}

.prsa_slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
}

.prsa_slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
}

.prsa_number-input {
  width: 70px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

/* Resultados PRSA */
.prsa_results-card {
  background-color: var(--light-gray);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.prsa_result-item {
  margin-bottom: 12px;
}

.prsa_result-label {
  font-size: 14px;
  color: var(--dark-gray);
  margin-bottom: 2px;
}

.prsa_result-value {
  font-size: 20px;
  font-weight: 700;
}

.prsa_prsa-value {
  color: var(--success-color);
}

.prsa_taxed-value {
  color: var(--secondary-color);
}

.prsa_diff-value {
  color: var(--primary-color);
}

.prsa_divider {
  height: 1px;
  background-color: #ddd;
  margin: 12px 0;
}

.prsa_disclaimer {
  font-size: 12px;
  color: var(--dark-gray);
  font-style: italic;
}

.prsa_chart-container {
  height: 300px;
  margin-top: 30px;
}

#prsa_calculatorChart {
  width: 100%;
  height: 100%;
}

/* Estilos para la calculadora de Relief */
.relief_form-section {
  margin-bottom: 30px;
}

.relief_form-group {
  margin-bottom: 20px;
}

.relief_form-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-color);
}

.relief_form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
  color: var(--text-dark);
  transition: border-color 0.2s;
}

.relief_form-input:focus {
  outline: none;
  border-color: var(--button-primary);
  box-shadow: var(--focus-shadow);
}

.relief_hint-text {
  display: block;
  font-size: 14px;
  color: var(--dark-gray);
  margin-top: 4px;
}

.relief_tax-rate-group {
  margin-bottom: 20px;
}

.relief_radio-group {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.relief_radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.relief_radio-option input {
  margin: 0;
}

.relief_calculate-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: var(--button-primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.relief_calculate-btn:hover {
  background-color: var(--button-hover);
}

.relief_calculate-btn:focus {
  outline: none;
  box-shadow: var(--button-focus-shadow);
}

.relief_results-section {
  background-color: var(--light-gray);
  border-radius: 6px;
  padding: 30px;
  display: none;
}

.relief_results-section.visible {
  display: block;
}

.relief_result-header {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.relief_relief-amount {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  color: #047857;
  margin-bottom: 30px;
}

.relief_result-details {
  background-color: white;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}

.relief_detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 16px;
}

.relief_detail-item:last-child {
  margin-bottom: 0;
}

.relief_detail-label {
  color: var(--dark-gray);
}

.relief_detail-value {
  font-weight: 500;
  color: var(--text-dark);
}

.relief_info-text {
  font-size: 14px;
  color: var(--dark-gray);
  font-style: italic;
  text-align: center;
}

.relief_error-message {
  color: #dc2626;
  font-size: 14px;
  margin-top: 4px;
  display: none;
}

.relief_error-message.visible {
  display: block;
}

footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  margin-top: 50px;
}

/* Hide eements based on language */
.lang-en {
  display: block;
}
.lang-ga {
  display: none;
}

html[lang="ga"] .lang-en {
  display: none;
}
html[lang="ga"] .lang-ga {
  display: block;
}

/* Sección del waitlist - CORREGIDO */
.waitlist_container {
  width: 100%;
  display: none; 
  flex-flow: row wrap;
  align-items: center;
  place-content: center;
  padding: 20px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
.waitlist_container.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.form-container {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 450px;
  position: relative;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.waitlist_container.show .form-container {
  transform: scale(1);
}

.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4a7c59, #5d8f6b);
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}
.form-title {
  font-size: 28px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.form-subtitle {
  color: #718096;
  font-size: 16px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  background-color: #ffffff;
}

.form-input:focus {
  outline: none;
  border-color: #4a7c59;
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-input::placeholder {
  color: #a0aec0;
}

.form-textarea {
  resize: none;
  min-height: 100px;
  font-family: inherit;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #4a7c59, #5d8f6b);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #3e6b4d, #4a7c59);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.trust-text {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #718096;
}

@media (max-width: 480px) {
  .form-container {
    padding: 24px;
  }

  .form-title {
    font-size: 24px;
  }
}
