/* ====================================
   FORM STYLING (CONTACT & SOLLICITEER)
   Styles for WPForms and OTYS apply form.
   Adjusted for consistent UI across devices.
==================================== */

/* === 1) GLOBAL FONT FAMILY === */
/* Applies Artegra font to all form elements */
html,
body,
input,
textarea,
button,
summary {
  font-family: "Artegra Sans Extended", sans-serif;
}

/* === 2) CONTACT FORM === */
/* Basic contact form field styles */
.wpforms-form .wpforms-field input[type="text"],
.wpforms-form .wpforms-field input[type="email"],
.wpforms-form .wpforms-field textarea {
  border: 1.8px solid #082337;
  border-radius: 15px;
  background-color: #deecec;
}

/* Fixed height for inputs */
.wpforms-form .wpforms-field input[type="text"],
.wpforms-form .wpforms-field input[type="email"] {
  height: 4rem;
}

/* Contact form submit button */
.wpforms-form button.wpforms-submit {
  background-color: #082337 !important;
  border-radius: 50px !important;
  text-align: center;
}

/* === 3) PLACEHOLDER STYLING === */
/* Uniform placeholder appearance across fields */
textarea::placeholder,
input::placeholder {
  font-family: "Artegra Sans Extended", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: rgba(8, 35, 55, 0.6);
}

/* === 4) RESPONSIVE PLACEHOLDER FONT === */
@media (max-width: 991px) {
  textarea::placeholder,
  input::placeholder {
    font-size: 1.3rem;
  }
}
@media (max-width: 767px) {
  textarea::placeholder,
  input::placeholder {
    font-size: 1.2rem;
  }
}
@media (max-width: 478px) {
  textarea::placeholder,
  input::placeholder {
    font-size: 1.1rem;
  }
}
@media (max-width: 393px) {
  textarea::placeholder,
  input::placeholder {
    font-size: 1rem;
  }
}

/* === 5) SOLLICITEER FORM INPUTS === */
/* Shared styling across inputs */
.vacancy-form input[type="text"],
.vacancy-form input[type="email"],
.vacancy-form input[type="tel"],
.vacancy-form textarea {
  width: 100%;
  height: 4rem;
  padding: 0 1.5rem;
  border: 1.8px solid #082337;
  border-radius: 15px;
  background-color: #deecec;
  font-size: 1.4rem;
  color: #000814;
  box-sizing: border-box;
  font-family: inherit;
}

.vacancy-form {
  width: 100%;
  box-sizing: border-box;
}

/* Taller textarea */
.vacancy-form textarea {
  min-height: 10rem;
}

/* Placeholder in Solliciteer form */
.vacancy-form input::placeholder,
.vacancy-form textarea::placeholder {
  color: rgba(8, 35, 55, 0.6);
  font-size: 1.4rem;
  text-transform: none;
}

/* Responsive placeholder for Solliciteer */
@media (max-width: 991px) {
  .vacancy-form input::placeholder,
  .vacancy-form textarea::placeholder {
    font-size: 1.3rem;
  }
}
@media (max-width: 767px) {
  .vacancy-form input::placeholder,
  .vacancy-form textarea::placeholder {
    font-size: 1.2rem;
  }
}
@media (max-width: 478px) {
  .vacancy-form input::placeholder,
  .vacancy-form textarea::placeholder {
    font-size: 1.1rem;
  }
}
@media (max-width: 393px) {
  .vacancy-form input::placeholder,
  .vacancy-form textarea::placeholder {
    font-size: 1rem;
  }
}

/* === 6) FILE UPLOAD === */
/* Styled wrapper for file input */
.vacancy-form .file-upload {
  width: 100%;
  height: 4rem;
  line-height: 4rem;
  border: 1.8px solid #082337;
  border-radius: 15px;
  background-color: #deecec;
  position: relative;
  text-align: center;
  cursor: pointer;
  color: #000814;
}

/* Hidden native file input */
.vacancy-form .file-upload input[type="file"] {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
}

