/* Misc Pages Styles
   Styles for contact and other miscellaneous pages
*/

/* ===== CONTACT PAGE SPECIFIC ===== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.misc-main {
  width: 100%;
  padding: 40px 0;
}

.container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Hero section */
.contact-main .hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 24px;
}

.contact-main .hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(56px, 12vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.2s forwards;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.contact-main .hero .tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 600px;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.4s forwards;
}

/* Form section */
.form-section {
  width: 100%;
  padding: 16px 0 120px;
}

.form-container {
  width: 100%;
  max-width: 800px;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ink-faint);
}

.form-group {
  margin-bottom: 32px;
}

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 12px;
}

.form-group label .required {
  color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(235, 231, 221, 0.02);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(235, 231, 221, 0.04);
}

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

.form-group select {
  cursor: pointer;
}

/* Honeypot field (hidden) */
.form-group.honeypot {
  position: absolute;
  left: -9999px;
}

.submit-btn {
  width: 100%;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.submit-btn:hover {
  border-color: var(--accent);
  background: rgba(235, 231, 221, 0.04);
  transform: translateY(-2px);
}

.submit-btn:hover::before {
  transform: scaleX(1);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Form messages */
.form-message {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  line-height: 1.6;
  display: none;
}

.form-message.success {
  background: rgba(216, 255, 90, 0.05);
  border-color: var(--accent);
  color: var(--ink);
}

.form-message.error {
  background: rgba(255, 90, 90, 0.05);
  border-color: rgba(255, 90, 90, 0.3);
  color: var(--ink);
}

/* ===== PAGE HEADER ===== */

.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.page-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--ink-dim);
  font-style: italic;
}

/* ===== BACK LINK ===== */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 12px 0;
  transition: color 0.3s ease;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.6s forwards;
}

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

.back-link .arrow {
  transition: transform 0.3s ease;
}

.back-link:hover .arrow {
  transform: translateX(-4px);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 720px) {
  .contact-main .hero {
    min-height: auto;
    padding: 32px 0 16px;
  }

  .form-section {
    padding: 8px 0 80px;
  }

  .form-container {
    max-width: 100%;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 16px;
  }

  .form-group textarea {
    min-height: 140px;
  }

  .submit-btn {
    padding: 18px;
    font-size: 12px;
  }

  .form-message {
    padding: 16px 20px;
    font-size: 12px;
  }

  .section-label {
    font-size: 9px;
    margin-bottom: 32px;
  }
}
