/**
 * Styles for the "Effettua un reso" page (page-templates/make-a-return.php).
 *
 * Self-contained on purpose: it mirrors the values used by the other
 * informational pages (privacy-terms.css for #firstSection) and by the
 * contacts form (contacts.css for .form-box), but scoped to this page's own
 * section ids so it can be loaded alone without specificity clashes.
 */

/* ---- Base page layout (matches the informational pages: Spedizioni, Privacy…) ---- */
#firstSection {
  /* min-height: 100%; */
  padding: 30px 0;
  margin-bottom: 40px;
}
#firstSection h1 {
  font-size: 50px;
  font-weight: bold;
  color: #242424;
  line-height: 50px;
  margin-bottom: 30px;
}
#firstSection h2 {
  margin: 0 0 30px;
  font-size: 28px;
  font-weight: 400;
  line-height: 40px;
  color: #242424;
}
#firstSection p {
  margin: 0px;
  color: #242424;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
}

/* ---- Return form (mirrors #secondSection .form-box from contacts.css) ---- */
#returnFormSection {
  padding-bottom: 120px;
  margin-bottom: 120px;
}
#returnFormSection .form-box .col-sm-12,
#returnFormSection .form-box .col-md-6,
#returnFormSection .form-box .col-12 {
  margin-bottom: 20px;
}
#returnFormSection .form-box h2 {
  margin: 0 0 20px;
  font-weight: 600;
  font-size: 28px;
  color: #242424;
  font-family: var(--font-family-secondary, "Titillium Web", sans-serif);
}
#returnFormSection .form-box .form-group label {
  color: #213f36;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
  display: block;
}
#returnFormSection .form-box input,
#returnFormSection .form-box select {
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.7);
  padding: 12px;
  width: 100%;
  background-color: #fff;
}
#returnFormSection .form-box input:focus,
#returnFormSection .form-box select:focus {
  outline: 0;
  box-shadow: none;
}
#returnFormSection .form-box textarea {
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.7);
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  height: 180px;
  max-height: 180px;
  min-height: 180px;
  resize: none;
  padding: 20px;
}
#returnFormSection .form-box textarea:focus {
  outline: 0;
  box-shadow: none;
}

/* Privacy consent checkbox (replicates the global .control styles from contacts.css) */
#returnFormSection form .control {
  display: block;
  position: relative;
  margin: 20px 0;
  padding: 0 30px;
  cursor: pointer;
  color: #213f36;
}
#returnFormSection form .control input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}
#returnFormSection form .control_indicator {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  background: transparent;
  border: 2px solid #213f36;
}
#returnFormSection form .control input:checked ~ .control_indicator {
  background: #213f36;
}
#returnFormSection form .control_indicator:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 3px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
#returnFormSection form .control input:checked ~ .control_indicator:after {
  display: block;
}
#returnFormSection .form-box .checkbox-text {
  font-size: 16px;
}
#returnFormSection .form-box .control-checkbox a {
  font-weight: 600;
  color: #213f36;
  text-decoration: underline;
}

/* Submit button (matches the contacts form submit dimensions) */
#returnFormSection .form-box button[type="submit"] {
  border-radius: 10px;
  height: 60px;
  min-width: 230px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
}

/* Inline feedback messages */
#returnFormSection .form-box .mes-success,
#returnFormSection .form-box .mes-danger {
  display: block;
  text-align: left;
  margin-bottom: 15px;
  font-weight: 600;
}
#returnFormSection .form-box .mes-success {
  color: #213f36;
}
#returnFormSection .form-box .mes-danger {
  color: #dc3545;
}
#returnFormSection .form-box .err-mes {
  display: block;
  margin-top: 5px;
  font-weight: bold;
  color: #dc3545;
  font-size: 14px;
}
#returnFormSection .form-box .isInvalid {
  border-color: #dc3545 !important;
}

@media (max-width: 992px) {
  #firstSection h1 {
    font-size: 40px;
    line-height: 44px;
  }
  #returnFormSection {
    padding-bottom: 40px;
    margin-bottom: 40px;
  }
  #returnFormSection .form-box button[type="submit"] {
    width: 100%;
  }
}
