/* ==========================================================================
   Contact / Join us forms (Drupal Form API markup inside .contact-form).
   Builds on contact.css so both pages share one look.
   ========================================================================== */

.contact-form .awqaf-form {
  background: #f7f7f7;
  padding: 35px 30px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
}

.contact-form .form-item {
  margin: 0 0 4px;
}

.contact-form .form-item label,
.contact-form .form-item .form-item__label,
.contact-form .fieldset__legend {
  display: block;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  font-size: 15px;
}

.contact-form label.form-required::after,
.contact-form .form-item__label.form-required::after {
  content: " *";
  color: #c0392b;
  background: none;
  width: auto;
  height: auto;
  margin: 0;
  vertical-align: baseline;
}

.contact-form select {
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  background-color: #fbfbfb;
  color: #222;
  font-family: var(--awqaf-font);
  min-height: 50px;
}

.contact-form select:focus {
  border-color: #c99631;
  box-shadow: 0 0 0 2px rgba(201, 150, 49, 0.15);
  outline: none;
}

/* Two fields side by side on wide screens. */
.contact-form .awqaf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
@media (max-width: 600px) {
  .contact-form .awqaf-form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- File uploads: drop zone (js/forms.js) ---------- */
.contact-form .form-type-managed-file,
.contact-form .js-form-type-managed-file {
  margin-bottom: 20px;
}
.awqaf-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 22px 16px;
  border: 2px dashed #d8c99f;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.awqaf-drop:hover,
.awqaf-drop.is-dragover {
  border-color: var(--brand-gold, #c99631);
  background: #fbf7ec;
}
.awqaf-drop.is-uploading {
  opacity: .6;
  pointer-events: none;
}
.awqaf-drop__icon {
  font-size: 30px;
  color: var(--brand-gold, #c99631);
  line-height: 1;
  margin-bottom: 4px;
}
.awqaf-drop__title {
  font-weight: 700;
  color: var(--brand-green, #435a60);
  font-size: 15px;
}
.awqaf-drop__title u {
  color: var(--brand-gold, #c99631);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.awqaf-drop__hint {
  font-size: 13px;
  color: #888;
}
/* The real input covers the whole zone (click + drag & drop). */
.awqaf-drop input[type="file"] {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  cursor: pointer;
  border: 0 !important;
}
.awqaf-drop input[type="file"]:focus-visible + .awqaf-drop__icon {
  outline: 3px solid var(--brand-gold, #c99631);
  outline-offset: 4px;
  border-radius: 50%;
}
/* Hint is shown inside the zone, so hide the duplicate description below. */
.form-type-managed-file.has-dropzone > .description,
.form-type-managed-file.has-dropzone > .form-item__description {
  display: none;
}

/* Uploaded file: chip with name, size and remove button. */
.contact-form .form-managed-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.contact-form .form-managed-file > .awqaf-drop {
  flex: 1 1 100%;
}
.contact-form .form-managed-file .file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f4f6f6;
  border: 1px solid #e3e7e8;
  font-weight: 600;
  max-width: 100%;
  background-image: none !important;
}
.contact-form .form-managed-file .file::before {
  content: "\f15b";
  font: var(--fa-font-regular);
  color: var(--brand-gold, #c99631);
  font-size: 18px;
}
.contact-form .form-managed-file .file--mime-application-pdf::before { content: "\f1c1"; }
.contact-form .form-managed-file .file--mime-image-png::before,
.contact-form .form-managed-file .file--mime-image-jpeg::before { content: "\f1c5"; }
.contact-form .form-managed-file .file a {
  color: var(--brand-dark, #283639) !important;
  text-decoration: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}
.contact-form .form-managed-file .file-size {
  font-size: 13px;
  color: #888;
}
.contact-form .form-managed-file input[type="submit"]:not(.js-hide) {
  width: auto !important;
  margin: 0 !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  border: 1px solid #c0392b !important;
  background: #fff !important;
  color: #c0392b !important;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.contact-form .form-managed-file input[type="submit"]:not(.js-hide):hover {
  background: #c0392b !important;
  color: #fff !important;
}
/* Multiple uploads: list of files with checkboxes. */
.contact-form .form-managed-file .form-type-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 1 1 100%;
}
.contact-form .form-managed-file .form-type-checkbox input[type="checkbox"] {
  width: 18px !important;
  margin: 0 !important;
  accent-color: var(--brand-green, #435a60);
}
.contact-form .form-item__description,
.contact-form .description {
  font-size: 13px;
  color: #777;
  margin-top: 6px;
}

/* Validation errors. */
.contact-form .error,
.contact-form input.error,
.contact-form textarea.error,
.contact-form select.error {
  border-color: #c0392b !important;
}
.contact-form .form-item--error-message,
.contact-form .form-item__error-message {
  color: #c0392b;
  font-size: 13px;
  margin: -12px 0 14px;
}

/* Drupal status / error messages shown above the form. */
.page-content [data-drupal-messages],
.page-content .messages-list,
.page-content .messages {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 20px;
}

/* Honeypot: hidden from people. No negative offsets: in RTL pages content
   pushed to the left is scrollable and widens the page. */
.awqaf-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.contact-form .form-actions {
  margin: 10px 0 0;
}

/* Thank-you state after submitting. */
.awqaf-form-thanks {
  text-align: center;
  padding: 30px 10px;
}
.awqaf-form-thanks__icon {
  font-size: 56px;
  color: #c99631;
  margin-bottom: 10px;
}
.awqaf-form-thanks h3 {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}
.awqaf-form-thanks p {
  color: #555;
  font-size: 16px;
  margin-bottom: 22px;
}
.awqaf-form-thanks .btn-submit {
  display: inline-block;
  width: auto;
  padding: 12px 34px;
  background: #c99631;
  color: #fff !important;
  border-radius: 30px;
  text-decoration: none !important;
  font-weight: 600;
}
.awqaf-form-thanks .btn-submit:hover {
  background: #333;
}

/* ==========================================================================
   Join us (recruitment / co-op training)
   ========================================================================== */
.join-section {
  padding-top: 60px;
}
.join-intro {
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
}
.join-intro__title {
  font-size: 30px;
  font-weight: 700;
  color: var(--brand-dark, #283639);
  margin-bottom: 14px;
}
.join-intro__title span {
  color: var(--brand-gold, #c99631);
}
.join-intro p {
  color: #555;
  line-height: 1.9;
  margin: 0 0 8px;
}
.join-form-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* Type selector: two large cards. */
fieldset.join-type > legend,
fieldset.join-type > .fieldset__legend {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--brand-dark, #283639);
}
fieldset.join-type {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
fieldset.join-type {
  display: block;
}
.join-type .form-boolean-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.join-type .form-item {
  margin: 0;
}
.join-type input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.join-type label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 74px;
  padding: 14px;
  border: 2px solid #e3e7e8;
  border-radius: 14px;
  background: #fff;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--brand-green, #435a60) !important;
  cursor: pointer;
  transition: all .2s ease;
  margin: 0 !important;
}
.join-type .form-item:first-child label::before {
  content: "\f0b1"; /* briefcase */
  font: var(--fa-font-solid);
  font-size: 20px;
  color: var(--brand-gold, #c99631);
}
.join-type .form-item:last-child label::before {
  content: "\f19d"; /* graduation cap */
  font: var(--fa-font-solid);
  font-size: 20px;
  color: var(--brand-gold, #c99631);
}
.join-type label:hover {
  border-color: var(--brand-gold, #c99631);
}
.join-type input[type="radio"]:checked + label {
  border-color: var(--brand-green, #435a60);
  background: var(--brand-green, #435a60);
  color: #fff !important;
}
.join-type input[type="radio"]:checked + label::before {
  color: #fff;
}
.join-type input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--brand-gold, #c99631);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .join-type .form-boolean-group { grid-template-columns: 1fr; }
}

/* Field-set group headings. */
.join-group-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-green, #435a60);
  margin: 26px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #efe6cf;
}
.join-set > .join-group-title:first-of-type {
  margin-top: 6px;
}
.join-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: #f6efdc;
  color: #7a5c17;
  font-weight: 700;
  margin: 0 0 6px;
}

/* Number / date / url inputs match the text inputs. */
.contact-form input[type="number"],
.contact-form input[type="date"],
.contact-form input[type="url"],
.contact-form input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  background: #fbfbfb;
  font-family: var(--awqaf-font);
}

/* Consent checkbox. */
.join-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 6px;
  padding: 16px;
  border-radius: 12px;
  background: #f4f6f6;
  border: 1px solid #e3e7e8;
}
.join-consent input[type="checkbox"] {
  width: 20px !important;
  height: 20px;
  margin: 3px 0 0 !important;
  flex: 0 0 20px;
  accent-color: var(--brand-green, #435a60);
}
.join-consent label {
  margin: 0 !important;
  line-height: 1.8;
  font-weight: 600 !important;
}
.contact-form .awqaf-form .description,
.contact-form .awqaf-form .form-item__description {
  margin-top: -10px;
  margin-bottom: 14px;
}

/* Olivero fieldset reset for the type selector (legend was a grey floating box). */
fieldset.join-type.fieldset,
fieldset.join-type {
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: none !important;
}
fieldset.join-type .fieldset__legend {
  float: none;
  width: auto;
  background: none;
  padding: 0;
  margin: 0 0 12px;
  border-radius: 0;
  color: var(--brand-dark, #283639);
  font-size: 17px;
}
fieldset.join-type .fieldset__label {
  padding: 0 !important;
}
fieldset.join-type .fieldset__label.form-required::after {
  content: " *";
  color: #c0392b;
  background: none;
  width: auto;
  height: auto;
  margin: 0;
  vertical-align: baseline;
}
fieldset.join-type .fieldset__wrapper {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
fieldset.join-type .fieldset__legend + * {
  clear: none;
}
fieldset.join-type .fieldset__legend,
fieldset.join-type .fieldset__label {
  color: var(--brand-dark, #283639) !important;
}
