/* Loaded after Bootstrap and the main site stylesheet. */

/* Homepage card buttons retain the site-orange text when hovered. */
body.homepage .btn:hover {
  background-color: #F37D1C !important;
  color: var(--white) !important;
}

/* The logo SVG has a cropped artboard and should occupy the intended header space. */
.header-logo {
  width: 420px !important;
  height: 102px !important;
  max-width: none !important;
  display: block;
  object-fit: fill;
  padding-top: 3% !important;
}

@media (max-width: 650px) {
  .navbar .container-fluid {
    flex-direction: column;
    align-items: center;
  }

  .navbar .navbar-brand {
    position: static;
    transform: none;
    order: 1;
    margin: 0 auto !important;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .navbar .navbar-toggler {
    order: 2;
    width: 100% !important;
    margin: 8px 0 0 !important;
    z-index: auto;
  }

  .navbar .navbar-collapse {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    margin-top: 0;
  }

  .header-logo { width: 300px !important; height: 66px !important; }
}

/* The track form's parent must grow with the fields on small screens. */
.Text_Padding:has(#trackSubmissionForm) {
  border: 0 !important;
}

/* Remove Bootstrap's white border from the orange form panel itself. */
.bg-buttonhover:has(#trackSubmissionForm) {
  border: 0 !important;
  padding-bottom: 32px;
}

.Text_Padding .card:has(#trackSubmissionForm) {
  width: min(100%, 920px) !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  margin: 0 auto !important;
  padding: clamp(18px, 3vw, 36px) !important;
  border: 0 !important;
  border-radius: 16px !important;
}

/* Give the contact form the same modern card treatment as track submission. */
.contact-form-card {
  width: min(100%, 920px) !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  margin: 0 auto !important;
  padding: clamp(18px, 3vw, 36px) !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 36px rgba(50, 53, 56, .18) !important;
}

#contact_us {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

#contact_us .form-group {
  position: relative;
  padding-bottom: 24px !important;
  margin-bottom: 0 !important;
}

#contact_us label {
  display: block;
  margin-bottom: 7px;
  font-family: 'Oswald-Regular' !important;
  font-size: 1.05em !important;
}

#contact_us .form-control {
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #d5d9df;
  border-radius: 9px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#contact_us .form-control:focus {
  border-color: var(--button);
  box-shadow: 0 0 0 3px rgba(112, 117, 203, .16) !important;
}

#contact_us #sendBtn {
  width: min(100%, 360px);
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: var(--white);
  font-family: 'Oswald-Regular' !important;
  font-size: 1.08em !important;
  transition: transform .2s ease, background-color .2s ease;
}

#contact_us #sendBtn:not(:disabled):hover {
  transform: translateY(-1px);
  background: var(--buttonhoverhover);
}

#contact_us #sendBtn:disabled {
  opacity: .58;
  cursor: not-allowed;
  background: #7b7f86;
}

#trackSubmissionForm .form-group.text-center {
  display: flex;
  justify-content: center;
  padding: 0 0 8px !important;
  margin: 0;
}

@media (max-width: 650px) {
  .Text_Padding .card:has(#trackSubmissionForm) {
    width: 100% !important;
    padding: 16px !important;
  }

  #trackSubmissionForm #trackSendBtn {
    width: 100% !important;
    max-width: none;
  }

  .contact-form-card { width: 100% !important; padding: 16px !important; }
  #contact_us .form-group { padding-bottom: 18px !important; }
  #contact_us #sendBtn { width: 100%; max-width: none; }
}
