.contact-layout {
  align-items: flex-start;
  padding-top: clamp(2rem, 4vh, 3.5rem);
}

.contact-corner-mark {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: visible;
  opacity: 0.16;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.32));
}

.contact-corner-mark img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(420px, 72vw, 980px);
  height: auto;
  transform: translate(-50%, -50%);
}

.contact-content {
  width: min(640px, 100%);
  padding: clamp(1rem, 1.4vw, 1.3rem) 0 2rem;
  animation: slide-up 0.85s ease-out;
}

.contact-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1.4rem;
  transition: color 160ms ease;
}

.contact-back-link:hover {
  color: var(--ink);
}

.contact-title {
  font-family: "Sora", "Space Grotesk", sans-serif;
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-subtitle {
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.5;
}

.contact-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  margin-bottom: 1.2rem;
  font-size: 0.93rem;
  line-height: 1.45;
}

.contact-notice p {
  margin: 0;
}

.contact-notice--success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.contact-notice--success i {
  color: #10b981;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.contact-notice--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.contact-notice--error i {
  color: #ef4444;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-label {
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #dbedf3;
  letter-spacing: 0.01em;
}

.required-dot {
  font-size: 7px;
  margin-right: 7px;
  color: #ef4444;
  transition: color 200ms ease;
}

.contact-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: rgba(7, 38, 58, 0.6);
  border: 1px solid rgba(170, 199, 209, 0.22);
  border-radius: 0.55rem;
  color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-appearance: none;
  appearance: none;
}

.contact-input::placeholder {
  color: rgba(170, 199, 209, 0.5);
}

.contact-input:focus {
  outline: none;
  border-color: rgba(0, 60, 113, 0.8);
  box-shadow: 0 0 0 3px rgba(0, 60, 113, 0.22);
}

.contact-input option {
  background: #07263a;
  color: var(--ink);
}

.contact-textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-submit {
  margin-top: 0.3rem;
  align-self: flex-start;
}

.contact-captcha-note {
  margin: 0.45rem 0 0;
  color: rgba(219, 237, 243, 0.65);
  font-size: 0.8rem;
}

.cf-turnstile {
  max-width: 100%;
}

@media (max-width: 640px) {
  .contact-corner-mark {
    width: 100vw;
    opacity: 0.13;
  }

  .contact-corner-mark img {
    left: 50%;
    width: clamp(300px, 86vw, 620px);
  }
}
