/* ── Skip to Main Content Link ── */
#skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--green);
  color: var(--white);
  padding: 12px 20px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  font-size: 0.9rem;
}

#skip-to-main:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ── Back to Top Button ── */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(16, 20, 17, 0.2);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#back-to-top:hover {
  background: var(--green2);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(16, 20, 17, 0.3);
}

#back-to-top:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

#back-to-top svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Form Validation Styles ── */
.field input.error,
.field select.error,
.field textarea.error {
  border: 2px solid #d32f2f;
  background-color: rgba(211, 47, 47, 0.05);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.error-message {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #d32f2f;
  letter-spacing: 0.05em;
}

.field input:valid:not(:placeholder-shown),
.field textarea:valid:not(:placeholder-shown) {
  border-color: #4caf50;
  background-color: rgba(76, 175, 80, 0.03);
}

/* ── Mobile Adjustments ── */
@media (max-width: 860px) {
  #back-to-top {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }

  #back-to-top svg {
    width: 20px;
    height: 20px;
  }

  #skip-to-main {
    font-size: 0.8rem;
    padding: 10px 16px;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  #back-to-top,
  .error-message {
    transition: none;
  }
}
