/* Page-specific styles for the military record research page */

.estimateContact a,
.estimateContactMobile a {
  text-decoration: underline;
}

.estimatformConMain .error-message {
  color: #b00020;
  font-size: 12px;
  margin-top: 4px;
}

.form-submission-error {
  color: #b00020;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
  text-align: left;
}

#estimateFormCon .form-submit,
#estimateFormConMobile .form-submit {
  width: 100%;
  padding: 10px;
  font-family: 'ui-sans', sans-serif;
}

@media only screen and (max-width: 768px) {
  /* `tel` added to the Legacy_Source's text/email list: the phone field is
     `type="tel"` here, where the Legacy_Source typed it `text`, so without this
     it keeps the 252px cap progen-styles.css applies and renders narrower than
     the fields around it. */
  #estimateFormConMobile input[type='text'],
  #estimateFormConMobile input[type='tel'],
  #estimateFormConMobile input[type='email'],
  #estimateFormConMobile textarea {
    width: 100%;
    max-width: 100%;
  }
}

/* Additional styles from Legacy_Source */

.fwr-green-section {
  background-color: #2F5346;
}

.fwr-green-section .homepageH2 {
  color: #ffffff;
}

.fwr-green-section .bodyText {
  color: #ffffff;
}

.fwr-green-section .imgContainer img {
  display: inline-block;
}

/*
 * Two-column body layout from the Legacy_Source: a flex row so the empty
 * `.fwr-side` image column stretches to `.fwr-main`'s height (a floated empty
 * div would collapse and its background would not show). Widths match the
 * Legacy_Source (30% / 70%). The `.fwr-side` background image is set inline
 * via `imageUrl` in the component; only layout lives here.
 */
.fwr-main-page {
  display: flex;
}





/*
 * Star icon on the record-category cards. The Legacy_Source sizes it with an
 * inline `style="height: 15px"` (fwr.html line 242); this is the same size as a
 * rule so the markup stays free of inline styles.
 *
 * The `.page-military-record-research` prefix is here for specificity, not
 * scoping -- this stylesheet only loads on this page. theme/styles.css carries
 * `.whatToExpectContainer:nth-child(1) img, .whatToExpectContainer:nth-child(4) img
 * { width: 58px }` and `.whatToExpectContainer:nth-child(2) img { width: 38px }`,
 * written for another page's use of `.whatToExpectContainer`. Those are (0,2,1)
 * and would blow the star up to 58px/38px, so this selector is (0,3,0) to beat
 * them, and `width: auto` neutralises the width they set.
 */
.page-military-record-research .whatToExpectContainer .fwr-star {
  height: 15px;
  width: auto;
}

.whatToExpectContainer {
  margin-bottom: 20px;
}

.whatToExpectContainer p {
  margin-top: 10px;
}


/* Responsive styles */
@media only screen and (max-width: 768px) {
  .fwr-main-page .fwr-side {
    display: none;
  }

  .fwr-main-page .fwr-main {
    width: 100%;
    float: none;
  }

  .whatToExpectContainer.full768 {
    width: 100%;
    float: none;
    text-align: center;
    margin-bottom: 20px;
  }

  .show768 {
    display: block !important;
  }

  .hide768 {
    display: none !important;
  }
}

@media only screen and (min-width: 769px) {
  .show768 {
    display: none !important;
  }

  .hide768 {
    display: block !important;
  }
}
