.dialog-header {
  text-align: center;
  margin-bottom: 0.5rem;
  color: #333;
}

.dialog-header .title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.dialog-header .subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

.form-close-btn:active,
.form-close-btn:hover {
  background-color: #ccc;
  color: #3d4043;
}

.form-close-btn {
  position: absolute;
  top: 1.5vw;
  right: 1.5vw;
  text-decoration: none;
  border-radius: 2rem;
  background-color: #e3dfdf93;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 1.25em;
  color: #000;
  padding: 0.5rem 0.9rem;
  transition: background-color 0.16s;
  cursor: pointer;
  z-index: 100;
}

@media (max-width: 600px) {
  .form-close-btn {
    right: 1vw;
  }

  .title {
    font-size: 20px;
  }
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  align-items: flex-start;
}

.name-container > .form-group,
.year-container > .form-group {
  flex: 1 1 0;
  min-width: 0;
}

.name-container .form-group,
.year-container .form-group {
  flex: 1;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  background: none;
  transition: border 0.3s;
}

.form-group label {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #999;
  font-size: 1rem;
  pointer-events: none;
}

.form-group input:focus {
  border-color: #4a90e2;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  background: white;
  padding: 0 5px;
  font-size: 0.8rem;
  color: #4a90e2;
}

/* Submit Button */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #4a90e2;
  color: #fff;
  border: none;
  padding: 12px;
  margin-bottom: 1rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

button[type="submit"]:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

.show {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Required Mark */
.red-asterisk {
  color: red;
  font-weight: bold;
}
