/**
 * Formulario de Oportunidades laborales - estilos del tema Makro
 * Colores y tipografía alineados con el tema (Oswald/Sora, #008d36)
 */

.makro-oportunidades-wrap {
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  font-family: 'Oswald', 'Sora', 'Inter', sans-serif;
}

.makro-oportunidades-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #1e1e1e;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.makro-oportunidades-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.makro-oportunidades-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .makro-oportunidades-row--two {
    flex-direction: row;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.makro-oportunidades-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.makro-oportunidades-field label {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #374151;
}

.makro-oportunidades-field--required label::after {
  content: " *";
  color: #b91c1c;
}

.makro-oportunidades-field input[type="text"],
.makro-oportunidades-field input[type="email"],
.makro-oportunidades-field select,
.makro-oportunidades-field textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: 'Oswald', 'Sora', sans-serif;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  color: #1e1e1e;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.makro-oportunidades-field input:focus,
.makro-oportunidades-field select:focus,
.makro-oportunidades-field textarea:focus {
  outline: none;
  border-color: #008d36;
  box-shadow: 0 0 0 3px rgba(0, 141, 54, 0.15);
}

.makro-oportunidades-field textarea {
  min-height: 80px;
  resize: vertical;
}

.makro-oportunidades-field--checkbox {
  flex-direction: row;
  align-items: flex-start;
}

.makro-oportunidades-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}

.makro-oportunidades-field--checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  accent-color: #008d36;
}

.makro-oportunidades-actions {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.makro-oportunidades-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  color: #fff;
  background-color: #008d36;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.makro-oportunidades-btn:hover {
  background-color: #00712b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 141, 54, 0.3);
}

.makro-oportunidades-btn:focus-visible {
  outline: 2px solid #008d36;
  outline-offset: 2px;
}

.makro-oportunidades-success {
  padding: 2rem;
  text-align: center;
}

.makro-oportunidades-success-msg {
  font-family: 'Oswald', 'Sora', sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #374151;
}

.makro-oportunidades-error {
  padding: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
  color: #b91c1c;
  font-family: 'Oswald', 'Sora', sans-serif;
}

.makro-oportunidades-notice {
  padding: 1rem;
  border-radius: 0.375rem;
  font-family: 'Oswald', 'Sora', sans-serif;
  margin-bottom: 1rem;
}

.makro-oportunidades-notice--warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* Contenedor en páginas con fondo oscuro del tema */
body .makro-oportunidades-wrap {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body .makro-oportunidades-success .makro-oportunidades-success-msg {
  color: #1e1e1e;
}
