:root {
  --shadow-color: rgba(255, 255, 255, 0.3);
  --shadow-blur: 20px;
  --shadow-spread: 0px;
  --tint-color: rgba(255, 255, 255, 0.13);
  --frost-blur: 14px;
}

html, body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: url('../static/images/homepage_banner_v3.png') center/cover no-repeat;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: white;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-effect {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
}
.glass-effect::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background-color: var(--tint-color);
  box-shadow: inset 0 0 20px 3px rgba(255, 255, 255, 0.7);
  z-index: 0;
}
.glass-effect::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  backdrop-filter: blur(var(--frost-blur)); -webkit-backdrop-filter: blur(var(--frost-blur));
  filter: url(#glass-distortion);
  z-index: -1;
}

.form-container {
  width: 90%;
  max-width: 600px;
  padding: 2rem 2.5rem;
  box-sizing: border-box;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-align: center;
  margin: 0 0 2rem 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.input-field,
.textarea-field {
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 1rem;
  transition: background-color 0.3s, border-color 0.3s;
}

.input-field:focus,
.textarea-field:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.input-field::placeholder,
.textarea-field::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.textarea-field {
  min-height: 150px;
  resize: vertical;
  white-space: pre-wrap;
}

.input-field[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.form-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.submit-button {
  flex: 1;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.25);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.submit-button:hover {
  background-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.submit-button:active {
  transform: translateY(0);
}

/* ======================================================= */
/* Back Link                                               */
/* ======================================================= */
.back-link {
  position: absolute;
  top: 30px;
  left: 30px;
  padding: 10px 20px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.back-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}