/* Contact Us — matches Next.js ContactView */
.hg-contact {
  background: #f4f7f9;
  min-height: 60vh;
}

.hg-contact__hero {
  position: relative;
  min-height: clamp(240px, 34vw, 340px);
  background-size: cover;
  background-position: center;
  background-color: #001133;
}

.hg-contact__hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 17, 51, 0.94) 0%,
    rgba(0, 29, 90, 0.72) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.hg-contact__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 76px) 20px 32px;
  color: #fff;
  text-align: center;
}

.hg-contact__crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
}

.hg-contact__crumbs a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.hg-contact__crumbs a:hover {
  text-decoration: underline;
}

.hg-contact__crumb-sep {
  opacity: 0.7;
}

.hg-contact__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00b4d8;
}

.hg-contact__hero-inner h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
}

.hg-contact__subtitle {
  margin: 0 auto;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.hg-contact__body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.hg-contact__layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

.hg-contact__aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hg-contact__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hg-contact__card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.hg-contact__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef3f8;
  color: #002d5a;
}

.hg-contact__card-icon svg {
  width: 22px;
  height: 22px;
}

.hg-contact__card h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #002d5a;
}

.hg-contact__card p,
.hg-contact__card a {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
}

.hg-contact__card a {
  color: #1565c0;
  font-weight: 600;
  text-decoration: none;
}

.hg-contact__card a:hover {
  text-decoration: underline;
}

.hg-contact__card-sub {
  margin-top: 4px !important;
  font-size: 12px !important;
  color: #64748b !important;
}

.hg-contact__social-block,
.hg-contact__faq {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.hg-contact__social-block h3,
.hg-contact__faq h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #002d5a;
}

.hg-contact__social-block p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

.hg-contact__social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hg-contact__social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #001133;
  color: #fff;
  transition: background 0.15s ease;
}

.hg-contact__social-row a:hover {
  background: #002d5a;
}

.hg-contact__social-row svg {
  width: 18px;
  height: 18px;
}

.hg-contact__faq ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hg-contact__faq li + li {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f6;
}

.hg-contact__faq strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: #002d5a;
}

.hg-contact__faq p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
}

.hg-contact__main {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 28px rgba(0, 29, 90, 0.06);
}

.hg-contact__form {
  padding: 28px 28px 32px;
}

.hg-contact__form-head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid #002d5a;
}

.hg-contact__form-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #002d5a;
}

.hg-contact__form-head p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.hg-contact__req {
  color: #c62828;
}

.hg-contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hg-contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.hg-contact__field > span {
  font-size: 13px;
  font-weight: 700;
  color: #002d5a;
}

.hg-contact__field input,
.hg-contact__field select,
.hg-contact__field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #b8c9d8;
  border-radius: 2px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: #1e293b;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}

.hg-contact__field input:hover,
.hg-contact__field select:hover,
.hg-contact__field textarea:hover {
  border-color: #7a9ab5;
  background: #f8fbfd;
}

.hg-contact__field input:focus,
.hg-contact__field select:focus,
.hg-contact__field textarea:focus {
  outline: none;
  border-color: #002d5a;
  background: #eef6fc;
  box-shadow: 0 0 0 1px #002d5a;
}

.hg-contact__field textarea {
  resize: vertical;
  min-height: 160px;
}

.hg-contact__textarea-wrap {
  position: relative;
}

.hg-contact__counter {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 11px;
  color: #94a3b8;
  pointer-events: none;
}

.hg-contact__error {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #c62828;
}

.hg-contact__actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.hg-contact__submit {
  min-width: 180px;
  padding: 12px 24px;
  border: none;
  border-radius: 2px;
  background: #002d5a;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.hg-contact__submit:hover:not(:disabled) {
  background: #001d3d;
}

.hg-contact__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hg-contact__privacy {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.hg-contact__privacy a {
  color: #1565c0;
  text-decoration: none;
}

.hg-contact__privacy a:hover {
  text-decoration: underline;
}

.hg-contact__success {
  padding: 48px 28px 56px;
  text-align: center;
}

.hg-contact__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 28px;
  font-weight: 800;
}

.hg-contact__success h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #002d5a;
}

.hg-contact__success p {
  margin: 0 0 20px;
  font-size: 15px;
  color: #64748b;
}

.hg-contact__success-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #002d5a;
  border-radius: 2px;
  background: #fff;
  color: #002d5a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.hg-contact__success-btn:hover {
  background: #f4f7f9;
  color: #002d5a;
}

/* Full-width GeneratePress overrides */
body.hg-contact-page {
  background: #f4f7f9 !important;
}

body.hg-contact-page .site.grid-container,
body.hg-contact-page #page {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.hg-contact-page .site-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.hg-contact-page #primary,
body.hg-contact-page .content-area,
body.hg-contact-page .site-main,
body.hg-contact-page .inside-article {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

body.hg-contact-page .site-main {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.hg-contact-page .site-content,
body.hg-contact-page #content {
  background: #f4f7f9 !important;
}

body.hg-contact-page #secondary,
body.hg-contact-page .widget-area {
  display: none !important;
}

body.hg-contact-page .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

body.hg-contact-page .entry-header {
  display: none !important;
}

@media (max-width: 960px) {
  .hg-contact__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hg-contact__form {
    padding: 22px 18px 28px;
  }

  .hg-contact__row {
    grid-template-columns: 1fr;
  }
}
