/*
  Legacy Games - contact page
*/

.lg-contact-section {
  position: relative;
  padding: 38px 0 90px;
}

.lg-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.lg-contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(202, 255, 67, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 255, 67, 0.12), transparent 18rem),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(10, 15, 30, 0.92);
  box-shadow: var(--lg-shadow, 0 24px 70px rgba(0, 0, 0, 0.45)), 0 0 44px rgba(202, 255, 67, 0.1);
}

.lg-contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 26%, rgba(255, 255, 255, 0.05) 48%, transparent 70%);
  pointer-events: none;
}

.lg-contact-card > * {
  position: relative;
  z-index: 1;
}

.lg-contact-card h2 {
  margin: 8px 0 8px;
  color: #ffffff;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 950;
  line-height: 1.15;
}

.lg-contact-card > p {
  max-width: 560px;
  margin: 0 0 22px;
  color: var(--lg-soft, #dce4ff);
  font-size: 14px;
  font-weight: 650;
}

.lg-contact-form {
  display: grid;
  gap: 4px;
}

.lg-contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lg-contact-form label {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.lg-contact-form input[type="text"],
.lg-contact-form textarea {
  width: 100%;
  min-height: 50px;
  margin: 0 0 14px;
  padding: 13px 16px;
  border: 1px solid rgba(170, 179, 208, 0.24);
  border-radius: 14px;
  background: rgba(5, 7, 17, 0.72);
  color: var(--lg-text, #f5f7ff);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lg-contact-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.lg-contact-form input[type="text"]::placeholder,
.lg-contact-form textarea::placeholder {
  color: rgba(220, 228, 255, 0.52);
}

.lg-contact-form input[type="text"]:focus,
.lg-contact-form textarea:focus {
  outline: none;
  border-color: rgba(202, 255, 67, 0.55);
  box-shadow: 0 0 0 4px rgba(202, 255, 67, 0.11);
}

.lg-contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lg-contact-submit {
  position: relative;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  margin-top: 4px;
  padding: 15px 24px;
  border: 1px solid rgba(202, 255, 67, 0.5);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lg-green, #caff43), var(--lg-cyan, #51e6ff));
  color: #06100b;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(202, 255, 67, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.lg-contact-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.55) 48%, transparent 74%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}

.lg-contact-submit:hover,
.lg-contact-submit:focus {
  color: #06100b;
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(202, 255, 67, 0.34);
}

.lg-contact-submit:hover::after,
.lg-contact-submit:focus::after {
  transform: translateX(130%);
}

/* Support channels */
.lg-contact-channels {
  display: grid;
  gap: 12px;
}

.lg-contact-channel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 15px 16px;
  border: 1px solid rgba(170, 179, 208, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(9, 14, 29, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  text-decoration: none !important;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.lg-contact-channel:hover,
.lg-contact-channel:focus {
  transform: translateY(-3px);
  border-color: rgba(202, 255, 67, 0.34);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34), 0 0 26px rgba(202, 255, 67, 0.1);
}

.lg-contact-channel__icon {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: rgba(202, 255, 67, 0.12);
  color: var(--lg-green, #caff43);
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lg-contact-channel__copy {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.lg-contact-channel__copy strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.lg-contact-channel__copy span {
  color: var(--lg-muted, #aab3d0);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.lg-contact-channel__arrow {
  flex: 0 0 auto;
  color: rgba(220, 228, 255, 0.45);
  font-size: 18px;
  font-weight: 900;
  transition: transform 0.22s ease, color 0.22s ease;
}

.lg-contact-channel:hover .lg-contact-channel__arrow,
.lg-contact-channel:focus .lg-contact-channel__arrow {
  color: var(--lg-green, #caff43);
  transform: translateX(4px);
}

.lg-contact-channel--discord .lg-contact-channel__icon {
  background: rgba(141, 69, 255, 0.18);
  color: var(--lg-purple-2, #c48cff);
}

.lg-contact-channel--telegram .lg-contact-channel__icon {
  background: rgba(81, 230, 255, 0.14);
  color: var(--lg-cyan, #51e6ff);
}

.lg-contact-channel--email .lg-contact-channel__icon {
  background: rgba(255, 184, 77, 0.14);
  color: var(--lg-orange, #ffb84d);
}

.lg-contact-note {
  margin-top: 4px;
  padding: 20px;
  border: 1px dashed rgba(202, 255, 67, 0.3);
  border-radius: 16px;
  background: rgba(202, 255, 67, 0.05);
}

.lg-contact-note .lg-kicker {
  margin-left: 0;
  margin-bottom: 8px;
}

.lg-contact-note h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.lg-contact-note p {
  margin: 0;
  color: var(--lg-soft, #dce4ff);
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 991px) {
  .lg-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .lg-contact-section {
    padding: 24px 0 60px;
  }

  .lg-contact-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .lg-contact-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .lg-contact-channel {
    padding: 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-contact-channel,
  .lg-contact-channel__arrow,
  .lg-contact-submit,
  .lg-contact-submit::after {
    transition: none;
  }
}
