:root {
  --primary-color: #00a7c6;
  --primary-light: #3b82f6;
  --secondary-color: #023e84;
  --secondary-light: #0056b8;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 50%,
    var(--secondary-color) 100%
  );
  min-height: 100vh;
  padding: 3rem 0;
}

.form-container {
  max-width: 900px;
  margin: 0 auto;
}

.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.card-header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 3rem 2.5rem;
  border: none;
}

.card-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card-header p {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 0;
  line-height: 1.6;
}

.card-body {
  padding: 3rem 2.5rem;
}

.form-label {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-control,
.form-select {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.15);
}

.form-text {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.375rem;
}

.btn-submit {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border: none;
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
  width: 100%;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
  background: linear-gradient(135deg, #1e3a8a, var(--primary-color));
}

.required {
  color: #dc2626;
}

.footer-note {
  color: white;
  text-align: center;
  margin-top: 2rem;
  opacity: 0.9;
  font-size: 0.875rem;
}

.success-container {
  background: white;
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.5s ease-in;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--secondary-light)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.error-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #dc2626, #f87171);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg,
.error-icon svg {
  width: 40px;
  height: 40px;
  stroke: white;
  stroke-width: 3;
}

.success-container h2,
.alert-container h2 {
  color: #1f2937;
  font-weight: 700;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.success-container p,
.alert-container p {
  color: #6b7280;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.alert-container {
  background: white;
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.5s ease-in;
}

.btn-secondary-custom {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-secondary-custom:hover {
  background: linear-gradient(135deg, #1e3a8a, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.invalid-feedback {
  display: none;
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.375rem;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
  display: block;
}

@media (max-width: 768px) {
  body {
    padding: 1.5rem 0;
  }

  .card-header {
    padding: 2rem 1.5rem;
  }

  .card-header h1 {
    font-size: 1.5rem;
  }

  .card-header p {
    font-size: 1rem;
  }

  .card-body {
    padding: 2rem 1.5rem;
  }

  .success-container h2 {
    font-size: 1.75rem;
  }
}
