* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Main Styling */
html,
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #333;
  text-decoration: none;
}

h1,
h2,
h3 {
  padding-bottom: 20px;
}

p {
  margin: 10px 0;
}

header {
  flex: 1 0 auto;
}

/* Utility classes */
.container {
  margin: auto;
  max-width: 1100px;
  overflow: auto;
  padding: 0 50px;
}

.text-primary {
  color: #106eea;
}

.lead {
  font-size: 20px;
}

.btn {
  display: inline-block;
  font-size: 18px;
  color: #fff;
  background: #333;
  padding: 13px 20px;
  border: none;
  cursor: pointer;
}

.btn-light {
  background: #f4f4f4;
  color: #333;
}

.btn:hover, .btn-back:hover {
  background: #106eea;
  color: #fff;
}

.bg-dark {
  background: #333;
  color: #fff;
}
.bg-light {
  background: #f4f4f4;
  color: #333;
}
.bg-primary {
  background: #106eea;
  color: #333;
}

.clr {
  clear: both;
}

.py-1 {
  padding: 10px 0;
}
.py-2 {
  padding: 20px 0;
}
.py-3 {
  padding: 30px 0;
}

.l-heading {
  font-size: 40px;
}

.flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-next, .btn-back {
  background: #f4f4f4;
  color: #333;
  border: 1px solid black;
}

.btn-standard {
  width: auto; 
  padding: 10px 15px; 
  font-size: 16px; 
  margin: 0 10px;
}

.page-title > legend{
  text-align: center;
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

#phoneDisplayLink {
  font-size: 1.2em;
  display: flex;
  align-items: center;
}

#form-container input.submit-button {
  width: auto;
  min-width: unset;
}

/* Navbar */
#navbar .logo {
  text-shadow: 0 0 2px rgb(173, 173, 173);
}

#navbar {
  background-image: linear-gradient(
    to top,
    rgba(247, 247, 247, 0),
    rgb(255, 255, 255)
  );
  color: #106eea;
  overflow: auto;
}

#navbar a {
  color: #2d2d2d;
}

#navbar h1 {
  float: left;
  padding-top: 20px;
}

#navbar ul {
  list-style: none;
  float: right;
}

#navbar ul li {
  float: left;
}

#navbar ul li a {
  display: block;
  margin: 20px;
  text-align: center;
  -webkit-transition: text-shadow 0.2s linear;
  -moz-transition: text-shadow 0.2s linear;
  -ms-transition: text-shadow 0.2s linear;
  -o-transition: text-shadow 0.2s linear;
  transition: text-shadow 0.2s linear;
}

#navbar ul li a:hover,
#navbar ul li a.current {
  text-shadow: 2px 2px 1px #cccccc;
  text-decoration: underline;
}

/* Showcase */
#showcase {
  min-height: 800px;
}

#showcase .showcase-content {
  color: #2d2d2d;
  text-align: center;
  padding-top: 170px;
}

#showcase .showcase-content h1 {
  font-size: 48px;
  line-height: 2.5rem;
}

#showcase .showcase-content p {
  padding-bottom: 16px;
  line-height: 1.7rem;
  font-weight: lighter;
}

#select-product-area {
  margin-top: 5.6rem;
}

#select-product {
  vertical-align: baseline;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 32px rgb(45 45 45 / 15%);
  margin: 0 auto;
  margin-bottom: 5rem;
  padding: 20px 32px 24px;
  text-align: center;
  transform: none;
  z-index: 110;
  position: relative;
  left: auto;
  top: auto;
  display: inline-block;
  min-width: 500px;
}

#select-product-label {
  text-align: left;
  color: #106eea;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 12px;
}

footer {
  flex-shrink: 0;
}

#main-footer {
  text-align: left;
  bottom: 0; /* Position it at the bottom */
  width: 100%; /* Make it span the full width of the viewport */
  max-width: 1100px;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgb(255, 255, 255)
  );
  color: #2d2d2d;
  padding: 20px 40px;
  font-size: 11px;
  font-weight: 500;
  max-width: 1110px;
  min-width: 900px;
  margin: 0 auto;
  z-index: 100; /* Ensure it stays on top */
}

