/* Contact page - retro window style */

.contact-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 5vw, 4rem);
}

.contact-window {
  background: #f5f5f5;
  border: 3px solid #000;
  border-radius: 8px;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

[data-theme="dark"] .contact-window {
  background: #2a2a2a;
  border-color: #e0e0e0;
  box-shadow: 6px 6px 0px rgba(255, 255, 255, 0.15);
}

.contact-window-header {
  padding: 0.75rem 1.5rem;
  background: #fff176;
  border-bottom: 3px solid #000;
}

[data-theme="dark"] .contact-window-header {
  background: #1e3a5f;
  border-bottom-color: #e0e0e0;
}

.contact-window-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  font-family: monospace;
  letter-spacing: 0.02em;
  text-transform: none;
}

[data-theme="dark"] .contact-window-title {
  color: #fff;
}

.contact-window-content {
  padding: 2rem;
  background: #ffffff;
}

[data-theme="dark"] .contact-window-content {
  background: #2a2a2a;
}

.contact-intro {
  margin-bottom: 2rem;
  color: var(--ink);
}

.contact-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0.5rem 0;
}

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

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

.contact-label {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--ink);
  font-family: monospace;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 3px solid #000;
  padding: 0.75rem 0.9rem;
  font: inherit;
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  transition: all 0.1s ease;
  font-size: 1rem;
}

[data-theme="dark"] .contact-form input[type="text"],
[data-theme="dark"] .contact-form input[type="email"],
[data-theme="dark"] .contact-form input[type="tel"],
[data-theme="dark"] .contact-form input[type="url"],
[data-theme="dark"] .contact-form select,
[data-theme="dark"] .contact-form textarea {
  border-color: #e0e0e0;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="url"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff176;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .contact-form input[type="text"]:focus,
[data-theme="dark"] .contact-form input[type="email"]:focus,
[data-theme="dark"] .contact-form input[type="tel"]:focus,
[data-theme="dark"] .contact-form input[type="url"]:focus,
[data-theme="dark"] .contact-form select:focus,
[data-theme="dark"] .contact-form textarea:focus {
  background: #1e3a5f;
  box-shadow: 2px 2px 0px rgba(255, 255, 255, 0.2);
}

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

.contact-help {
  font-size: 0.85rem;
  color: var(--ink-dim);
  font-family: monospace;
}

.contact-error {
  font-size: 0.9rem;
  color: #b00020;
  font-weight: 700;
  font-family: monospace;
}

.contact-submit {
  border: 3px solid #000;
  background: #fff176;
  padding: 1rem 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: #000;
  cursor: pointer;
  transition: all 0.1s ease;
  width: 100%;
  font-family: monospace;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

.contact-submit:hover {
  background: #000;
  color: #fff176;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.25);
}

.contact-submit:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .contact-submit {
  background: #1e3a5f;
  color: #fff;
  border-color: #e0e0e0;
  box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .contact-submit:hover {
  background: #fff;
  color: #1e3a5f;
  box-shadow: 6px 6px 0px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .contact-submit:active {
  box-shadow: 2px 2px 0px rgba(255, 255, 255, 0.1);
}

/* Turnstile CAPTCHA styling */
.contact-field:has(.cf-turnstile) {
  align-items: flex-start;
}

.cf-turnstile {
  margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    padding: 2rem 1rem;
  }

  .contact-window-content {
    padding: 1.5rem;
  }

  .contact-window-title {
    font-size: 1rem;
  }

  .contact-form {
    gap: 1.25rem;
  }

  .cf-turnstile {
    transform: scale(0.9);
    transform-origin: left top;
  }
}
