/* reset */
* {
  margin: 0;
  padding: 0;
  font-family: "Poppins";
  box-sizing: border-box;
}

body {
  background-color: #f0ebf7;
  margin-bottom: 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333;
}

p,
label {
  color: #333;
}

.header {
  background-color: #fff;
  width: 35%;
  margin: 1rem auto;
  border: 1px solid #dadce0;
  border-radius: 0.7rem;
  border-top: 0.7rem solid #693bb8;
}

.header h3 {
  padding: 1rem 1.2rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.form-container {
  width: 35%;
  margin: 0 auto;
  overflow: hidden;
}

.title-card {
  background-color: #fff;
  border: 1px solid #dadce0;
  margin-bottom: 1rem;
  border-radius: 0.7rem;
  overflow: hidden;
}

.title-card-header {
  background-color: #693bb8;
  padding: 0.5rem 1.2rem;
  border-bottom: 1px solid #dadce0;
}

.title-card-header p {
  color: #fff;
}

.title-card-content {
  padding: 1rem 1.2rem 2rem 1.2rem;
  border-bottom: 1px solid #dadce0;
}

.title-card-content h1 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.title-card-input01 {
  padding: 2rem 1.2rem;
}

.input-card {
  background-color: #fff;
  border: 1px solid #dadce0;
  margin-bottom: 1rem;
  border-radius: 0.7rem;
  padding: 1.5rem 1.5rem;
}

.input-card p {
  margin-bottom: 1.5rem;
}

.block {
  display: block;
  margin-top: 1.5rem;
  padding-bottom: 0.4rem;
}

input[type="text"],
input[type="textarea"],
input[type="number"],
input[type="date"],
input[type="email"],
textarea {
  border: none;
  width: 100%;
  color: #333;
  resize: none;
  overflow-y: hidden;
}

input[type="text"]:focus,
input[type="textarea"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border: none;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ccc;
}

.input-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #693bb8;
  transform: translate(-50%);
  transition: width 0.3s ease-in-out;
}

.input-wrapper:focus-within::after {
  width: 100%;
}

textarea label {
  margin-bottom: 1rem;
}

textarea {
  height: auto;
  min-height: 100%;
  transition: 0.5s;
  padding-bottom: 0.4rem;
}

.required-field {
  color: #d70835;
}

.input-price,
.input-km {
  display: flex;
  align-items: center;
}

.input-price p,
.input-km p {
  margin-top: 1.5rem;
  margin: 1.5rem 0.5rem 0 0.5rem;
  padding-bottom: 0.4rem;
}

.radio-box1,
.radio-box2 {
  margin-bottom: 0.5rem;
  accent-color: #693bb8;
}

.radio-box-title {
  margin-bottom: 1rem;
}

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

.optional-box-title {
  margin-bottom: 1rem;
}

.optional-box2 {
  margin-right: 20%;
}

.optional-box li {
  list-style: none;
  margin-bottom: 0.5rem;
  accent-color: #693bb8;
}

.optional-box p {
  margin-bottom: 1rem;
}

input[type="file"] {
  display: none;
}

.file-submit {
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  transition: 0.5s;
}

.file-submit:hover {
  background-color: #ccc;
  color: black;
}

.btn-end {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.btn-submit {
  background-color: #693bb8;
  color: #fff;
  border: none;
  border-radius: 0.3rem;
  width: auto;
  padding: 0.6rem 1.7rem;
  cursor: pointer;
  font-weight: 600;
  transition: 0.5s;
}

.btn-submit:hover {
  background-color: #7b45d8;
}

.btn-reset {
  background-color: #f0ebf7;
  border: none;
  padding: 0.6rem 1.7rem;
  color: #693bb8;
  font-weight: 600;
  cursor: pointer;
}
