/* Contact page */
.contact-page {
  min-height: 100vh;
  background: #060608;
  color: #e0e0e0;
}

/* Hero */
.contact-hero {
  position: relative;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(120, 80, 200, 0.06) 0%, transparent 60%);
}

.contact-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.contact-hero .back-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

.contact-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.contact-hero .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 700px;
}

/* Contact sections */
.contact-sections {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: 14px;
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.4s;
}

.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 32px;
  height: 32px;
}

.contact-card[data-type="freelance"] .contact-card-icon {
  background: rgba(60, 130, 240, 0.08);
  color: rgba(100, 160, 255, 0.6);
}

.contact-card[data-type="tutoring"] .contact-card-icon {
  background: rgba(60, 200, 140, 0.08);
  color: rgba(80, 210, 150, 0.6);
}

.contact-card[data-type="other"] .contact-card-icon {
  background: rgba(140, 80, 220, 0.08);
  color: rgba(160, 110, 240, 0.6);
}

.contact-card-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.5rem;
}

.contact-card-content p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.25rem;
}

.contact-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.contact-btn.primary {
  background: rgba(100, 190, 210, 0.12);
  border: 1px solid rgba(100, 190, 210, 0.25);
  color: rgba(200, 230, 240, 0.9);
}

.contact-btn.primary:hover {
  background: rgba(100, 190, 210, 0.2);
  border-color: rgba(100, 190, 210, 0.4);
}

.contact-btn.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.contact-btn.outline:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.03);
}

/* Subjects list for tutoring */
.subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.subject-pill {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(80, 210, 150, 0.5);
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(80, 210, 150, 0.12);
  border-radius: 100px;
}

/* Contact form modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: rgba(14, 14, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
}

.modal h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s;
}

.modal-close:hover {
  color: rgba(255, 255, 255, 0.7);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(100, 190, 210, 0.3);
}

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

.form-group .error-text {
  font-size: 0.75rem;
  color: rgba(240, 80, 80, 0.7);
  margin-top: 0.35rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.success-message {
  text-align: center;
  padding: 1.5rem 0;
}

.success-message p {
  font-size: 1rem;
  color: rgba(80, 210, 150, 0.7);
  margin-bottom: 1.5rem;
}

/* Divider */
.contact-divider {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-divider hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
}

/* Mobile */
@media (max-width: 768px) {
  .contact-hero {
    padding: 6rem 1.25rem 2.5rem;
  }

  .contact-hero h1 {
    font-size: 1.8rem;
  }

  .contact-hero .lead {
    font-size: 0.95rem;
  }

  .contact-sections {
    padding: 1.5rem 1.25rem 3rem;
    gap: 1.25rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .contact-card-icon {
    width: 44px;
    height: 44px;
  }

  .contact-card-icon svg {
    width: 24px;
    height: 24px;
  }

  .contact-card-content h2 {
    font-size: 1.15rem;
  }

  .contact-card-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal {
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .contact-divider {
    padding: 0 1.25rem;
  }
}
