/*
 * intake-shared.css
 * Shared styles for all HALT program intake landing pages.
 */

.btn,
.btn-success,
.panel,
.panel-heading,
.panel-title > a,
.modal-content,
.modal-header {
  background-image: none !important;
}

a {
  text-decoration: underline;
}

.panel-title > a::before {
  content: "+ ";
  font-weight: 700;
}

.panel-title > a[aria-expanded="true"]::before {
  content: "− ";
}

.panel,
.panel-default,
.panel-default > .panel-heading,
.modal-content {
  border-color: #595959 !important;
}

.btn,
.btn-success {
  border: 2px solid #ffffff !important;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  border: 2px solid #595959;
}

a:focus,
button:focus,
input:focus,
.panel-title > a:focus {
  outline: 3px solid #1a1a1a;
  outline-offset: 2px;
}

.panel-body {
  text-align: left;
}

#get-started {
  background-color: #3a7a3a !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 2px #f2f2f2;
  min-height: 44px;
  width: auto;
  padding: 10px 24px;
}

#get-started:hover,
#get-started:focus {
  background-color: #3a7a3a !important;
  color: #ffffff !important;
}

/* ── Modal layout ── */
.modal-header {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 20px 24px 16px;
  border-bottom: 2px solid #e0e0e0;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: #1a1a1a;
  width: 100%;
}

.modal-header .close {
  font-size: 2.4rem;
  line-height: 1;
  padding: 0 4px;
  margin: 0;
  opacity: 0.5;
}

.modal-header .close:hover,
.modal-header .close:focus {
  opacity: 1;
}

.modal-body {
  padding: 20px 24px 24px;
}

/* ── Modal form fields ── */
.modal-body form label {
  display: block;
  font-weight: 600;
  font-size: 0.9em;
  margin-top: 14px;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.modal-body form input[type="text"],
.modal-body form input[type="email"],
.modal-body form input[type="tel"] {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 4px;
  box-sizing: border-box;
}

.modal-body form input[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
}

.modal-support {
  margin-top: 16px;
  font-size: 0.9em;
  color: #444;
}

@media (max-width: 767px) {
  .hero-image {
    display: none;
  }
}

/* ── Landing page layout ── */
.landing-main       { padding: clamp(16px, 5vw, 96px); }
.logo-wrapper       { padding-bottom: 0; text-align: center; }
.landing-logo       { width: 50%; height: auto; display: block; margin: 0 auto; }
.section-content    { padding: 15px; }
.footer-content     { padding: 30px; }
.providers-placeholder { background-color: #f5f5f5; padding: 15px; }

/* ── Typography ── */
.landing-title {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 36pt;
  padding-top: 20px;
  padding-bottom: 10px;
  margin: 0;
  text-align: left;
}

p,
.para-text {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 10pt;
}

.para-text {
  padding-top: 0;
  padding-bottom: 1em;
  color: black;
}

.section-heading { font-family: 'Lato', sans-serif; font-weight: 400; font-size: 24pt; margin: 0; }
.section-p       { padding-top: 15px; }

/* ── Classes replacing former inline style attributes ──
   Kept at the end of the file so they win over earlier equal-specificity
   rules (.section-content, .footer-content, Bootstrap classes), matching the
   precedence the inline styles had. */
.hero-image {
  width: 100%;
  height: auto;
  margin: clamp(16px, 5vw, 75px) 0 0 auto;
}
.hero-text-column {
  background-color: #ffffff;
}
.header-logo-block {
  text-align: left;
  padding-bottom: 0;
}
.header-logo-image {
  display: inline-block;
  max-width: 100%;
  height: 70px;
}
.hero-heading {
  font-size: xx-large;
  padding-top: 20px;
  padding-bottom: 10px;
  margin: 0;
  text-align: left;
}
.hero-introduction {
  padding-top: 20px;
  padding-bottom: 30px;
  font-size: 0.95em;
  color: black;
}
.content-heading {
  font-size: x-large;
  margin: 0;
}
.subsection-heading {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin: 0 0 10px 0;
}
.state-agency-logo {
  width: 80px;
  height: auto;
  display: block;
  margin-bottom: 16px;
}
.landing-video-wrapper {
  text-align: center;
  padding: 15px;
  max-width: 100%;
  min-height: 260px;
}
.section-content-flush-bottom {
  padding-bottom: 0;
}
.footer-content-indented {
  padding-top: 0;
  padding-left: 15px;
}
.clearfix-spaced {
  margin-top: 24px;
}
.provider-search-wrapper {
  position: relative;
  margin-bottom: 12px;
}
.provider-search-input {
  padding-right: 32px;
}
.provider-search-clear-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #ccc;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.provider-no-results-message {
  display: none;
  color: #888;
  margin-top: 8px;
}
