/* --- Shell And Base --- */
#contact-us { padding: clamp(1.5rem, 2.8vw, 2.25rem) 0 3rem; color: var(--jp-text); font-family: var(--jp-font-ui); }
#contact-us *, #contact-us *::before, #contact-us *::after { box-sizing: border-box; }
#contact-us .jp-contact-page__inner { width: min(1120px, calc(100% - 2.25rem)); margin: 0 auto; }
/* --- Hero --- */
.jp-contact-hero { max-width: 800px; margin: 0 auto; padding: 0 0 clamp(1.75rem, 3vw, 2.75rem); text-align: center; }
.jp-contact-hero h1 { margin: 0; color: #111111; font-size: clamp(2.1rem, 4.4vw, 3.45rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.04em; }
.jp-contact-hero h1 span { color: var(--jp-green); }
.jp-contact-hero p { max-width: 760px; margin: 1rem auto 0; color: var(--jp-text-muted); font-size: clamp(1rem, 1.5vw, 1.08rem); line-height: 1.75; }
/* --- Layout And Cards --- */
.jp-contact-layout { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(300px, 0.95fr); gap: 1.75rem; align-items: start; }
.jp-contact-form-card, .jp-contact-support-card, .jp-contact-social-card { border: 1px solid var(--jp-border); border-radius: var(--jp-radius-lg); box-shadow: var(--jp-shadow-sm); background: var(--jp-surface); }
.jp-contact-form-card { padding: clamp(1.35rem, 2.4vw, 1.9rem); }
.jp-contact-support-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.1rem; align-items: flex-start; padding: 1.25rem; background: var(--jp-surface); }
.jp-contact-social-card { display: grid; gap: 1rem; padding: 0; background: transparent; border: 0; box-shadow: none; }
.jp-contact-sidebar { display: grid; gap: 1.25rem; align-content: start; }
/* --- Form Header And Copy --- */
.jp-contact-form-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.jp-contact-form-head__icon { flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 999px; background: var(--jp-green-forest); color: #ffffff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.jp-contact-form-head__svg, .jp-contact-control__svg, .jp-contact-response-note__icon, .jp-contact-card-icon__svg, .jp-contact-secondary-button__icon { width: 1.15rem; height: 1.15rem; }
.jp-contact-form-head__copy h2, .jp-contact-support-card h2, .jp-contact-social-card h2 { margin: 0; color: #111111; font-size: clamp(1.2rem, 1.95vw, 1.7rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.jp-contact-form-head__copy p, .jp-contact-support-card p, .jp-contact-social-card p { margin: 0; color: var(--jp-text-muted); line-height: 1.65; }
.jp-contact-alert { margin: 0 0 1rem; padding: 0.9rem 1rem; border-radius: var(--jp-radius-md); border: 1px solid rgba(196, 58, 51, 0.2); background: #fff7f6; color: #9b1e1e; font-weight: 700; }
/* --- Form Fields --- */
.jp-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.jp-contact-field { min-width: 0; }
.jp-contact-field--full { grid-column: 1 / -1; }
.jp-contact-field label { display: block; margin: 0 0 0.6rem; color: #161616; font-size: 0.94rem; font-weight: 800; letter-spacing: -0.01em; }
.jp-contact-control { position: relative; }
.jp-contact-control__icon { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); width: 1.15rem; height: 1.15rem; color: var(--jp-text-muted); display: grid; place-items: center; pointer-events: none; }
.jp-contact-control__icon svg { width: 1.15rem; height: 1.15rem; }
.jp-contact-control--textarea .jp-contact-control__icon { top: 1rem; transform: none; }
.jp-contact-control input, .jp-contact-control textarea { width: 100%; border: 1px solid var(--jp-border); border-radius: var(--jp-radius-lg); background: #ffffff; color: var(--jp-text); font: inherit; line-height: 1.5; transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease; }
.jp-contact-control input { min-height: 3.45rem; padding: 0.95rem 1.05rem 0.95rem 2.85rem; }
.jp-contact-control textarea { min-height: 12.25rem; padding: 1rem 1.05rem 1rem 2.85rem; resize: vertical; }
.jp-contact-control input::placeholder, .jp-contact-control textarea::placeholder { color: #9a9a9a; }
.jp-contact-control input:focus, .jp-contact-control textarea:focus { outline: 0; border-color: rgba(0, 138, 51, 0.55); box-shadow: 0 0 0 3px rgba(0, 138, 51, 0.12); }
.jp-contact-field__error { margin-top: 0.45rem; color: #c43a33; font-size: 0.88rem; font-weight: 600; line-height: 1.45; }
.jp-contact-field__error .error { display: block; color: inherit; font-weight: inherit; }
.jp-contact-honeypot { display: none; }
/* --- Form Actions --- */
.jp-contact-form-actions { display: grid; gap: 1rem; margin-top: 1.4rem; }
.jp-contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; min-height: 3.45rem; padding: 0 1.25rem; border: 0; border-radius: var(--jp-radius-button); background: var(--jp-green); color: #ffffff; font: inherit; font-size: 1rem; font-weight: 800; letter-spacing: 0.01em; box-shadow: var(--jp-shadow-sm); cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease; }
.jp-contact-submit:hover { text-decoration: none; background: var(--jp-green-dark); transform: translateY(-1px); box-shadow: var(--jp-shadow-md); }
.jp-contact-submit__icon { width: 1rem; height: 1rem; }
.jp-contact-response-note { display: flex; align-items: flex-start; gap: 0.65rem; margin: 0; color: var(--jp-text-muted); font-size: 0.92rem; line-height: 1.55; }
.jp-contact-response-note strong { color: var(--jp-green-dark); }
.jp-contact-response-note__icon { flex: 0 0 auto; margin-top: 0.1rem; color: var(--jp-green); }
/* --- Support And Social --- */
.jp-contact-card-icon { width: 3rem; height: 3rem; border-radius: 999px; background: #ffffff; border: 1px solid rgba(0, 138, 51, 0.14); display: grid; place-items: center; color: var(--jp-green); box-shadow: var(--jp-shadow-sm); flex: 0 0 auto; }
.jp-contact-card-icon__svg { width: 1.15rem; height: 1.15rem; }
.jp-contact-support-card__body { display: grid; gap: 0.9rem; min-width: 0; }
.jp-contact-secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; width: fit-content; min-height: 3rem; padding: 0 1rem; border: 1px solid var(--jp-green); border-radius: var(--jp-radius-button); background: #ffffff; color: var(--jp-green-dark); font-size: 0.95rem; font-weight: 800; text-decoration: none; transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.jp-contact-secondary-button:hover { text-decoration: none; background: #f4fbf5; border-color: var(--jp-green-dark); color: var(--jp-green-dark); transform: translateY(-1px); }
.jp-contact-secondary-button__icon { width: 0.95rem; height: 0.95rem; }
.jp-contact-social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.jp-contact-social-link { display: grid; justify-items: center; gap: 0.6rem; padding: 0.5rem 0.25rem 0.35rem; border: 0; border-radius: 0; background: transparent; color: var(--jp-text); text-align: center; text-decoration: none; box-shadow: none; transition: color 0.18s ease, transform 0.18s ease; }
.jp-contact-social-link:hover { text-decoration: none; color: var(--jp-green-dark); transform: translateY(-1px); }
.jp-contact-social-link__icon { display: grid; place-items: center; width: 3.15rem; height: 3.15rem; border-radius: 16px; background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: var(--jp-shadow-sm); }
.jp-contact-social-link__icon img { display: block; width: 1.6rem; height: 1.6rem; object-fit: contain; }
.jp-contact-social-link__label { font-family: var(--jp-font-ui); font-size: 0.92rem; font-weight: 800; line-height: 1.2; }
/* --- Responsive --- */
@media screen and (max-width: 980px) {
  #contact-us .jp-contact-page__inner {
    width: min(100%, calc(100% - 1.75rem));
  }
  .jp-contact-layout {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 760px) {
  #contact-us {
    padding: 1.25rem 0 2.25rem;
  }
  .jp-contact-hero {
    padding-bottom: 1.5rem;
  }
  .jp-contact-hero p {
    margin-top: 0.9rem;
  }
  .jp-contact-fields {
    grid-template-columns: 1fr;
  }
  .jp-contact-social-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
  }
}
@media screen and (max-width: 560px) {
  #contact-us .jp-contact-page__inner {
    width: min(100%, calc(100% - 1rem));
  }
  .jp-contact-form-card, .jp-contact-support-card, .jp-contact-social-card {
    padding: 1.1rem;
  }
  .jp-contact-form-head {
    gap: 0.85rem;
  }
  .jp-contact-form-head__icon, .jp-contact-card-icon {
    width: 2.75rem;
    height: 2.75rem;
  }
  .jp-contact-control input, .jp-contact-control textarea {
    border-radius: var(--jp-radius-md);
  }
  .jp-contact-social-link {
    padding: 0.45rem 0.15rem 0.25rem;
  }
  .jp-contact-social-link__icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 14px;
  }
}
@media screen and (max-width: 420px) {
  .jp-contact-hero h1 {
    font-size: clamp(1.9rem, 11vw, 2.35rem);
  }
  .jp-contact-hero p {
    font-size: 0.98rem;
  }
  .jp-contact-submit {
    min-height: 3rem;
    font-size: 0.98rem;
  }
  .jp-contact-secondary-button {
    width: 100%;
  }
  .jp-contact-social-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .jp-contact-social-link {
    gap: 0.45rem;
    padding: 0.35rem 0.1rem 0.2rem;
  }
  .jp-contact-social-link__icon {
    width: 3rem;
    height: 3rem;
  }
}
