/* Contact page overrides - matching Hire Talent page styling exactly */

/* Ensure grid columns align at bottom - both columns stretch to same height */
.page-contact .grid-two.align-start,
.page-contact .grid-two {
  align-items: stretch !important;
}

.page-contact .grid-two > div {
  display: flex;
  flex-direction: column;
}

/* Alternating section backgrounds - off-white and white after hero */
.page-contact section.section:nth-of-type(odd) {
  background-color: var(--color-off-white);
}

.page-contact section.section:nth-of-type(even) {
  background-color: #ffffff;
}

.page-contact .hiring-request-form__step,
.page-contact .about-overview__step-index {
  background-color: var(--color-brand-accent);
  color: var(--color-brand-primary);
  /* Remove heavy shadow so icons/steps feel lighter */
  box-shadow: none;
}

/* Make icons inside form steps visible */
.page-contact .hiring-request-form__step .icon svg {
  stroke: var(--color-brand-primary);
  width: var(--icon-size-md);
  height: var(--icon-size-md);
}

.page-contact .about-overview__icon {
  background-color: var(--color-brand-accent);
}

.page-contact .contact-overview__highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.page-contact .contact-overview__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--card-radius);
  background: var(--gradient-brand);
  border: var(--border-width-thin) solid rgba(0, 212, 255, 0.32);
  box-shadow: 0 14px 34px rgba(0, 30, 60, 0.28);
}

.page-contact .contact-overview__highlights h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-brand-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.page-contact .contact-overview__highlights h3::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--color-brand-accent);
  color: var(--color-brand-primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
}

.page-contact .contact-overview__highlights p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

@media (max-width: 1023px) {
  .page-contact .hero-section-split {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0.5rem !important;
  }

  .page-contact .section {
    padding-top: clamp(1rem, 2vw, 1.25rem) !important;
    padding-bottom: clamp(1rem, 2vw, 1.25rem) !important;
  }
}

/* Override for Hiring Request Card to increase heading prominence and reduce spacing */
.page-contact .hiring-request-card {
  padding-top: 0.2rem;
  /* further reduced top padding */
  gap: 0;
  /* remove gap between heading and form */
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, border-width 0.2s ease, box-shadow 0.2s ease;
  /* smooth transition for border changes */
}

/* Accent color border when form card is focused (via hash navigation from "Talk to Our Team" button) */
.page-contact .hiring-request-card.card-focused,
.page-contact .hiring-request-card.card-focused:focus {
  border-color: var(--color-brand-accent);
  border-width: var(--border-width-medium);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  /* subtle glow effect to enhance visibility */
}

.page-contact .hiring-request-card .heading-sm {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: var(--color-brand-accent);
  /* reduced margin bottom to match standard padding */
}

.page-contact .hiring-request-card .hiring-request-form {
  margin-top: 0;
  /* ensure no additional top margin on form */
}

@media (max-width: 767px) {
  .page-contact .hiring-request-card .heading-sm {
    font-size: 1.4rem;
    /* smaller on mobile */
  }
}

/* Hiring Request form spacing tweaks */
.page-contact .hiring-request-form__section-heading {
  margin-bottom: 0.4rem;
  /* smaller bottom margin */
}

.page-contact .hiring-request-form__section .form-group:first-of-type {
  margin-top: 0.3rem;
  /* pull first field up */
}

.page-contact .hiring-request-form__section .form-group {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  /* reduce vertical padding */
}

.page-contact .hiring-request-form__grid {
  gap: 0.6rem;
  /* tighter grid gap */
}

/* Increase textarea height on contact page only */
.page-contact textarea {
  min-height: 14rem; /* 160px - increased default height for better usability */
}

/* Reorder sections on mobile: form appears first, then "Start the Conversation" */
@media (max-width: 767px) {
  .page-contact .grid-two {
    display: flex;
    flex-direction: column;
  }
  
  .page-contact .grid-two > .hiring-request-card {
    order: 1;
  }
  
  .page-contact .grid-two > div:first-child {
    order: 2;
  }
}
