/* ==================================================
   Fix-It Bay — Contact page
   ================================================== */

/* =========================
   Page sections
   ========================= */

.contact-hero,
.contact-paths,
.contact-form-section,
.contact-story,
.contact-cta {
  position: relative;
  z-index: 2;
}

/* =========================
   Shared glass surfaces
   ========================= */

.contact-hero-shell,
.contact-path-card,
.contact-form-shell,
.contact-form-card,
.contact-story-card,
.contact-cta-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.contact-hero-shell::before,
.contact-path-card::before,
.contact-form-shell::before,
.contact-story-card::before,
.contact-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.02) 38%,
    rgba(255, 255, 255, 0.1) 100%
  );
  pointer-events: none;
}

/* =========================
   Hero
   ========================= */

.contact-hero {
  padding-top: 36px;
  padding-bottom: 12px;
}

.contact-hero-shell {
  padding: 58px 42px;
  border-radius: 38px;
  text-align: center;

  background:
    radial-gradient(
      circle at 16% 14%,
      rgba(255, 255, 255, 0.7) 0%,
      transparent 26%
    ),
    radial-gradient(
      circle at 84% 18%,
      rgba(100, 160, 255, 0.16) 0%,
      transparent 28%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.64) 0%,
      rgba(255, 255, 255, 0.34) 100%
    );

  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.09);
}

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

.contact-hero-copy h1 {
  margin-bottom: 18px;
}

.contact-hero-kicker {
  max-width: 820px;
  margin: 0 auto 22px;

  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--text-strong);
}

.contact-hero-text {
  max-width: 760px;
  margin: 0 auto 14px;

  font-size: 1.06rem;
  line-height: 1.75;
  text-align: center;
  color: var(--muted);
}

.contact-hero .hero-actions {
  margin-top: 30px;
}

/* =========================
   Section heading
   ========================= */

.contact-section-heading {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.contact-section-heading p {
  max-width: 660px;
  margin: 0 auto;

  font-size: 1.04rem;
  line-height: 1.7;
}

/* =========================
   Contact path cards
   ========================= */

.contact-paths {
  padding-top: 12px;
  padding-bottom: 18px;
}

.contact-path-grid {
  display: grid;
  gap: 24px;
}

/* Updated three-card layout */
.contact-path-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-path-card {
  min-height: 370px;
  padding: 34px 30px;
  border-radius: 30px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.52) 100%
  );

  box-shadow: none;
}

.contact-path-card-blue {
  background:
    radial-gradient(
      circle at 86% 14%,
      rgba(93, 151, 255, 0.14) 0%,
      transparent 24%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.74) 0%,
      rgba(255, 255, 255, 0.52) 100%
    );
}

.contact-path-card-green {
  background:
    radial-gradient(
      circle at 84% 16%,
      rgba(107, 201, 154, 0.14) 0%,
      transparent 24%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.74) 0%,
      rgba(255, 255, 255, 0.52) 100%
    );
}

.contact-path-card > * {
  position: relative;
  z-index: 2;
}

.contact-path-number {
  display: inline-flex;
  margin-bottom: 24px;

  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.contact-path-card h3 {
  max-width: 100%;
  margin: 0 0 18px;

  font-size: clamp(1.75rem, 2.2vw, 2.35rem);
  line-height: 1.08;
  text-align: left;
}

.contact-card-lead {
  margin: 0 0 16px;

  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.58;
  letter-spacing: -0.02em;
  color: rgba(43, 59, 84, 0.9);
}

.contact-path-card p,
.contact-story-card p,
.contact-form-intro p {
  max-width: 96%;
  text-align: left;
  line-height: 1.72;
}

.contact-text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;

  font-size: 0.97rem;
  font-weight: 650;
  color: var(--blue);

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.contact-text-link::after {
  content: "→";
  margin-left: 7px;
  transition: transform 0.2s ease;
}

.contact-text-link:hover {
  color: var(--blue-dark);
}

.contact-text-link:hover::after {
  transform: translateX(3px);
}

/* =========================
   Contact form section
   ========================= */

.contact-form-section {
  padding-top: 18px;
  padding-bottom: 18px;
}

.contact-form-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;

  padding: 32px;
  border-radius: 36px;

  background:
    radial-gradient(
      circle at 14% 14%,
      rgba(255, 255, 255, 0.62) 0%,
      transparent 26%
    ),
    radial-gradient(
      circle at 88% 16%,
      rgba(105, 157, 255, 0.15) 0%,
      transparent 26%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.56) 0%,
      rgba(255, 255, 255, 0.3) 100%
    );

  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.08);
}

.contact-form-intro,
.contact-form-card {
  position: relative;
  z-index: 2;
}

.contact-form-intro {
  padding: 18px 10px 18px 8px;
}

.contact-form-intro h2 {
  max-width: 100%;
  margin: 14px 0 18px;
  text-align: left;
}

.contact-form-intro .mini-label {
  margin-left: 0;
  margin-right: 0;
}

/* =========================
   Direct details
   ========================= */

.contact-direct-details {
  display: grid;
  gap: 0;
  margin-top: 30px;
}

.contact-detail-item {
  padding: 16px 0;
}

/* Only later items receive a separator.
   This removes the unwanted line above Location. */
.contact-detail-item + .contact-detail-item {
  border-top: 1px solid rgba(29, 29, 31, 0.09);
}

.contact-detail-label {
  display: block;
  margin-bottom: 5px;

  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted-soft);
}

.contact-detail-item > a,
.contact-detail-item > span:last-child,
.contact-inline-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-strong);
}

.contact-detail-item > a:hover,
.contact-inline-links a:hover {
  color: var(--blue);
}

