body.hfccp-open {
  overflow: hidden;
}

.hfccp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hfccp-modal {
  width: min(1180px, 100%);
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  color: var(--hfccp-text);
  font-family: inherit;
}

.hfccp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}

.hfccp-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hfccp-content-panel {
  padding: 72px 52px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: inherit;
}

.hfccp-content-panel h2,
.hfccp-content-panel p,
.hfccp-content-panel label,
.hfccp-content-panel input,
.hfccp-content-panel button {
  font-family: inherit;
}

.hfccp-content-panel h2 {
  font-size: clamp(30px, 3vw, 54px);
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--hfccp-text);
  text-align: center;
}

.hfccp-subheadline {
  font-size: 20px;
  line-height: 1.6;
  margin: 0 0 28px;
  color: var(--hfccp-text);
  text-align: center;
}

.hfccp-form {
  display: grid;
  gap: 12px;
}

.hfccp-form label {
  font-size: 15px;
  font-weight: 600;
  color: var(--hfccp-text);
}

.hfccp-form input {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  min-height: 52px;
  padding: 0 16px;
  font-size: 16px;
  background: #fff;
  color: var(--hfccp-text);
  box-sizing: border-box;
  width: 100%;
}

.hfccp-form input:focus {
  outline: 2px solid rgba(11, 15, 117, 0.18);
  outline-offset: 0;
}

.hfccp-submit {
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  min-height: 58px;
  padding: 14px 28px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  background: var(--hfccp-btn-bg);
  color: var(--hfccp-btn-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hfccp-submit:hover,
.hfccp-submit:focus {
  opacity: 0.95;
  transform: translateY(-1px);
}

.hfccp-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 92px;
  border: 0;
  background: var(--hfccp-btn-bg);
  color: #fff;
  font-size: 56px;
  line-height: 1;
  cursor: pointer;
  border-bottom-left-radius: 24px;
}

.hfccp-message {
  min-height: 24px;
  margin: 6px 0 0;
  font-size: 15px;
}

.hfccp-message.is-success {
  color: #18794e;
}

.hfccp-message.is-error {
  color: #b42318;
}

.hfccp-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .hfccp-modal {
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
  }

  .hfccp-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hfccp-image-panel {
    min-height: 240px;
  }

  .hfccp-content-panel {
    padding: 60px 24px 28px;
  }

  .hfccp-subheadline {
    font-size: 18px;
  }

  .hfccp-close {
    width: 72px;
    height: 72px;
    font-size: 42px;
  }
}
