.form-wrapper {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.titles2 {
  font-size: 18px;
  color: #1d2b4f;
  margin-bottom: 20px;
  border-bottom: 1px solid #e6e9f0;
  padding-bottom: 10px;
}

h5 {
  font-size: 0.83em !important;
}

fieldset {
  display: flex;
  gap: 15px;
  flex-direction: column;
  padding: 8px !important;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  transform: translatey(25%);
}

.switch input[type="checkbox"]:checked+.slider {
  background-color: #217867ff;
}

.switch input[type="checkbox"]:checked+.slider::before {
  transform: translate(33px, 25%);
}

.slider::after {
  position: absolute;
  content: "Não";
  top: 50%;
  transform: translateY(-50%);
  transition: 0.5s all;
  font-size: 14px;
  font-weight: bold;
  color: white;
  right: 8px;
}

.switch input[type="checkbox"]:checked+.slider::after {
  content: "Sim";
  left: 8px;
  top: 50%;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555;
  position: relative;
}

.slider-labels span {
  top: 100%;
  transform: translateX(20%);
  white-space: nowrap;
  text-align: center;
  font-size: 12px;
}

.slider-labels span:first-child {
  left: 0;
  transform: translateX(0);
  text-align: start;
}

.slider-labels span:last-child {
  right: 0;
  left: auto;
  transform: translateX(0);
  text-align: right;
}

input[type='range'] {
  overflow: hidden;
  width: 100%;
  accent-color: #217867ff;
}

.requiredMessage {
  color: red;
  font-size: 0.85em;
  margin-top: 5px;
  display: none;
}

.grid-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.form-group {
  margin: 10px;
}

label {
  font-weight: 600;
  font-size: 14px;
  display: block;
  color: #444;
}

input[type="text"],
input[type="email"],
input[type="date"],
select {
  transition: all 0.3s ease;
  width: 90%;
  padding: 10px 12px;
  border: none !important;
  border-bottom: 1px solid #666 !important;
  font-size: 14px;
  background: #fff;

  &:focus {
    border-bottom: 2px solid #217867ff !important;
    outline: none;
  }
}

input.input-error {
  border-bottom: 1px solid red !important;
  &:focus {
    border-bottom: 2px solid red !important;
    outline: none;
  }
}

.error-message{
  display: none;
  color: red;
}

label.label-error {
  transition: all 0.3s ease;
  color: red !important;
}

.input-container:focus-within label {
  transition: all 0.3s ease;
  color: #217867ff;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #217867ff;
  scale: 1.1;
}

.card-group {
  margin: 5px;
}

.card-option {
  flex: 1 1 220px;
  border: 1px solid #dce0e6;
  padding: 15px;
  border-radius: 8px;
  background: #f7f8fa;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  position: relative;
  transition: all 0.2s ease;
}

.card-option input {
  display: none;
}

.card-option.selected {
  border-color: #217867ff;
  background-color: #eaf1fd;
  font-weight: bold;
}

[type=button],
[type=submit],
button {
  width: 100%;
  max-width: 250px;
  padding: 12px;
  margin: 10px auto;
  background: #217867ff;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  display: flex !important;
  justify-content: center;
  border-color: transparent !important;
  border-radius: 6px;
  cursor: pointer;
}

.submit-button:hover {
  background: #217867ff;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

#mensagem-cotacao {
  text-align: center;
  margin-top: 20px;
}

#procedimento-wrapper label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

#franquia-wrapper label {
  margin: 5px;
}

.checkbox-group {
  border-radius: 8px;
  border: 1px solid #d1d1d1;
  background: #e7fff1;
  display: flex;
  padding: 10px;
  flex-direction: column;
  gap: 10px;
  margin: 10px auto;
}

.checkbox-group label {
  display: block;
  margin: 5px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#procedimento-wrapper label.hidden {
  display: none !important;
}

.card-option input:checked+label,
.card-option.selected {
  border: 2px solid #217867ff;
  background-color: #eaf1fd;
  font-weight: bold;
  color: #217867ff;
}

.switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #e7fff1;
  border-radius: 10px;
  font-weight: 500;
  color: #217867ff;
}

form {
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  padding: 24px;
}

.quotationReturn {
  padding: 24px;
}

.flex-sbt {
  display: flex;
  justify-content: space-between;
}

.flex-sbt label {
  max-width: 50%;
}