.hero-section {
  background-image: url(../images/sell-bg.jpeg);
  box-shadow: inset 1000px 1000px rgba(1, 20, 48, 0.7);
  min-height: 300px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding-inline: 4vw;
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
}

.hero-header {
  font-size: 60px;
  color: var(--white);
  font-family: var(--font-family);
  font-weight: 600;
  transition: 0.3s;
  line-height: 60px;
}

.hero-sub {
  max-width: 920px;
  font-size: 20px;
  color: var(--white);
  font-family: var(--font-family);
  font-weight: 500;
  transition: 0.3s;
  line-height: 30px;
  margin-top: 20px;
}

.hero-section-content {
  padding-top: 30px;
  max-width: 1280px;
  width: 100%;
}

.listing {
  display: flex;
  justify-content: center;
  padding-inline: 4vw;
  padding-top: 30px;
}

.listing-content {
  max-width: 1280px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.listing-header {
  font-family: var(--font-family);
  font-size: 40px;
  text-align: center;
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  gap: 20px;
  flex-direction: column;
  margin-top: 80px;
}

.form-group:nth-child(4) {
  margin-top: 30px;
}

.form-group-inputs {
  display: flex;
  gap: 40px;
  align-items: end;
}

.user-registration-group-inputs {
  margin-top: 15px;
}

.form-group-inputs-general {
  flex-direction: column;
}

.form-group-header {
  font-size: 25px;
  font-family: var(--font-family);
}

textarea:focus {
  outline: none;
}

textarea {
  resize: none;
  height: 100px;
}

input {
  width: 100%;
  border: none;
  box-sizing: border-box;
  z-index: 999 !important;
}

input:focus {
  outline: none;
}

.input {
  border: none;
  border-bottom: 1px solid var(--lightblack);
  background: transparent;
  margin-top: 10px;
  font-family: var(--font-family);
  font-size: 18px;
  box-sizing: border-box;
  transition: border-bottom 0.2s ease;
  width: 100%;
}

.focused {
  border-color: var(--lightblue);
}

.form-buttons {
  display: flex;
  justify-content: center;
  margin-top: 80px;
  gap: 40px
}

.return-link {
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  color: var(--lightblue);
  font-size: 18px;
  height: 40px;
  border: 3px solid var(--lightblue);
  font-family: var(--font-family);
  font-weight: 600;
  border-radius: 25px;
}

.submit-btn {
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--lightblue);
  color: var(--white);
  font-size: 18px;
  font-family: var(--font-family);
  font-weight: 600;
  border: none;
  border-radius: 25px;
  transition: 0.2s;
}

.submit-btn:hover {
  background-color: var(--darkblue);
  color: var(--white);
}

.input-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.label,
.lbl {
  font-size: 20px;
  position: absolute;
  top: 5px;
  transition: 0.3s;
  font-family: var(--font-family);
  user-select: none;
}

.textarea-label {
  top: 80px;
}

.active {
  color: var(--lightblue);
  top: -10px;
  font-weight: 600;
  font-size: 15px;
}

select {
  background-color: var(--lightblue);
  height: 30px;
  font-size: 18px;
  padding-inline: 10px;
  color: var(--white);
}

select:focus {
  outline: none;
}

.Label {
  font-family: var(--font-family);
  font-size: 18px;
  margin-bottom: 5px;
}

input::file-selector-button {
  font-weight: bold;
  color: var(--white);
  padding: 0.5em;
  width: 170px;
  height: 35px;
  font-size: 18px;
  font-weight: 500;
  background-color: var(--lightblue);
  border: none;
  border-radius: 5px;
  transition: 0.3s;
}

input::file-selector-button:hover {
  color: var(--lightblue);
  background-color: var(--white);
  border: 1px solid var(--lightblue);
}

.user-registration-group-inputs {
  display: grid; 
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.state,
.zip-code {
  width: 80%;
}

.hoa-per-month-container {
  transition: 0.3s;
  opacity: 0.4;
  width: 70%;
}

.hoa-container div div,
.owner-container div div {
  display: flex;
  justify-content: space-between;
}

.hoa-container,
.owner-container{
  row-gap: 10px;
}

.hoa-radio {
  height: 17px;
  width: 17px;
}

.radio-label {
  font-size: 18px;
  font-weight: 600;
  width: 100%;
}

.hoa-container {
  width: 35%;
}

.owner-container {
  width: 85%;
}

@media (max-width: 1024px) {
  .form-group-inputs-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .form-group-inputs-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .hoa-container {
    width: 100%;
  }

  .hoa-per-month-container {
    width: 100%;
  }

  .owner-container {
    width: 100%;
  }

  .images-upload {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .hero-header {
    font-size: 45px;
  }
}

@media (max-width: 800px) {
  .form-group-inputs-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .state {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .user-registration-group-inputs {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 650px) {
  .hero-header {
    font-size: 33px;
    line-height: 40px;
  }

  .hero-sub {
    font-size: 17px;
    line-height: 29px;
  }

  .hero-section {
    height: fit-content;
    padding-bottom: 10px;
  }
}

@media (max-width: 600px) {
  .form-group {
    margin-top: 50px;
  }

  .form-group-inputs-2-2 {
    display: flex;
    flex-direction: column;  
  }

  .additional-services {
    row-gap: 35px;
  }

  .checkbox-label {
    gap: 50px;
  }
}

@media (max-width: 500px) {
  .form-group-inputs-2,
  .form-group-inputs-3,
  .form-group-inputs-4 {
    display: flex;
    flex-direction: column;

  }

  .zip-code {
    width: 100%;
  }
}

@media (max-width: 350px) {
  .return-link,
  .submit-btn {
    font-size: 14px;
  }

  .listing-header {
    font-size: 25px;
  }

  .hero-header {
    font-size: 30px;
    line-height: 35px;
  }

  .hero-sub {
    font-size: 18px;
  }
}

.terms-container {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-family: var(--font-family);
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0;
}

.terms-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 2px solid #0A74DA; /* Dark blue azure color */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  cursor: pointer;
}

.terms-container input[type="checkbox"]:checked {
  background-color: #0A74DA;
  border-color: #0A74DA;
}

.terms-container input[type="checkbox"]:checked::before {
  content: '✔';
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

.terms-label {
  margin: 0;
}

.terms-label a {
  text-decoration: underline;
}
