/* Mobile repair for the HNGPL new connection page. */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --hngpl-green: #5BB12F;
  --hngpl-green-dark: #2f7d1f;
  --hngpl-gold: #fcb900;
  --hngpl-bg: #f6f9f3;
  --hngpl-card: #ffffff;
  --hngpl-text: #17251d;
  --hngpl-muted: #607066;
  --hngpl-border: #dfeada;
  --hngpl-radius: 14px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body.index {
  background:
    radial-gradient(circle at top left, rgba(91, 177, 47, 0.18), transparent 34rem),
    linear-gradient(135deg, #ffffff 0%, var(--hngpl-bg) 55%, #eef7ea 100%) !important;
  color: var(--hngpl-text);
  font-family: "Open Sans", Arial, Helvetica, sans-serif !important;
  margin: 0;
}

body.index *,
body.index *::before,
body.index *::after {
  box-sizing: border-box;
}

body.index img,
body.index iframe,
body.index table {
  max-width: 100%;
}

body.index .form-control,
body.index input,
body.index select,
body.index textarea {
  max-width: 100% !important;
}

/* Keep the old desktop page stable. */
@media (min-width: 992px) {
  body.index #header.navbar {
    background: #fff !important;
  }

  body.index .Reg-form {
    max-width: 1180px;
  }

  body.index #print {
    background: #fff;
    border: 1px solid var(--hngpl-border);
    border-radius: var(--hngpl-radius);
    box-shadow: 0 10px 30px rgba(91, 177, 47, 0.12);
    padding: 22px 28px;
  }

  body.index #print td.Label {
    width: 18% !important;
    vertical-align: top !important;
  }

  body.index #print td.Input {
    width: 32% !important;
    vertical-align: top !important;
  }
}

