/* ==========================================================
   HIB CTA Form Section
   BEM naming with hib_ prefix
   ========================================================== */

/* --- Outer wrapper --- */
.hib_cta-form {
  padding: 0;
  background: transparent;
  scroll-margin-top: 100px;
}

/* --- Card container --- */
.hib_cta-form__card {
  background: #ffffff;
  border: 1px solid rgba(30, 138, 138, 0.14);
  border-radius: var(--hib-section-radius, 24px);
  overflow: hidden;
  box-shadow: var(--hib-section-shadow, 0 22px 58px rgba(12, 30, 33, 0.09));
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .hib_cta-form__card {
    flex-direction: row;
  }
}

/* --- Left info panel --- */
.hib_cta-form__info {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, #0C1E21 0%, #146868 58%, #1E8A8A 100%);
  color: #ffffff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hib_cta-form__info::before,
.hib_cta-form__info::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hib_cta-form__info::before {
  width: 22rem;
  height: 22rem;
  top: -11rem;
  right: -9rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.hib_cta-form__info::after {
  width: 12rem;
  height: 12rem;
  top: -6rem;
  right: -4rem;
  background: rgba(216, 229, 229, 0.08);
}

@media (min-width: 768px) {
  .hib_cta-form__info {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .hib_cta-form__info {
    width: 53%;
  }
}

.hib_cta-form__title {
  max-width: 26ch;
  font-size: var(--hib-section-title-size, clamp(26px, 2vw, 32px)) !important;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1.25rem;
  line-height: var(--hib-section-title-line-height, 1.2);
  letter-spacing: -0.025em;
  perspective: 400px;
}

.hib_cta-form__title .word {
  display: inline-block;
}

.hib_cta-form__title .char {
  display: inline-block;
}

.hib_cta-form__desc {
  max-width: 48rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.75rem;
}

.hib_cta-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hib_cta-form__button {
  min-height: 46px;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.hib_cta-form__button:hover {
  transform: translateY(-2px);
}

.hib_cta-form__button--primary {
  background: #ffffff;
  color: #0C1E21;
  box-shadow: 0 10px 24px rgba(12, 30, 33, 0.18);
}

.hib_cta-form__button--primary:hover {
  color: #1E8A8A;
}

.hib_cta-form__button--primary .material-symbols-outlined {
  font-size: 1.1rem;
}

.hib_cta-form__button--secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.hib_cta-form__button--secondary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

/* Contact info list */
.hib_cta-form__contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.hib_cta-form__contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.055);
}

.hib_cta-form__contact-item--wide {
  grid-column: 1 / -1;
}

.hib_cta-form__contact-item .hib_icon {
  flex: 0 0 auto;
  color: #D8E5E5;
  font-size: 1.25rem;
  margin-top: 0;
}

.hib_cta-form__contact-item > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hib_cta-form__contact-item small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hib_cta-form__contact-item a,
.hib_cta-form__contact-item strong {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hib_cta-form__contact-item a:hover {
  color: #D8E5E5;
}

/* --- Right form panel --- */
.hib_cta-form__form {
  padding: 3rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
  scroll-margin-top: 100px;
}

@media (min-width: 768px) {
  .hib_cta-form__form {
    padding: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hib_cta-form__form {
    width: 47%;
  }
}

/* Style WPForms inside this section */
.hib_cta-form__form .wpforms-container {
  margin: 0;
  padding: 0;
}

.hib_cta-form__form .wpforms-field-label {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0C1E21 !important;
}

.hib_cta-form__form .wpforms-field input,
.hib_cta-form__form .wpforms-field textarea,
.hib_cta-form__form .wpforms-field select {
  background: rgba(216, 229, 229, 0.45) !important;
  border: 1px solid rgba(30, 138, 138, 0.08) !important;
  border-radius: 0.5rem !important;
  padding: 1rem !important;
  transition: all 0.3s ease;
}

.hib_cta-form__form .wpforms-field input:focus,
.hib_cta-form__form .wpforms-field textarea:focus,
.hib_cta-form__form .wpforms-field select:focus {
  background: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(30, 138, 138, 0.2) !important;
}

.hib_cta-form__form .wpforms-submit-container button {
  width: 100% !important;
  min-height: 52px;
  background: var(--primary-color, #1E8A8A) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 0.5rem !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(30, 138, 138, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.hib_cta-form__form .wpforms-submit-container button:hover {
  background: #0C1E21 !important;
  transform: translateY(-1px);
}

.hib_cta-form__form .wpforms-submit-container button:active {
  transform: scale(0.98);
}

/* --- Responsive title --- */
@media (max-width: 768px) {
  .hib_cta-form__info,
  .hib_cta-form__form {
    padding: 2.5rem;
  }

  .hib_cta-form__title {
    font-size: var(--hib-section-title-size, 28px) !important;
  }
}

@media (max-width: 480px) {
  .hib_cta-form__card {
    border-radius: 1rem;
  }

  .hib_cta-form__info,
  .hib_cta-form__form {
    padding: 1.75rem;
  }

  .hib_cta-form__title {
    font-size: var(--hib-section-title-size, 26px) !important;
  }

  .hib_cta-form__contact {
    grid-template-columns: 1fr;
  }

  .hib_cta-form__contact-item--wide {
    grid-column: auto;
  }

  .hib_cta-form__actions,
  .hib_cta-form__button {
    width: 100%;
  }
}
