/* ================================================
   contact.css - Contact Page Styles
   KOD Müzik Website - Archival/Utility
   
   DEFINITIVE MASTER. (Final rhythm/focus polish).
   ================================================ */

.contact-container {
  color: #f5f5f5;

  /* Align top with .main-content padding like Events */
  margin-top: 0;
  padding: 0 0 80px;

  max-width: calc(70ch + 70ch + 80px);
  /* Align container to left edge like Events header */
  margin-left: 0;
  margin-right: auto;
}

.contact-title {
  font-family: var(--font-display);
  /* Match Events header size */
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  /* Align top with logo line; nudge up by additional 2px */
  margin-top: calc(1rem - 14px);
  margin-bottom: 120px;
}

@media (max-width: 768px) {
  .contact-title {
    /* On mobile, nudge up by additional 2px */
    margin-top: calc(2.5rem - 37px);
  }
}

/* The core layout: 2-column grid on desktop, 1-column stack on mobile */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; /* Generous gap for spacing */
}

/* * BLOCK 1: THE FORM 
 * This is the architectural styling.
 */

.contact-form .form-group {
  margin-bottom: 30px;
}

.contact-form .form-label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 500;
  text-transform: uppercase; /* This does the capitalization work */
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #ffffff;
}

/* THIS IS THE KEY: The "underline" field. No boxes. */
.contact-form .form-input,
.contact-form .form-textarea {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #ffffff; /* The structural line */
  border-radius: 0;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  padding: 10px 0;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease, border-width 0.3s ease;
}

.contact-form .form-textarea {
  min-height: 150px;
  resize: vertical; /* Allow vertical resize only */
}

/* ACCESSIBILITY: Explicit focus states for dark mode */
.contact-form .form-input:focus-visible,
.contact-form .form-textarea:focus-visible {
  border-bottom-width: 2px; /* POLISH: Thicker line on focus */
  border-bottom-color: #ffffff;
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

/* THE BUTTON: A hard block, not a pill. */
.form-button {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase; /* This does the capitalization work */
  letter-spacing: 0.08em;
  background-color: #ffffff;
  color: #000000;
  border: none;
  border-radius: 0; /* NO rounded corners */
  padding: 12px 28px;
  cursor: pointer;
  outline: none;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.form-button:hover {
  background-color: #c9c9c9; /* Simple hover */
}

/* ACCESSIBILITY: Button focus state */
.form-button:focus-visible {
  background-color: #c9c9c9; /* Match hover */
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

/* * BLOCK 2: THE STATIC INFO
 * Pure typography.
 */

.contact-info-block {
  margin-bottom: 40px;
}

.contact-info-title {
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.contact-info-content,
.contact-info-content a {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #f5f5f5;
  text-decoration: none;
}

.contact-info-content a:hover,
.contact-info-content a:focus-visible {
  text-decoration: underline;
  outline: none; /* Already covered by underline */
}

/* Responsive: Stack the grid on smaller screens */
@media (max-width: 1199px) {
  .contact-container {
    /* keep top aligned with .main-content */
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Stack the columns */
    gap: 60px;
    max-width: 70ch; /* Collapse back to single reading width */
  }
}

@media (max-width: 767px) {
  .contact-container {
    margin-top: 0; /* align to .main-content mobile padding */
    padding: 0 0 60px;
  }

  .contact-title {
    max-width: 100%;
  }
}

/* Desktop Layout Refinements */
@media (min-width: 900px) {
  .contact-form {
    max-width: 640px;
  }
}

@media (min-width: 1200px) {
  .contact-grid {
    gap: 120px;
  }
}
