/* ---------------------------------------------------------------------------
 * theme-overrides.css
 *
 * Loaded AFTER all original stylesheets. This file contains ONLY things the
 * original site applied outside of CSS, plus the small amount of scaffolding the
 * rebuild needs. Values are copied from the original page / scripts, not invented.
 * ------------------------------------------------------------------------- */

/* 1. Colours the original set via inline jQuery at the bottom of the page:
 *      $('.form-inner-box').css("background-color", '#c4cbd5');
 *      $('.divider-1 span').css("background-color", '#c4cbd5');
 *      $('.btn-link-2').css("background-color", '#c4cbd5');
 *      $('.services .panel-primary > .panel-heading').css("background-color", '#c4cbd5');
 */
.form-inner-box {
  background-color: #c4cbd5;
}
.divider-1 span {
  background-color: #c4cbd5;
}
.btn-link-2 {
  background-color: #c4cbd5;
}
.services .panel-primary > .panel-heading {
  background-color: #c4cbd5;
}

/* 2. The hero background was applied by jquery.backstretch at runtime:
 *      $('.top-content').backstretch("assets/img/backgrounds/top_bg_img_.jpg");
 *    Reproduced in CSS so the hero renders without any JS.
 */
.top-content {
  background-image: url("/assets/img/top_bg_img_.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 3. The loader overlay is a full-screen white div dismissed by jQuery on load.
 *    Hide it by default so the page is never covered if JS is slow or blocked.
 */
.loader {
  display: none !important;
}

/* 4. Bootstrap's .collapse{display:none} needs the `in` class that bootstrap.min.js adds.
 *    Our vanilla JS toggles .in, so accordions work; nothing to override here.
 *    (kept as a comment so the dependency is explicit)
 */

/* 5. Native form scaffolding. The original contact form was styled only for the
 *    Bootstrap sky-forms layout. Utility classes (mx-6, text-ink, ...) are applied on
 *    the elements themselves in dist/index.html; only the error colour and the
 *    disabled state live here, because Tailwind's utility layer is loaded last and
 *    this file must not fight it.
 */

/* The site's form-elements.css styles input[type="text"] but not input[type="email"],
 * so an email input fell back to Bootstrap's 34px .form-control height and sat 6px
 * shorter than the text fields beside it. Mirror the text-input styling so all four
 * fields in the appointment form line up. Same values as form-elements.css. */
input[type="email"] {
  height: 40px;
  margin: 0;
  padding: 0 20px;
  vertical-align: middle;
  background: #f8f8f8;
  border: 0 solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 300;
  line-height: 50px;
  color: #888;
  transition: all 0.3s;
  box-shadow: none;
}
input[type="email"]:focus {
  outline: 0;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 4px;
  box-shadow: none;
}
input[type="email"]::placeholder {
  color: #888;
}

.form-status.is-error {
  color: #b32d2d;
}
.sb-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* 6. Visible keyboard focus for the rebuilt interactive controls. */
.panel-heading[role="button"]:focus-visible,
.navbar-toggle:focus-visible,
.scroll-link:focus-visible {
  outline: 2px solid #019299;
  outline-offset: 2px;
}

/* 7. The original navbar collapses below 768px via Bootstrap's .navbar-collapse.
 *    Our JS toggles .in on #top-navbar-1 exactly like Bootstrap did.
 */
