body {
  background-image: url(https://live.hng.pp.ua/wp-content/uploads/2026/05/Background-scaled.png);
  background-size: cover;
  background-position: center;
  background-repeat: repeat-y;
}

.contact-2026 {
  padding-top: 8rem;
}

.contact-2026__careers {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.contact-main-header {
  margin-bottom: 3rem;
}

.contact-2026__address a {
  color: #d2ac94;
}

.contact-2026__heading,
.contact-form__title {
  font-family: "ITCAvantGarde", sans-serif;
  font-weight: 600 !important;
  font-style: normal;
  font-stretch: normal;
  font-size: var(--hng-h2-size, clamp(2.25rem, 4.5vw, 3.625rem));
  color: #f58220;
}

.contact-2026__description,
.contact-2026__careers-description,
.contact-form .title-wrapper p {
  font-family: "ITCAvantGarde", sans-serif;
  font-weight: 400 !important;
  font-style: normal;
  font-stretch: normal;
  font-size: 16px;
  color: var(--hng-white, #ffffff);
}

.contact-2026__company-name {
  font-family: "ITCAvantGarde", sans-serif;
  font-weight: 500 !important;
  font-style: normal;
  font-stretch: normal;
  font-size: 20px;
  color: var(--hng-white, #ffffff);
}

/* ================================================
   Division Title — equal height fix
   Both left (division) and right (careers) titles
   use this class. min-height ensures the orange
   underline sits at the same vertical position even
   when the left title wraps to two lines.
   ================================================ */
.contact-2026__division-title {
  font-family: "ITCAvantGarde", sans-serif;
  font-weight: 500 !important;
  font-style: normal;
  font-stretch: normal;
  font-size: var(--hng-h3-size, clamp(1.5rem, 2.5vw, 1.875rem));
  color: var(--hng-white, #ffffff);
  border-bottom: 2px solid #F36A10;
  padding-bottom: 14px;
  /* min-height: 5.5rem;  
  display: flex;
  align-items: flex-start; */
}

.contact-2026__address,
.contact-2026__phone a,
.contact-2026__careers-description a {
  font-family: "ITCAvantGarde", sans-serif;
  font-weight: 400 !important;
  font-style: normal;
  font-stretch: normal;
  font-size: var(--hng-small-size, clamp(0.875rem, 1.25vw, 1rem));
  color: #d2ac94;
}

.contact-2026__form-wrapper {
  padding: 30px !important;
}

/* ================================================
   Form Group — Floating Label
   ================================================ */
.contact-form .form-group {
  position: relative;
  margin-bottom: 1.75rem;
}

.contact-form .form-group label {
  position: absolute;
  top: 0.6rem;
  left: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.25s ease;
  margin: 0;
  font-family: "ITCAvantGarde", sans-serif;
  font-weight: 400 !important;
  font-style: normal;
  font-stretch: normal;
}

/* ================================================
   CF7 span wrapper — must be block so layout works
   ================================================ */
.contact-form .wpcf7-form-control-wrap {
  display: block;
  position: relative;
}

/* ================================================
   Inputs & Textarea — Bottom Border Only
   ================================================ */
.contact-form .form-control {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 0 !important;
  color: #fff !important;
  padding: 0.6rem 0 !important;
  font-size: 1rem;
  width: 100%;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.25s ease;
  caret-color: #fff;
  font-family: "ITCAvantGarde", sans-serif;
  font-weight: 400 !important;
  font-style: normal;
  font-stretch: normal;
}

.contact-form .form-control:focus {
  border-bottom-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
}

/* Autofill fix */
.contact-form .form-control:-webkit-autofill,
.contact-form .form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #5a2008 inset !important;
  -webkit-text-fill-color: #fff !important;
}

/* Textarea */
.contact-form textarea.form-control {
  resize: none;
  min-height: 120px;
}

/* ================================================
   Floating Label — Focus State
   :focus-within bypasses CF7's <span> wrapper
   ================================================ */
.contact-form .form-group:focus-within label {
  top: -1rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
}

/* ================================================
   Floating Label — Has Content (after blur)
   ~ general sibling works across CF7's <span>
   ================================================ */
.contact-form
  .form-group
  .wpcf7-form-control-wrap:has(input:not(:placeholder-shown))
  ~ label,
.contact-form
  .form-group
  .wpcf7-form-control-wrap:has(textarea:not(:placeholder-shown))
  ~ label {
  top: -1rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
}

/* ================================================
   Submit Button
   ================================================ */
.contact-form .wpcf7-submit {
  background: transparent;
  border: none;
  color: #e8763a;
  font-size: 1rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  float: right;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.contact-form .wpcf7-submit:hover {
  color: #ff9055;
}

/* ================================================
   CF7 — Validation & Response
   ================================================ */
.contact-form .wpcf7-not-valid-tip {
  color: #ff6b6b;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}

.contact-form .wpcf7-response-output {
  border: none !important;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin: 1rem 0 0 !important;
  padding: 0 !important;
}

.contact-form .form-control::placeholder {
  color: transparent;
}

.fields-wrapper {
  margin-top: 25px;
}

.wpcf7 form.sent .wpcf7-response-output {
  color: #ffffff !important;
}

.contact-form .wpcf7-submit,
.wpcf7 form.sent .wpcf7-response-output {
  font-family: "ITCAvantGarde", sans-serif;
  font-weight: 400 !important;
  font-style: normal;
  font-stretch: normal;
}

.custom-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;

  font-size: 14px;
  font-family: inherit;

  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;

  z-index: 9999;
}

/* active state */
.custom-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* mobile optimization */
@media (max-width: 600px) {
  .custom-toast {
    bottom: 15px;
    font-size: 13px;
    padding: 8px 14px;
    width: auto;
    max-width: 90%;
    text-align: center;
  }
}
