/* Contact hero section (ported from Next.js) */
.contact-hero-section {
  position: relative;
}

.contact-hero-section .courseColorOrange {
  position: absolute;
  left: -30%;
  top: 480px;
  width: 100%;
  height: 200px;
  filter: blur(300.73px);
  border-radius: 50%;
  background-color: #f37f54;
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
}

.contact-hero-section .header {
  text-align: center;
}

.contact-hero-section .eyebrow {
  display: none;
  z-index: 1;
}

.contact-hero-section .title {
  font-family: 'P22 Mackinac Pro', serif;
  font-size: 100px;
  font-weight: 400;
  color: #2c3e50;
  margin-bottom: 30px;
}

.contact-hero-section .subtitle {
  font-size: 20px;
  font-family: 'Avenir Next', sans-serif;
  color: #6d717b;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
}

.contact-hero-section .mobileTabContainer {
  display: flex;
  width: 450px;
  max-width: 100%;
  border-radius: 20px;
  background-color: #f2f2f3;
  border: 1px solid #e3e3e5;
  box-sizing: border-box;
  align-items: center;
  text-align: center;
  padding: 6px;
  font-size: 14px;
  font-family: 'Avenir Next', sans-serif;
  margin: 25px auto;
  position: relative;
  z-index: 20;
}

.contact-hero-section .mobileTab {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 14px;
  height: clamp(44px, 12vw, 48px);
  padding: clamp(16px, 5vw, 20px);
  flex: 1;
}

.contact-hero-section .activeMobileTab {
  border-radius: 16px;
  background-color: #333f5b;
  color: #fff;
}

.contact-hero-section .inactiveMobileTab {
  border-radius: 20px;
  background-color: transparent;
  color: #333f5b;
}

.contact-hero-section .mobileTabText {
  position: relative;
  letter-spacing: -0.02em;
  line-height: 150%;
  font-weight: 500;
  font-size: 14px;
}

.contact-hero-section .contactBody {
  margin-top: 40px;
  width: 100%;
  display: block;
  gap: 2rem;
  z-index: 1;
}

.contact-hero-section .contactBody > :not(.courseColorOrange) {
  position: relative;
  z-index: 2;
}

.contact-hero-section .leftColumn,
.contact-hero-section .rightColumn {
  display: block;
}

/* Contact details card */
.contact-hero-section .infoCard {
  background-color: #fff;
  border-radius: 1.5rem;
  padding: 3rem;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  height: 859px;
}

.contact-hero-section .cardTitle {
  font-size: 48px;
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 2.5rem;
  font-family: 'P22 Mackinac Pro', serif;
}

.contact-hero-section .contactItem {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-hero-section .contactItem:last-child {
  margin-bottom: 0;
}

.contact-hero-section .iconWrapper {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #3b82f6;
}

.contact-hero-section .icon {
  width: 100%;
  height: 100%;
}

.contact-hero-section .contactLabel {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.contact-hero-section .contactDescription {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.contact-hero-section .contactLink {
  font-size: 0.875rem;
  color: #1f2937;
  text-decoration: none;
  display: block;
}

.contact-hero-section .contactLink:hover {
  color: #3b82f6;
}

.contact-hero-section .contactText {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

/* Contact form card */
.contact-hero-section .formCard {
  background-color: #2d394b;
  border-radius: 1.25rem;
  padding: 3rem;
  box-shadow: 0 12px 40px rgba(23, 28, 37, 0.15);
  width: 100%;
  height: 859px;
}

.contact-hero-section .formTitle {
  font-family: 'P22 Mackinac Pro', serif;
  color: #fcf9f8;
  margin-bottom: 1.75rem;
  font-size: 48px;
  font-weight: 500;
}

.contact-hero-section .form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-hero-section .formRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-hero-section .formGroup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-hero-section .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.contact-hero-section .input,
.contact-hero-section .textarea {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top-right-radius: 0.75rem;
  border-top-left-radius: 0.75rem;
  padding: 0.9rem 1rem;
  color: #e6eef8;
  font-size: 0.95rem;
  transition: border-color 0.15s, background-color 0.15s;
}

.contact-hero-section .input::placeholder,
.contact-hero-section .textarea::placeholder {
  color: rgba(230, 238, 248, 0.45);
}

.contact-hero-section .input:focus,
.contact-hero-section .textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.85);
  background-color: rgba(255, 255, 255, 0.02);
}

.contact-hero-section .textarea {
  resize: vertical;
  min-height: 160px;
  font-family: inherit;
}

.contact-hero-section .submitButton {
  background: linear-gradient(90deg, #2fa1ff, #2b8eff);
  color: #fff;
  border: none;
  padding: 0.8rem 2.2rem;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  align-self: flex-start;
  box-shadow: 0 8px 20px rgba(43, 142, 255, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.contact-hero-section .submitButton:hover {
  transform: translateY(-1px);
}

.contact-hero-section .formNotice {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6d717b;
}

.contact-hero-section .formNotice.success {
  color: #1f8f52;
}

.contact-hero-section .formNotice.error {
  color: #c2410c;
}

/* Modal styles */
.contactModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  backdrop-filter: blur(4px);
  z-index: 9999;
}

.contactModal {
  background: #fafbfd;
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 2.5rem);
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contactModalClose {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.contactModalIcon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.contactModalTitle {
  font-family: 'P22 Mackinac Pro', serif;
  font-size: 28px;
  margin-bottom: 8px;
  color: #333f5b;
}

.contactModalMessage {
  font-size: 16px;
  color: #6d717b;
  line-height: 1.5;
}

@media (min-width: 1025px) {
  .contact-hero-section .contactBody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2.5rem;
  }

  .contact-hero-section .mobileTabContainer {
    display: none;
  }

  .contact-hero-section .mobileTab {
    display: none;
  }
}

@media (max-width: 1024px) {
  .contact-hero-section .contactBody {
    grid-template-columns: 1fr;
  }

  .contact-hero-section .eyebrow {
    display: inline-flex;
  }

  .contact-hero-section .cardTitle,
  .contact-hero-section .formTitle {
    display: none;
  }

  .contact-hero-section .infoCard,
  .contact-hero-section .formCard {
    padding: 2rem;
    height: auto;
  }

  .contact-hero-section .hiddenOnMobile {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .contact-hero-section .title {
    font-size: 40px;
  }

  .contact-hero-section .subtitle {
    margin: 10px;
    font-size: 14px;
  }

  .contact-hero-section .mobileTabContainer {
    width: 345px;
    margin: 25px auto;
    display: flex;
    justify-content: center;
  }

  .contact-hero-section .formRow {
    grid-template-columns: 1fr;
  }

  .contact-hero-section .submitButton {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contact-hero-section .courseColorOrange {
    left: -20%;
    top: 40%;
    height: 300px;
    filter: blur(300px);
  }
}
