/* ==========================================
   CONTACT PAGE CONTENT
   ========================================== */

.contact-page {
  background: #fff;
  min-height: 100vh;
  margin: 0;
  padding: 100px 2rem 8rem 2rem; /* Match blog post - 100px top padding */
  position: relative;
  z-index: 100;
}

.contact-page article {
  max-width: 900px; /* Match blog posts */
  margin: 0 auto;
  background: #fff;
  padding: 3rem 4rem 8rem 4rem; /* Match blog post padding */
  position: relative;
  z-index: 100;
}

.contact-page-title {
  font-family: var(--font-family-serif);
  font-size: 3.5rem; /* Match blog post title size */
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #21201C;
}

.contact-page-intro {
  font-family: var(--font-family-sans);
  font-size: 1.125rem;
  line-height: 1.8; /* Match blog post line-height */
  color: #747474; /* Match blog post color */
  font-weight: 300;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1.5px solid #e8e8e8; /* Match blog post divider */
}

.contact-page-intro p {
  margin-bottom: 1rem;
}

/* ==========================================
   CONTACT FORM - CLEAN STYLE
   ========================================== */

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-family-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary); /* Darker for better contrast on beige */
}

.form-group input,
.form-group textarea {
  font-family: var(--font-family-sans);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff; /* White inputs pop against beige */
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: #d8d8d8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-coral); /* Coral red focus state */
  box-shadow: 0 0 0 3px rgba(238, 92, 71, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
  opacity: 1;
}

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

/* Send Message Button - Matches "View All Work" style from homepage */
.send-message {
  border: none;
  color: #fff;
  padding: 10px 48px 10px 48px;
  background: var(--color-coral);
  border-radius: 8px;
  font-family: var(--font-family-sans);
  font-size: 0.95rem;
  font-weight: 450;
  transition: all 0.4s ease;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  letter-spacing: 0.03em;
  cursor: pointer;
  position: relative;
  box-shadow: none;
}

.send-message::after {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13 7l5 5m0 0l-5 5m5-5H6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
  display: inline-block;
}

.send-message:hover {
  background: var(--color-coral-dark);
  transform: none;
}

.send-message:hover::after {
  transform: translateX(4px);
}

.send-message:active {
  transform: scale(0.98);
}

.contact-submit {
  align-self: flex-start;
  margin-top: 1rem;
  border: 1.5px solid #d1d1d1;
  color: #1f1f1f;
  padding: 12px 48px;
  background: transparent;
  border-radius: 8px;
  font-family: var(--font-family-sans);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  letter-spacing: 0.01em;
}

.contact-submit:hover {
  background: var(--color-coral);
  color: #fff;
  border-color: var(--color-coral);
}

.contact-submit:active {
  transform: scale(0.98);
}

/* Form messages */
.form-message {
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-family: var(--font-family-sans);
}

.form-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.form-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.form-message p {
  margin: 0;
}

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

@media screen and (max-width: 768px) {
  /* Contact page */
  .contact-page {
    padding: 0 1.25rem 2rem 1.25rem; /* Match blog post mobile padding */
  }
  
  .contact-page article {
    padding: 2rem 1.25rem; /* Match blog post mobile padding */
    margin: 0 auto;
  }
  
  .contact-page-title {
    font-size: 2.5rem; /* Match blog post mobile title */
  }
  
  .contact-page-intro {
    font-size: 1.0625rem; /* Slightly larger for readability */
    line-height: 1.8;
  }
  
  .send-message {
    width: 100%; /* Full width on mobile */
    justify-content: center;
  }
}