/* ==========================================================================
   Form Components
   ========================================================================== */

.custom_form_field {
  display: block;
}

.custom_form_label {
  display: block;
  margin-bottom: 10px;
  color: #2f7b63;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
}

.custom_form_input {
  width: 100%;
  height: 55px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #d8e2df;
  background: #ffffff;
  color: var(--dark-blue-gray);
  font-size: var(--fs-base);
  font-weight: 400;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.custom_form_input:focus {
  border-color: var(--primary-green);
  box-shadow: 0px 0px 0px 4px #53a04f14;
}

.custom_form_input::placeholder,
.custom_form_textarea::placeholder {
  color: var(--medium-gray);
  font-size: inherit;
  font-weight: 400;
}

.custom_form_select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #66767d 50%),
    linear-gradient(135deg, #66767d 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 48px;
}

.custom_form_textarea {
  height: auto;
  padding: 16px 18px;
  resize: vertical;
}

.custom_form_captcha_code {
  min-height: 60px;
  padding: 0 20px;
  border: 1px dashed rgba(15, 107, 77, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(215, 241, 92, 0.16),
      rgba(15, 107, 77, 0.06)
    ),
    #ffffff;
  color: var(--darkest-blue-gray);
  font-family: "Satoshi", "Poppins", sans-serif;
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom_form_submit {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 16px;
  background: #0d5b43;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Satoshi", "Poppins", sans-serif;
  font-size: var(--fs-base);
  font-weight: 700;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.custom_form_submit:hover {
  transform: translateY(-2px);
  background: #084a36;
  box-shadow: 0px 14px 28px 0px #0d5b4320;
}

.custom_form_submit .bi {
  font-size: 20px;
}


/* ==========================================================================
   Upload CV Modal Forms (Un-nested)
   ========================================================================== */

.upload-cv-modal .modal-dialog {
  max-width: 920px;
}

.upload-cv-modal .modal-dialog-centered {
  min-height: calc(100% - 2rem);
}

.upload-cv-modal .modal-content {
  border: 1px solid rgba(15, 107, 77, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(215, 241, 92, 0.1), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  box-shadow: 0 32px 72px rgba(19, 39, 32, 0.16);
  overflow: hidden;
}

.upload-cv-modal .modal-header,
.upload-cv-modal .modal-footer {
  padding: 22px 28px;
  border-color: rgba(15, 107, 77, 0.08);
}

.upload-cv-modal .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.upload-cv-modal .modal-header > div:first-child {
  flex: 1;
  min-width: 0;
}

.upload-cv-modal .modal-body {
  padding: 26px 28px 18px;
  background:
    linear-gradient(rgba(15, 107, 77, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 107, 77, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

.upload-cv-modal .btn-close {
  margin: 0 0 0 auto;
  flex-shrink: 0;
  box-shadow: none;
  opacity: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background-color: #eef4ea;
  background-size: 14px;
}

.upload-cv-modal .btn-close:hover {
  background-color: #e3edde;
}

.upload-cv-modal .upload-cv-modal__form .custom_form_field {
  padding: 18px;
  border: 1px solid rgba(15, 107, 77, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(19, 39, 32, 0.04);
}

.upload-cv-modal .upload-cv-modal__form .custom_form_label {
  margin-bottom: 12px;
  color: #275446;
}

.upload-cv-modal .upload-cv-modal__form .custom_form_input {
  background: #ffffff;
  border-color: rgba(15, 107, 77, 0.14);
}

.upload-cv-modal .upload-cv-modal__form .custom_form_textarea {
  min-height: 170px;
}

.upload-cv-modal .upload-cv-modal__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #edf4eb;
  color: #0f6b4d;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.upload-cv-modal .upload-cv-modal__title {
  margin: 0;
  color: var(--darkest-blue-gray);
  font-family: "Satoshi", "Poppins", sans-serif;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.2;
}

.upload-cv-modal .upload-cv-modal__file {
  padding: 8px;
  min-height: 55px;
}

.upload-cv-modal .upload-cv-modal__file::file-selector-button {
  margin-right: 14px;
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  background: #e9eff0;
  color: var(--darkest-blue-gray);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
}

.upload-cv-modal .upload-cv-modal__file:hover::file-selector-button {
  background: #dbe4e6;
}

.upload-cv-modal .upload-cv-modal__hint {
  display: block;
  margin-top: 8px;
  color: var(--medium-gray);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.upload-cv-modal .upload-cv-modal__process {
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px solid #bde7f0;
  background: linear-gradient(180deg, #e6f9fd 0%, #d3f1f8 100%);
}

.upload-cv-modal .upload-cv-modal__process h3 {
  margin: 0 0 10px;
  color: #11637a;
  font-family: "Satoshi", "Poppins", sans-serif;
  font-size: var(--fs-base);
  font-weight: 700;
}

.upload-cv-modal .upload-cv-modal__process ul {
  margin: 0;
  padding-left: 18px;
  color: #1c6275;
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.upload-cv-modal .upload-cv-modal__secondary {
  min-width: 128px;
  padding: 0.88rem 1.3rem;
  border: none;
  border-radius: 16px;
  background: #f2cf49;
  color: #4f4408;
  font-family: "Satoshi", "Poppins", sans-serif;
  font-size: var(--fs-sm);
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.upload-cv-modal .upload-cv-modal__secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(79, 68, 8, 0.12);
}

.upload-cv-modal .upload-cv-modal__submit {
  width: auto;
  min-width: 220px;
  padding-inline: 28px;
}

.upload-cv-modal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(255, 255, 255, 0.84);
}


/* ==========================================================================
   Contact / Inquiry Shared Form (Un-nested)
   ========================================================================== */

.contact-form-card {
  padding: 40px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #e4ecee;
  box-shadow: 0px 16px 34px 0px #26303812;
}

.contact-form-card__field {
  display: block;
}

.contact-form-card__select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #66767d 50%),
    linear-gradient(135deg, #66767d 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 48px;
}

.contact-form-card__textarea {
  height: auto;
  padding: 16px 18px;
  resize: vertical;
}

.contact-form-card__submit {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 16px;
  background: #0d5b43;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Satoshi", "Poppins", sans-serif;
  font-size: var(--fs-base);
  font-weight: 700;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-form-card__submit:hover {
  transform: translateY(-2px);
  background: #084a36;
  box-shadow: 0px 14px 28px 0px #0d5b4320;
}

.contact-form-card__submit .bi {
  font-size: 20px;
}


/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

@media (max-width: 991px) {
  .contact-form-card {
    padding: 30px 24px;
  }
}

@media (max-width: 767px) {
  .contact-form-card {
    padding: 24px 18px;
    border-radius: 20px;
  }
}

@media (max-width: 567px) {
  .custom_form_input {
    height: 50px;
    font-size: var(--fs-sm);
  }

  .custom_form_input::placeholder,
  .custom_form_textarea::placeholder {
    font-size: var(--fs-xs);
  }

  .custom_form_captcha_code {
    min-height: 56px;
    font-size: var(--fs-md);
  }

  .upload-cv-modal .modal-header,
  .upload-cv-modal .modal-body,
  .upload-cv-modal .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .upload-cv-modal .modal-content {
    border-radius: 22px;
  }

  .upload-cv-modal .modal-header {
    gap: 14px;
  }

  .upload-cv-modal .upload-cv-modal__title {
    font-size: var(--fs-lg);
  }

  .upload-cv-modal .upload-cv-modal__form .custom_form_field {
    padding: 14px;
    border-radius: 16px;
  }

  .upload-cv-modal .upload-cv-modal__process {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .upload-cv-modal .upload-cv-modal__secondary,
  .upload-cv-modal .upload-cv-modal__submit {
    width: 100%;
  }

  .upload-cv-modal .modal-footer {
    justify-content: stretch;
    gap: 10px;
  }

  .custom_form_submit {
    min-height: 58px;
    font-size: var(--fs-sm);
  }

  .contact-form-card__submit {
    min-height: 58px;
    font-size: var(--fs-sm);
  }
}