/* Custom label for file input */
.vacancy-form .file-upload::before {
  content: "CV";
  background-color: #082337;
  color: #deecec;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}

/* === 7) FORM FOOTER & BUTTONS === */
.vacancy-form .form-footer {
  display: flex;
  justify-content: flex-start;
  padding-top: 2rem;
}

.vacancy-form .vacancy_apply_button {
  background-color: #082337 !important;
  color: #deecec !important;
  border-radius: 50px !important;
  height: 4rem;
  padding: 0 2rem;
  font-size: 1rem;
  min-width: 10rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* === 8) FORM CONTAINERS === */
.vacancy-form .rest-form-container {
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

@media (max-width: 768px) {
  .vacancy-form {
    padding: 0 1rem;
  }
  .vacancy-form .rest-form-pages,
  .vacancy-form .form-footer {
    width: 100%;
  }
}

/* === 9) UTILITY OVERRIDES === */
#cv_file_name.form-input-wrapper .form-label-col {
  display: none !important;
}
.form-input-wrapper {
  justify-content: end;
}

/* === 10) WRAPPER IN BRICKS === */
#brxe-f2f462.brxe-shortcode {
  max-width: 1200px;
  padding: 0;
}

#brxe-f2f462.brxe-shortcode .vacancy-form {
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  #brxe-f2f462.brxe-shortcode {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

/* === 11) ENLARGED FORM STYLING (CENTERED) === */
.brxe-shortcode .vacancy-form {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  box-sizing: border-box;
}

.vacancy-form .rest-form-container,
.vacancy-form .rest-form-pages,
.vacancy-form .rest-form-page {
  box-sizing: border-box;
}

.brxe-shortcode .vacancy-form,
.brxe-shortcode .vacancy-form input,
.brxe-shortcode .vacancy-form textarea,
.brxe-shortcode .vacancy-form .file-upload,
.brxe-shortcode .vacancy-form .vacancy_apply_button {
  font-size: 1.125rem;
}

.brxe-shortcode .vacancy-form .form-input-wrapper {
  margin-bottom: 2rem;
}

/* Inputs and textareas */
.brxe-shortcode .vacancy-form input[type="text"],
.brxe-shortcode .vacancy-form input[type="email"],
.brxe-shortcode .vacancy-form input[type="tel"],
.brxe-shortcode .vacancy-form textarea {
  height: 4.5rem;
  padding: 0 1.5rem;
  border: 1.8px solid #082337;
  border-radius: 50px;
  background-color: #deecec;
  box-sizing: border-box;
  color: #000814;
}

/* Textareas */
.brxe-shortcode .vacancy-form textarea {
  min-height: 12rem;
}

/* Placeholders */
.brxe-shortcode .vacancy-form input::placeholder,
.brxe-shortcode .vacancy-form textarea::placeholder {
  color: rgba(8, 35, 55, 0.6);
  font-size: 1.5rem;
  text-transform: none;
}

/* File upload wrapper */
.brxe-shortcode .vacancy-form .file-upload {
  height: 5rem;
  line-height: 5rem;
  border-radius: 50px;
}

/* Apply button */
.brxe-shortcode .vacancy-form .vacancy_apply_button {
  padding: 0 2.5rem;
  height: 4.5rem;
  font-size: 1.125rem;
  min-width: 12rem;
  text-align: center;
}

/* Prev/Next buttons */
.brxe-shortcode .vacancy-form .vacancy-apply-prev,
.brxe-shortcode .vacancy-form .vacancy-apply-next {
  padding: 0 2.5rem;
  height: 5rem;
  border-radius: 50px;
  font-size: 1rem;
}

/* Footer buttons alignment */
.brxe-shortcode .vacancy-form .form-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 2.5rem;
}

/* === 12) RESPONSIVE MOBILE FORM === */
@media (max-width: 768px) {
  .brxe-shortcode .vacancy-form {
    padding: 3rem 1.5rem;
  }
  .brxe-shortcode .vacancy-form input,
  .brxe-shortcode .vacancy-form textarea,
  .brxe-shortcode .vacancy-form .file-upload {
    height: 4.5rem;
  }
  .brxe-shortcode .vacancy-form .vacancy_apply_button {
    height: 4.5rem;
    min-width: 10rem;
  }
  .brxe-shortcode .vacancy-form .form-footer {
    justify-content: flex-start;
  }
}