/* Phones and tablets: rebuild the legacy table form into one clean column. */
@media (max-width: 991px) {
  body.index {
    background: var(--hngpl-bg) !important;
    padding: 0 !important;
  }

  body.index #header.navbar,
  body.index #header.navbar-fixed-top,
  body.index .navbar-fixed-top {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 0 12px !important;
    border: 0 !important;
    background: linear-gradient(135deg, var(--hngpl-green-dark), var(--hngpl-green)) !important;
    box-shadow: 0 6px 18px rgba(91, 177, 47, 0.24);
  }

  body.index div[style*="height: 135px"],
  body.index div[style*="height:135px"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.index #header > .container,
  body.index #header .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 12px !important;
  }

  body.index #header .navbar-header {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 8px;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.index #header .navbar-brand {
    display: block !important;
    grid-column: 1;
    width: 52px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
  }

  body.index .HomeLogo {
    display: block;
    width: 52px !important;
    max-width: 52px !important;
    height: auto !important;
    max-height: 52px !important;
  }

  body.index #header .navbar-header > p {
    grid-column: 2;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
  }

  body.index #header .navbar-toggle {
    grid-column: 3;
    float: none !important;
    margin: 0 !important;
    padding: 10px !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  body.index #header .navbar-toggle .icon-bar {
    background: #fff !important;
  }

  body.index .w3-row-padding,
  body.index .w3-row-padding .col {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.index .w3-row-padding .col {
    display: grid !important;
    gap: 8px;
    margin-top: 10px !important;
  }

  body.index .png,
  body.index .emergency {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 9px 12px !important;
    margin: 0 !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
  }

  body.index .png p,
  body.index .emergency p {
    position: static !important;
    left: auto !important;
    top: auto !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: break-word;
  }

  body.index .png p:last-child,
  body.index .emergency p:last-child {
    margin-top: 2px !important;
    font-size: 16px !important;
    font-weight: 700;
  }

  body.index #bs-example-navbar-collapse-1 {
    width: 100% !important;
    max-height: 72vh;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow-y: auto !important;
  }

  body.index .navbar-nav {
    width: 100%;
    margin: 0 !important;
  }

  body.index .navbar-default .navbar-nav > li > a {
    color: #fff !important;
    padding: 12px 10px !important;
    border-radius: 8px;
    white-space: normal !important;
  }

  body.index .navbar-default .navbar-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.18) !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-left: 12px !important;
  }

  body.index .navbar-default .navbar-nav .dropdown-menu a {
    color: #fff !important;
    white-space: normal !important;
  }

  body.index .top-div {
    display: none !important;
  }

  body.index .Reg-form,
  body.index .Reg-form[style],
  body.index .Reg-form .container,
  body.index .Reg-form .container[style],
  body.index .Reg-form .Register,
  body.index .Reg-form .Register[style] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.index #print {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin: 10px auto 18px !important;
    padding: 16px 14px !important;
    background: var(--hngpl-card) !important;
    border: 1px solid var(--hngpl-border) !important;
    border-radius: var(--hngpl-radius) !important;
    box-shadow: 0 8px 24px rgba(91, 177, 47, 0.14);
    overflow: visible !important;
  }

  body.index #print .col-lg-12,
  body.index #print .row {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.index #print table.table,
  body.index #print table.table > tbody,
  body.index #print table.table > tbody > tr,
  body.index #print table.table > tbody > tr > td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.index #print table.table {
    border: 0 !important;
    margin: 0 !important;
  }

  body.index #print table.table > tbody > tr {
    padding: 0 0 10px !important;
    margin: 0 0 10px !important;
    border-bottom: 1px solid #edf2ee !important;
  }

  body.index #print table.table > tbody > tr:last-child {
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  body.index #print table.table > tbody > tr > td {
    float: none !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
    min-width: 0 !important;
  }

  body.index #print table.table > tbody > tr > td:empty {
    display: none !important;
  }

  body.index #print td.Label,
  body.index #print td.Input {
    display: block !important;
    width: 100% !important;
  }

  body.index #print td.Label {
    padding: 8px 0 5px !important;
  }

  body.index #print td.Input {
    padding: 0 0 4px !important;
  }

  body.index #print .section-title h3,
  body.index #print h3 {
    margin: 8px 0 !important;
    padding: 9px 10px !important;
    border-radius: 9px;
    font-size: 15px !important;
    line-height: 1.35 !important;
    text-align: center !important;
    word-break: break-word;
  }

  body.index #print .section-title h3:first-child {
    background: transparent !important;
    color: var(--hngpl-green-dark) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    padding-top: 0 !important;
  }

  body.index #print h3[style*="green"] {
    background: #edf8e9 !important;
    color: var(--hngpl-green-dark) !important;
  }

  body.index #print h3[style*="red"] {
    background: #fff1f1 !important;
    color: #b91c1c !important;
  }

  body.index #print h3[style*="blue"] {
    background: #eef5ff !important;
    color: #1f4f9a !important;
  }

  body.index #print .text-label,
  body.index #print td.Label span {
    display: block !important;
    color: var(--hngpl-text) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    white-space: normal !important;
  }

  body.index .form-control,
  body.index input[type="text"],
  body.index input[type="email"],
  body.index input[type="number"],
  body.index input[type="file"],
  body.index select,
  body.index textarea {
    display: block !important;
    width: 100% !important;
    min-height: 46px !important;
    height: auto !important;
    margin: 0 0 8px !important;
    padding: 11px 12px !important;
    border: 1px solid var(--hngpl-border) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--hngpl-text) !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
  }

  body.index select {
    padding-right: 36px !important;
  }

  body.index textarea {
    min-height: 96px !important;
  }

  body.index input[type="file"] {
    padding: 9px !important;
    font-size: 14px !important;
  }

  body.index input:focus,
  body.index select:focus,
  body.index textarea:focus {
    border-color: var(--hngpl-green) !important;
    box-shadow: 0 0 0 3px rgba(11, 122, 53, 0.16) !important;
    outline: 0 !important;
  }

  body.index input[name="Captcha"],
  body.index input[name="otp"],
  body.index #fill {
    text-align: center;
    font-weight: 700;
    letter-spacing: 3px;
  }

  body.index td.Input img[src*="captcha.php"] {
    display: block !important;
    width: 100% !important;
    max-width: 220px !important;
    height: auto !important;
    margin: 2px 0 10px !important;
    border: 1px solid var(--hngpl-border);
    border-radius: 8px;
  }

  body.index #print img[width="300px"],
  body.index #print iframe[style*="300px"] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 220px;
    border: 1px solid var(--hngpl-border) !important;
    border-radius: 8px;
  }

  body.index #print table table,
  body.index #print table table tbody,
  body.index #print table table tr,
  body.index #print table table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
  }

  body.index .Reg-btn,
  body.index input[type="submit"],
  body.index button[type="submit"],
  body.index #ResnedOtp {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    margin: 8px 0 !important;
    padding: 12px 14px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--hngpl-green), var(--hngpl-green-dark)) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
    white-space: normal !important;
    box-shadow: none !important;
    float: none !important;
  }

  body.index button.Reg-btn[onclick*="location"] {
    background: #eef6f0 !important;
    color: var(--hngpl-green-dark) !important;
    border: 1px solid var(--hngpl-border) !important;
  }

  body.index span[style*="color:Red"],
  body.index p[style*="color:Red"] {
    color: #c62828 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    margin: 4px 0 8px !important;
  }

  body.index #myBtn {
    width: 44px !important;
    height: 44px !important;
    right: 12px !important;
    bottom: 14px !important;
    border-radius: 50% !important;
    background: var(--hngpl-green) !important;
  }

  body.index #contact.contact {
    padding: 16px 10px !important;
  }

  body.index #contact .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    border-radius: var(--hngpl-radius);
    background: var(--hngpl-green-dark) !important;
  }

  body.index #contact .row,
  body.index #contact .col-md-4 {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  body.index #contact .footer-contact-info {
    margin-bottom: 16px;
    color: #fff !important;
  }

  body.index #contact h3,
  body.index #contact h4 {
    color: #fff !important;
  }

  body.index #contact a,
  body.index #contact span {
    word-break: break-word;
  }
}

