* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding: 2rem 1rem;
  position: relative;
}


.alert {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
}
.alert-danger {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
.alert-success {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

/* Added decorative background pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* Main Select2 box */
.select2-container--default .select2-selection--single {
  background-color: #f9f9f9 !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  height: 45px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* Text inside the selected area */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #333 !important;
  line-height: normal !important;
  padding-left: 0 !important;
}

/* The dropdown arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  right: 10px !important;
}




.container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Enhanced card design with better shadows and animations */
.card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* Improved header with elegant typography */
.header-card {
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.98) 100%
  );
}

.header-card h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.header-card p {
  color: #6b7280;
  font-size: 1.125rem;
  font-weight: 400;
}

/* Modern section titles with accent line */
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid transparent;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
  border-bottom: 3px solid;
  border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.625rem;
  letter-spacing: 0.01em;
}

.required {
  color: #ef4444;
  margin-left: 2px;
}

/* Enhanced form inputs with better focus states */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.form-input:disabled,
.form-input:read-only {
  background-color: #f9fafb;
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding: 0 2.5rem 2rem;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

.btn-secondary {
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* Fixed grid columns to ensure equal width on all screen sizes */
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Improved mobile breakpoint to 640px and ensured single column layout */
@media (max-width: 640px) {
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  body {
    padding: 1rem 0.75rem;
  }

  .card {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }

  .header-card h1 {
    font-size: 2rem;
  }

  .header-card p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* Ensured grid collapses to single column on tablets and mobile */
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .button-group {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }

  .card {
    padding: 1.5rem 1rem;
  }

  .header-card h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.25rem;
  }
}

/* Added smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Loading animation for better UX */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.6s ease-out;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}
.card:nth-child(2) {
  animation-delay: 0.2s;
}
.card:nth-child(3) {
  animation-delay: 0.3s;
}
.card:nth-child(4) {
  animation-delay: 0.4s;
}
.card:nth-child(5) {
  animation-delay: 0.5s;
}
.card:nth-child(6) {
  animation-delay: 0.6s;
}
.card:nth-child(7) {
  animation-delay: 0.7s;
}
.card:nth-child(8) {
  animation-delay: 0.8s;
}
