/* ============================================================
   CONTACT PAGE — contact.css
   Styles specific to contact.php only.
   ============================================================
   TABLE OF CONTENTS
   01. Page Hero
   02. Contact Layout
   03. Contact Form
   04. Contact Sidebar (Studio & Map)
   ============================================================ */


/* ============================================================
   01. CONTACT HERO
   ============================================================ */

/* ============================================================
   02. CONTACT LAYOUT
   ============================================================ */
.contact-section {
  padding: var(--space-20) 0;
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-10);
  align-items: stretch; /* Allows sidebar to match form height */
}


/* ============================================================
   03. CONTACT FORM
   ============================================================ */
.contact-form-wrap {
  background: #ffffff;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: 0 10px 40px rgba(10, 22, 40, 0.04);
}

.contact-form-wrap h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-bg-primary);
  margin-bottom: var(--space-2);
  letter-spacing: var(--letter-spacing-tight);
}

.contact-form-wrap p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.c-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.c-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.c-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.c-form-group label {
  font-size: 0.65rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-bg-primary);
}

.c-form-control {
  width: 100%;
  background: #f7f9fa; /* Very light grey */
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: var(--font-size-base); /* Must be 16px to prevent iOS Safari auto-zoom bug */
  color: #000; /* Fixed from var(--color-text-primary) to ensure visibility */
  transition: all var(--transition-base);
}

.c-form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
}

textarea.c-form-control {
  min-height: 120px;
  resize: vertical;
}

select.c-form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1628' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.c-form-btn {
  margin-top: var(--space-4);
  width: 100%;
  justify-content: center;
  padding: 1rem;
  border-radius: var(--radius-full);
}


/* ============================================================
   04. CONTACT SIDEBAR
   ============================================================ */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  height: 100%;
}

.studio-card {
  background: var(--color-bg-primary); /* Dark navy */
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-xl);
}

.studio-card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-6);
}

.studio-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.studio-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.studio-item__icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.studio-item__text {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--line-height-relaxed);
}

/* Map Image */
.contact-map {
  width: 100%;
  flex: 1; /* Stretch to fill remaining sidebar height */
  min-height: 250px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
  border: 1px solid rgba(10, 22, 40, 0.05);
}

.contact-map img,
.contact-map iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-map {
    aspect-ratio: 4 / 3;
    flex: none;
  }
}

@media (max-width: 768px) {
  .c-form-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .c-form-group, .c-form-control {
    width: 100% !important;
  }
  .contact-form-wrap {
    padding: var(--space-5) !important;
    text-align: left;
  }
}
