/* Global styles */

@import url("https://fonts.googleapis.com/css2?family=Megrim&family=Open+Sans:wght@300;400;600&display=swap");
* {
  box-sizing: border-box;
}

body {
  font-family: "Open Sans";
  font-weight: 400;
  color: #e0e3e7;
}

h2 {
  text-align: center;
  font-weight: 400;
  color: #e0e3e7;
}

h3 {
  text-align: center;
  line-height: 1.3;
  font-weight: 400;
  color: #e0e3e7;
}

h4 {
  text-align: center;
  margin: 5px 5px 0px 5px;
  padding: 0px;
  display: flex;
  color: #e0e3e7;
  font-weight: 400;
}

.quote-heading {
  text-align: center;
  color: #e0e3e7;
  font-weight: 400;
}

.stage-heading {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.error-message {
  color: red;
  margin-bottom: 5px;
  text-align: center;
}

/* Iframe style */

#quoteIframe {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 450px;
  height: 560px;

  border: none;
  overflow: hidden;

  background-color: #565453;
  z-index: 9999;
  color: #e0e3e7;
}

/* Progress bar */

.progress-container {
  width: 70px;
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
}
.steps {
  display: flex;
  justify-content: space-between;
}
.circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgb(210, 208, 208, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-current {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgb(210, 208, 208);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forms  */

.form-container {
  margin: 15px;
}

.form-content-no-button {
  display: flex;
  padding: 60px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 2px;
  color: #e0e3e7;
}

.table-form-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.table-form-group {
  display: flex;
  align-items: center;
  margin: 10px;
}

.address-form-group {
  display: none;
  margin: 0px 10px 2px 10px;
}

.address-line-1 {
  padding: 8px;
  border: 1px solid lightgrey;
  width: 100%;
  margin-bottom: 4px;
}

.address-line-2 {
  display: flex;
  justify-content: space-between;
}

.city-input {
  padding: 8px;
  border: 1px solid lightgrey;
  width: 60%;
}

.zip-input {
  padding: 8px;
  border: 1px solid lightgrey;
  width: 30%;
}

.notes-label {
  margin-bottom: 2px;
  width: 100%;
  padding: 5px 0px 5px 10px;
  color: #e0e3e7;
}

.notes-textarea {
  margin-top: 5px;
  margin-left: 8px;
  padding: 6px 2px 2px 6px;
  border: 2px solid #000;
  font-family: "Open Sans";
  width: 100%;
}

.notes-textarea::placeholder {
  color: rgba(0, 0, 0, 0.7);
}

.subtext {
  font-size: 12px;
  color: #e0e3e7;
  margin: 0;
  padding-right: 5px;
}

.subtext2 {
  font-size: 11px;
  color: #e0e3e7;
  margin: 0px;
  padding: 0px;
  text-align: center;
  display: flex;
}

.subtext3 {
  font-size: 13px;
  color: #e0e3e7;
  margin-bottom: 2px;
}

.select {
  color: #333;
  padding: 8px 2px 8px 2px;

  border: 2px solid #000;
  border-radius: 0px;
  cursor: pointer;
  text-align: center;
}

.checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 2px solid #000;
  width: 16px;
  height: 16px;
  padding: 7px;
  background-color: #fff;
  border-radius: 0;
  cursor: pointer;
  margin-right: 5px;
  position: relative;
}

.checkbox:checked {
  background-color: #ed1c24;
  border-color: #000;
}

.checkbox:checked::before {
  content: "\2713";
  font-size: 16px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.complete-stage-container {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  padding: 0px;
}

.inbox-container {
  display: flex;
  flex-direction: column;
  padding: 10px 0px 10px 0px;
  align-items: center;
}
/* Form Inputs */
.input-label {
  margin-bottom: 2px;
  width: 100%;
  padding: 5px 0px 5px 0px;
  color: #e0e3e7;
}

.text-input {
  padding: 8px;
  border: 1px solid lightgrey;
  width: 100%;
}

/* Form Buttons */
.button-group {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  display: flex;
  justify-content: space-between;
}

.submit-button {
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 15px;
  color: #e0e3e7;
  border: none;
  cursor: pointer;
  font-weight: 400;
}

.submit-button:hover {
  background-color: rgba(0, 0, 0, 1);
}

.back-button {
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 15px;
  color: #e0e3e7;
  border: none;
  cursor: pointer;
}

.back-button:hover {
  background-color: rgba(0, 0, 0, 1);
}

.back-button:disabled {
  background-color: rgba(0, 0, 0, 0.5);
  cursor: not-allowed;
}

.download-container {
  display: flex;
  justify-content: center;
}

.download-button {
  margin-top: 10px;
  padding: 15px 15px;
  background-color: #ed1c23e1;
  color: #e0e3e7;
  font-weight: bold;
  border: none;
  cursor: pointer;
  width: 210px;
  height: 80px;
  font-size: 20px;
}

.hide-download-button {
  display: none;
}

.download-button:hover {
  background-color: #cd1c24;
}

.download-button:active {
  transform: translateY(2px);
}

.loading {
  text-align: left;
  font-size: 20px;
  cursor: not-allowed;
  background-color: #dc1c23;
}

.loading:after {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  -webkit-animation: ellipsis steps(4, end) 900ms infinite;
  animation: ellipsis steps(4, end) 900ms infinite;
  content: "\2026";
  width: 0px;
}

@keyframes ellipsis {
  to {
    width: 1.25em;
  }
}

@-webkit-keyframes ellipsis {
  to {
    width: 1.25em;
  }
}
