/* Contact page banner — short + gradient (same as news) */
.nybanner.wp-contact-banner,
.nybanner.has-bg.wp-contact-banner {
  height: 150px !important;
  margin-top: 0;
  background-image: none !important;
  background: linear-gradient(135deg, #599aff 0%, #F6821F 45%, #ff3200 100%) !important;
}

.nybanner.wp-contact-banner .ny-title h1 {
  font-size: 28px;
  margin: 0;
  padding: 0;
  color: #fff !important;
}

@media screen and (max-width: 768px) {
  .nybanner.wp-contact-banner,
  .nybanner.has-bg.wp-contact-banner {
    height: 150px !important;
    margin-top: 60px;
    background-image: none !important;
    background: linear-gradient(135deg, #599aff 0%, #F6821F 45%, #ff3200 100%) !important;
  }
  .nybanner.wp-contact-banner .ny-title h1 {
    font-size: 22px;
  }
}

/* Contact page — scoped under .wp-contact-page */

/*
 * Global #warpper { overflow-x: hidden } computes overflow-y to auto,
 * so WOW fadeInUp (translateY 100%) briefly overflows and flashes a
 * vertical scrollbar. Clip both axes; page scroll stays on document.
 */
#warpper.wp-contact-page {
  overflow: hidden;
}

.wp-contact-page {
  --wp-c-ink: #14161c;
  --wp-c-muted: #5b6472;
  --wp-c-line: rgba(20, 22, 28, 0.1);
  --wp-c-soft: #f6f5f3;
  --wp-c-panel: #ffffff;
  --wp-c-accent: #fc4a0a;
  --wp-c-dark: #16181f;
}

.wp-contact-page .wp-contact-eyebrow {
  margin: 0 0 8px;
  font-size: 12px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp-c-accent);
  font-weight: 500 !important;
}

.wp-contact-page .wp-contact-head h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.3;
  color: var(--wp-c-ink);
}

.wp-contact-page .wp-contact-head p {
  margin: 0;
  color: var(--wp-c-muted);
  line-height: 1.7;
  max-width: 36em;
}

/* Quick contact strip */
.wp-contact-quick {
  padding: 28px 0 8px;
  background: #fff;
}

.wp-contact-quick__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.wp-contact-quick__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--wp-c-panel);
  border: 1px solid var(--wp-c-line);
  text-decoration: none;
  color: inherit;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.wp-contact-quick__item:hover {
  border-color: rgba(252, 74, 10, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 22, 28, 0.06);
}

.wp-contact-quick__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wp-c-accent);
  background: rgba(252, 74, 10, 0.08);
}

.wp-contact-quick__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wp-contact-quick__meta em {
  font-style: normal;
  font-size: 12px;
  color: var(--wp-c-muted);
}

.wp-contact-quick__meta strong {
  font-size: 20px;
  font-weight: 500;
  color: var(--wp-c-ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main two-column */
.wp-contact-main {
  padding: 56px 0 24px;
  background: #fff;
}

.wp-contact-main__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.wp-contact-offices {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--wp-c-line);
}

.wp-contact-offices li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--wp-c-line);
}

.wp-contact-offices__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--wp-c-dark);
}

.wp-contact-offices h3 {
  margin: 2px 0 6px;
  font-size: 18px;
  color: var(--wp-c-ink);
}

.wp-contact-offices p {
  margin: 0;
  color: var(--wp-c-muted);
  line-height: 1.65;
}

.wp-contact-channels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 22px;
  background: var(--wp-c-soft);
}

.wp-contact-channels__text h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--wp-c-ink);
}

.wp-contact-channels__text p {
  margin: 0 0 6px;
  color: var(--wp-c-muted);
}

.wp-contact-channels__text a {
  color: var(--wp-c-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wp-contact-qr {
  flex: 0 0 auto;
  text-align: center;
}

.wp-contact-qr img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  display: block;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--wp-c-line);
}

.wp-contact-qr span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--wp-c-muted);
}

/* Form panel */
.wp-contact-form-wrap {
  padding: 32px 28px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, #f8f4f0 0%, #eef1f5 100%);
  border: 1px solid var(--wp-c-line);
}

.wp-contact-form {
  margin-top: 24px;
}

.wp-contact-form__row {
  margin-bottom: 16px;
}

.wp-contact-form__row label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--wp-c-ink);
}

.wp-contact-form__row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wp-contact-input,
.wp-contact-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(20, 22, 28, 0.14);
  background: #fff;
  color: var(--wp-c-ink);
  font-size: 15px;
  line-height: 1.4;
  padding: 0 14px;
  height: 48px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.wp-contact-textarea {
  height: 132px;
  padding: 12px 14px;
  resize: vertical;
  min-height: 120px;
}

.wp-contact-input:focus,
.wp-contact-textarea:focus {
  border-color: rgba(252, 74, 10, 0.55);
  box-shadow: 0 0 0 3px rgba(252, 74, 10, 0.1);
}

.wp-contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.wp-contact-submit {
  min-width: 148px;
  height: 48px !important;
  border: 0;
  cursor: pointer;
}

.wp-contact-form__note {
  font-size: 12px;
  color: var(--wp-c-muted);
  line-height: 1.5;
  max-width: 22em;
}


/* Responsive */
@media screen and (max-width: 1100px) {
  .wp-contact-quick__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wp-contact-main__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media screen and (max-width: 768px) {
  .wp-contact-page .wp-contact-head h2 {
    font-size: 22px;
  }
  .wp-contact-quick {
    padding: 16px 0 4px;
  }
  .wp-contact-quick__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .wp-contact-quick__meta strong {
    font-size: 18px;
  }
  .wp-contact-main {
    padding: 36px 0 12px;
  }
  .wp-contact-form-wrap {
    padding: 22px 16px;
  }
  .wp-contact-form__row--half {
    grid-template-columns: 1fr;
  }
  .wp-contact-channels {
    flex-direction: column;
    align-items: flex-start;
  }
}