@media (max-width: 420px) {
  body.index #header .navbar-header {
    grid-template-columns: 46px minmax(0, 1fr) 42px;
    gap: 7px;
  }

  body.index .HomeLogo,
  body.index #header .navbar-brand {
    width: 46px !important;
    max-width: 46px !important;
  }

  body.index #header .navbar-header > p {
    font-size: 15px !important;
  }

  body.index #print {
    width: calc(100% - 14px) !important;
    max-width: calc(100% - 14px) !important;
    padding: 14px 12px !important;
  }
}

/* Simplified public header: no legacy menu bar and no events strip. */
body.index #bs-example-navbar-collapse-1,
body.index #header .navbar-toggle,
body.index .top-div {
  display: none !important;
}

body.index #header.navbar,
body.index .navbar-fixed-top {
  position: static !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  border: 0 !important;
  background: linear-gradient(135deg, var(--hngpl-green-dark), var(--hngpl-green)) !important;
  box-shadow: 0 6px 18px rgba(91, 177, 47, 0.24);
}

body.index div[style*="height: 135px"],
body.index div[style*="height:135px"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.index #header > .container,
body.index #header .container {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 14px !important;
}

body.index #header .navbar-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.index #header .navbar-brand {
  display: block !important;
  width: 54px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  flex: 0 0 auto;
}

body.index .HomeLogo {
  display: block;
  width: 54px !important;
  max-width: 54px !important;
  height: auto !important;
}

body.index #header .navbar-header > p {
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
}

body.index .w3-row-padding,
body.index .w3-row-padding .col {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.index .w3-row-padding .col {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px !important;
}

body.index .png,
body.index .emergency {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  flex: 1 1 260px;
}

body.index .png p,
body.index .emergency p {
  position: static !important;
  left: auto !important;
  top: auto !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: break-word;
}

body.index .png p:last-child,
body.index .emergency p:last-child {
  margin-top: 2px !important;
  font-size: 16px !important;
  font-weight: 700;
}

/* Simple compact contact footer. */
body.index .simple-contact-footer {
  background: var(--hngpl-green-dark) !important;
  color: #fff;
  padding: 22px 12px;
  margin-top: 16px;
  text-align: center;
}

body.index .simple-contact-footer .container {
  width: 100% !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.index .simple-contact-footer h3 {
  color: #fff !important;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

body.index .simple-footer-name,
body.index .simple-footer-hours,
body.index .simple-footer-copy {
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
}

body.index .simple-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 12px 0;
}

body.index .simple-contact-links a {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none !important;
  word-break: break-word;
}

@media (max-width: 520px) {
  body.index #header .navbar-header > p {
    font-size: 16px !important;
  }

  body.index .HomeLogo,
  body.index #header .navbar-brand {
    width: 46px !important;
    max-width: 46px !important;
  }

  body.index .w3-row-padding .col {
    display: grid !important;
  }

  body.index .png,
  body.index .emergency {
    width: 100% !important;
    flex-basis: auto;
  }

  body.index .simple-contact-links {
    display: grid;
    gap: 8px;
  }
}