#footerDisplay{
  font-size: 16px;
  font-weight: 700;
}

#subnav {
  text-align: left;
  margin-bottom: 2rem;
}

#subnav li {
  font-weight: bold;
  display: inline-block;
  margin-right: 3rem;
}

#subnav li a:hover {
  text-decoration: underline;
}

#main-footer #copyright {
  margin-bottom: 2rem;
  display: block;
}
#main-footer #copyright #claim-text {
  text-transform: uppercase;
  font-weight: bold;
  display: block;
}

#product-select {
  background-color: transparent;
  border: none;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
  outline: none;
  border-bottom: 2px solid #2d2d2d;
  padding: 0.25em 0.5em 0.25em 0em;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1.5rem;
  background-color: #fff;
}

#quote-button:hover {
  box-shadow: 0 0 2px #2d2d2d;
}
#quote-button:active {
  box-shadow: 0 0 0;
}
#quote-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #106eea;
  color: white;
  padding: 1rem;
  border-radius: 4px;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

#form-container,
#results-container {
  background-color: white;
  padding: 2rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 32px rgb(45 45 45 / 15%);
  z-index: 120;
  margin: 50px 0;
}

#form-container input,
#form-container select {
  max-width: 400px;
  min-width: 400px;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.7rem;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #2d2d2d;
}

#quote-form {
  width: auto;
  margin: auto;
}

#quote-form > div {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  margin-top: 25px;
}

#quote-form > div > .form-group > label {
  max-width: 400px
}

#form-container-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-content: center;
}

#quote-go-back,
#results-go-back {
  border-radius: 2px;
  cursor: pointer;
  padding: 0rem 0.5rem;
}
#quote-go-back:hover,
#results-go-back:hover {
  background-color: #106eea;
  color: white;
}
#product-label,
#result-product-label {
  color: #000000;
}
table {
  padding: 10px;
  margin: auto;
}

table td {
  padding: 8px;
  border: solid 1px black;
  border-radius: 3px;
}

.mb-3 {
  margin-bottom: 1rem;
}

.jsonform-required > label:after {
  content: " *";
  color: red;
}

.jsonform-hasrequired:after {
  content: "* Required field";
  display: block;
  color: red;
  padding-top: 1em;
}

.tooltip-r {
  margin-left: 5px;
}

.tooltip-r:after {
  display: inline-block;
  content: "";
  background-image: url("../img/orange-question-circle.svg");
  background-size: 1em 1em;
  height: 1em;
  width: 1em;
}
.nav-logo {
  height: 60px;
  width: auto;
}

#agent-info-form {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#agent-info-form > div {
  display: flex;
  justify-content: space-between;
}

#agent-info-form > div > label {
  margin-right: 10px;
}

#results-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#form-container-header {
  display: flex;
  justify-content: space-between;
}

#results-table-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#download-button {
  align-self: flex-end;
}

button.btn-primary:disabled,
input.btn-primary:disabled {
  background-color: #ccc !important;
  color: #666 !important;
  border-color: #aaa !important;
  cursor: not-allowed !important;
  pointer-events: none;
  box-shadow: none !important;
}

button.btn-run-partial-quote:disabled {
  background-color: #ccc !important;
  color: #666 !important;
  border-color: #aaa !important;
  cursor: not-allowed !important;
  pointer-events: none;
  box-shadow: none !important;
}

button.btn-run-partial-quote:disabled:hover,
button.btn-run-partial-quote:disabled:focus {
  background-color: #ccc !important;
  color: #666 !important;
  border-color: #aaa !important;
  box-shadow: none !important;
}

/* Code from https://www.w3schools.com/howto/howto_js_snackbar.asp */
#snackservice {
  visibility: hidden;
  min-width: 250px;
  max-width: 400px;
  width: auto;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  right: 30px;
  bottom: 30px;
  left: auto;
  margin-left: 0;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
}

#snackservice.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

#snackservice.show.error {
  visibility: visible;
  -webkit-animation: fadein 0.5s;
  animation: fadein 0.5s;
}

#snackservice.error {
  background-color: #d32f2f !important;
  color: #fff !important;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}