.contact-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================
   Form card
   ========================= */

.contact-form-card {
  padding: 30px;
  border-radius: 28px;

  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.64);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 14px 38px rgba(0, 0, 0, 0.06);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field {
  min-width: 0;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contact-optional {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted-soft);
}

.contact-message-input {
  min-height: 170px;
  resize: vertical;
}

.contact-submit-button {
  width: 100%;
  margin-top: 2px;
}

.contact-form-note {
  max-width: 520px;
  margin: 13px auto 0;

  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
  color: var(--muted-soft);
}

/* =========================
   Contact type choices
   ========================= */

.contact-type-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-type-field legend {
  display: block;
  width: 100%;
  margin: 0 0 10px;

  font-size: 0.9rem;
  font-weight: 600;
  color: #3a3a3c;
}

.contact-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-type-option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.contact-type-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-type-option-content {
  position: relative;
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: center;

  padding: 20px 18px 20px 48px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.66);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 22px rgba(0, 0, 0, 0.035);

  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.contact-type-option-content::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;

  width: 17px;
  height: 17px;
  border-radius: 50%;

  border: 1.5px solid rgba(0, 113, 227, 0.42);
  background: rgba(255, 255, 255, 0.72);

  transform: translateY(-50%);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-type-option-content strong {
  display: block;
  margin-bottom: 5px;

  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.contact-type-option-content small {
  display: block;

  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.5;
  color: var(--muted);
}

.contact-type-option:hover .contact-type-option-content {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(0, 113, 227, 0.2);
  transform: translateY(-1px);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 26px rgba(0, 113, 227, 0.07);
}

.contact-type-option input:checked + .contact-type-option-content {
  background:
    radial-gradient(
      circle at 88% 14%,
      rgba(66, 143, 255, 0.12) 0%,
      transparent 30%
    ),
    rgba(255, 255, 255, 0.78);

  border-color: rgba(0, 113, 227, 0.48);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 28px rgba(0, 113, 227, 0.1);
}

.contact-type-option input:checked + .contact-type-option-content::before {
  border-color: #0071e3;
  background: #0071e3;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.92);
}

.contact-type-option input:focus-visible + .contact-type-option-content {
  outline: 3px solid rgba(0, 113, 227, 0.2);
  outline-offset: 3px;
}

/* =========================
   Portland story card
   ========================= */

.contact-story {
  padding-top: 18px;
  padding-bottom: 18px;
}

.contact-story-grid {
  display: grid;
  gap: 24px;
}

/* One remaining story card */
.contact-story-grid-single {
  grid-template-columns: 1fr;
}

.contact-story-card {
  min-height: 350px;
  padding: 38px 34px;
  border-radius: 30px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.5) 100%
  );
}

.contact-story-grid-single .contact-story-card {
  width: 100%;
  min-height: 320px;
}

.contact-story-card-location {
  background:
    radial-gradient(
      circle at 84% 16%,
      rgba(106, 161, 255, 0.16) 0%,
      transparent 25%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.5) 100%
    );
}

.contact-story-card > * {
  position: relative;
  z-index: 2;
}

.contact-story-card .mini-label {
  margin-left: 0;
  margin-right: 0;
}

.contact-story-card h2 {
  max-width: 94%;
  margin: 14px 0 18px;

  font-size: clamp(2rem, 3vw, 2.75rem);
  text-align: left;
}

/* =========================
   Bottom CTA
   ========================= */

.contact-cta {
  padding-top: 18px;
  padding-bottom: 28px;
}

.contact-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  padding: 32px 34px;
  border-radius: 32px;

  background:
    radial-gradient(
      circle at 16% 16%,
      rgba(255, 255, 255, 0.46) 0%,
      transparent 26%
    ),
    radial-gradient(
      circle at 86% 20%,
      rgba(105, 161, 255, 0.15) 0%,
      transparent 26%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.56) 0%,
      rgba(255, 255, 255, 0.3) 100%
    );

  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.07);
}

.contact-cta-copy,
.contact-cta-actions {
  position: relative;
  z-index: 2;
}

.contact-cta-copy {
  max-width: 680px;
}

.contact-cta-copy .mini-label {
  margin-left: 0;
  margin-right: 0;
}

.contact-cta-copy h2 {
  max-width: 100%;
  margin: 12px 0;
  text-align: left;
}

.contact-cta-copy p {
  max-width: 660px;
  margin: 0;
  text-align: left;
}

.contact-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1100px) {
  .contact-path-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-path-grid-three .contact-path-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1000px) {
  .contact-form-shell {
    grid-template-columns: 1fr;
  }

  .contact-form-intro {
    padding: 10px 4px;
  }

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

  .contact-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .contact-path-grid-three {
    grid-template-columns: 1fr;
  }

  .contact-path-grid-three .contact-path-card:last-child {
    grid-column: auto;
  }

  .contact-path-card,
  .contact-story-card {
    min-height: auto;
  }

  .contact-form-grid,
  .contact-type-options {
    grid-template-columns: 1fr;
  }

  .contact-field-full {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .contact-hero-shell {
    padding: 34px 18px;
    border-radius: 28px;
  }

  .contact-hero-kicker {
    font-size: 1.52rem;
  }

  .contact-hero-text {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .contact-path-card,
  .contact-story-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .contact-form-shell {
    padding: 18px;
    border-radius: 26px;
  }

  .contact-form-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .contact-type-option-content {
    min-height: 104px;
  }

  .contact-cta-card {
    padding: 26px 20px;
    border-radius: 26px;
  }

  .contact-cta-actions {
    width: 100%;
  }

  .contact-cta-actions .button-primary,
  .contact-cta-actions .button-secondary {
    width: 100%;
  }
}