/* Contact form — matches VixoGames dark theme */

.contact-page {
  max-width: 560px;
}

.contact-form {
  margin-top: 1.5rem;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    rgba(30, 24, 56, 0.75),
    rgba(12, 10, 20, 0.88)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.contact-field label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(22, 18, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  outline: none;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.contact-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239b92b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

.contact-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(155, 146, 184, 0.65);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

.contact-field input:invalid:not(:placeholder-shown),
.contact-field select:invalid:not(:placeholder-shown),
.contact-field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(239, 68, 68, 0.45);
}

.contact-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-actions {
  margin-top: 0.35rem;
}

.contact-submit {
  width: 100%;
  justify-content: center;
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.contact-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.35em;
}

.contact-status.is-success {
  color: #86efac;
}

.contact-status.is-error {
  color: #fca5a5;
}

/* Header Contact button (homepage) */
.header-contact-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.header-contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.55);
}

.home-crazy .site-header .header-contact-btn {
  order: 3;
  margin-left: 0.65rem;
}

.home-crazy .site-header .menu-toggle--hub {
  order: 4;
}

/* Contact modal */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.contact-modal[hidden] {
  display: none !important;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contact-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  padding: 1.35rem 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    155deg,
    rgba(30, 24, 56, 0.98),
    rgba(12, 10, 20, 0.99)
  );
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.8),
    0 28px 80px rgba(0, 0, 0, 0.65),
    0 0 48px rgba(124, 58, 237, 0.25);
}

.contact-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.contact-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.contact-modal__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 2rem 0.35rem 0;
}

.contact-modal__lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.contact-form--modal {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.contact-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .contact-form {
    padding: 1.25rem 1rem;
  }

  .contact-field input,
  .contact-field select,
  .contact-field textarea {
    font-size: 1rem;
    padding: 0.8rem 0.9rem;
  }

  .contact-page h1 {
    font-size: 1.65rem;
  }

  .header-contact-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }

  .home-crazy .site-header .header-contact-btn {
    margin-left: 0.4rem;
  }

  .contact-modal {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .contact-modal__panel {
    max-height: 92vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}
