/* Contact / Coding Solutions form page for 011.ninja */

:root {
  --bg: #0a0a0b;
  --bg-elevated: #141416;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #e7ce5f;
  --accent-soft: rgba(231, 206, 95, 0.12);
  --radius: 16px;
  --transition: 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.contact-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.contact-container::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 20%, rgba(231, 206, 95, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(231, 206, 95, 0.05) 0%, transparent 35%);
  pointer-events: none;
}

.contact-header {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.back-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
}

.contact-logo {
  width: 42px;
  height: 42px;
  opacity: 0.85;
}

.contact-hero {
  width: 100%;
  max-width: 600px;
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.contact-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.contact-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: clamp(2rem, 6vw, 3rem);
}

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

.field-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.contact-form select {
  appearance: none;
  cursor: pointer;
  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='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

.contact-form select option,
.contact-form select optgroup {
  color: #111;
  background: #fff;
}

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

.submit-button {
  align-self: stretch;
  padding: 1rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(231, 206, 95, 0.25);
  filter: brightness(1.05);
}

.contact-footer {
  width: 100%;
  max-width: 600px;
  margin-top: auto;
  text-align: center;
}

.contact-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-status {
  min-height: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  margin-top: 0.25rem;
}

.form-status.sending {
  color: var(--text-muted);
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

@media (max-width: 520px) {
  .contact-form {
    padding: 1.5rem;
  }

  .contact-title {
    font-size: 1.85rem;
  }
}
