/* Minimal, high-contrast contact form inspired by the provided reference. */
.fhri-contact-page .fhri-contact-layout { gap: clamp(1.5rem, 3vw, 2.75rem); }

/* Public notifications use FHRI's palette instead of Claro's dark admin cards. */
.fhri-contact-page .fhri-contact-messages .messages-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.fhri-contact-page .fhri-contact-messages .messages-list__wrapper {
  display: grid;
  gap: .7rem;
}

.fhri-contact-page .fhri-contact-messages .messages-list__item.messages,
.fhri-contact-page .fhri-contact-messages [data-drupal-messages] > [role="contentinfo"] {
  margin: 0;
  padding: 1rem 1.15rem;
  overflow: visible;
  border: 1px solid #e6e8f0;
  border-left: 4px solid #168b52;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 24, 76, .1);
  color: #2e2e74;
}

.fhri-contact-page .fhri-contact-messages .messages--error { border-left-color: #d72638; }
.fhri-contact-page .fhri-contact-messages .messages--warning { border-left-color: #b78313; }

.fhri-contact-page .fhri-contact-messages .messages__title {
  color: #2e2e74;
  font-size: .9rem;
  font-weight: 700;
}

.fhri-contact-page .fhri-contact-messages .messages__content,
.fhri-contact-page .fhri-contact-messages .messages__content * {
  color: #2e2e74;
}

.fhri-contact-page .fhri-contact-messages .messages__content a {
  color: #d72638;
  font-weight: 700;
  text-decoration: underline;
}

.fhri-contact-page .fhri-contact-form-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(.7rem, 1.5vw, 1.25rem);
  border: 0;
  border-radius: 24px 64px 0 64px;
  background: linear-gradient(145deg, #24245f 0%, #2E2E74 58%, #20205a 100%);
  box-shadow: 0 22px 54px rgba(22, 24, 76, .18);
}

.fhri-contact-page .fhri-contact-form-panel::before {
  position: absolute;
  z-index: -1;
  top: -190px;
  right: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 76px rgba(255,255,255,.025);
  content: "";
  pointer-events: none;
}

.fhri-contact-page .fhri-contact-form-panel::after {
  position: absolute;
  z-index: -1;
  right: 1.25rem;
  bottom: 1rem;
  width: 50px;
  height: 50px;
  background-image: radial-gradient(rgba(255,255,255,.35) 1.3px, transparent 1.3px);
  background-size: 10px 10px;
  content: "";
  pointer-events: none;
}

.fhri-contact-page .fhri-contact-form-panel .fhri-contact-kicker {
  position: relative;
  margin: 0 0 .65rem;
  color: #d7dcff;
  font-size: .74rem;
  letter-spacing: .14em;
}

.fhri-contact-page .fhri-contact-form-panel h2 {
  position: relative;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -.035em;
}

.fhri-contact-page .fhri-contact-form-panel .fhri-contact-intro {
  position: relative;
  max-width: 38rem;
  margin: .65rem 0 1.6rem;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
}

.fhri-contact-page .fhri-contact-form-content .region-content,
.fhri-contact-page .fhri-contact-form-content #block-kipya-content,
.fhri-contact-page .fhri-contact-form-content .block-system-main-block {
  margin: 0;
}

.fhri-contact-page .fhri-contact-form-content .contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .4rem .6rem;
  margin: 0;
}

.fhri-contact-page .fhri-contact-form-content .form-item,
.fhri-contact-page .fhri-contact-form-content .form-wrapper { min-width: 0; margin: 0; }

.fhri-contact-page .fhri-contact-form-content label {
  display: block;
  margin: 0 0 .25rem;
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.4;
}

.fhri-contact-page .fhri-contact-form-content input:not([type="submit"]):not([type="hidden"]),
.fhri-contact-page .fhri-contact-form-content textarea,
.fhri-contact-page .fhri-contact-form-content select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 2rem;
  padding: .45rem .6rem;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 10px 10px 10px 0;
  outline: 0;
  background: #fff;
  color: #202052;
  font: inherit;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.fhri-contact-page .fhri-contact-form-content input::placeholder,
.fhri-contact-page .fhri-contact-form-content textarea::placeholder { color: #737895; opacity: 1; }

.fhri-contact-page .fhri-contact-form-content textarea {
  min-height: 4rem;
  resize: vertical;
}

.fhri-contact-page .fhri-contact-form-content input:focus,
.fhri-contact-page .fhri-contact-form-content textarea:focus,
.fhri-contact-page .fhri-contact-form-content select:focus {
  border-color: #fff;
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.2);
}

.fhri-contact-page .fhri-contact-form-content .description,
.fhri-contact-page .fhri-contact-form-content .form-item--error-message {
  margin-top: .35rem;
  color: #f2f3ff;
  font-size: .82rem;
}

.fhri-contact-page .fhri-contact-form-content .form-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  margin: -.2rem 0 0;
}

.fhri-contact-page .fhri-contact-form-content input[type="submit"] {
  min-width: 9.5rem;
  min-height: 2rem;
  padding: .4rem 1rem;
  border: 0;
  border-radius: 12px 0 12px 12px;
  background: #D90A2C;
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.fhri-contact-page .fhri-contact-form-content input[type="submit"]:hover,
.fhri-contact-page .fhri-contact-form-content input[type="submit"]:focus-visible {
  background: #A00620;
  box-shadow: 0 8px 20px rgba(10, 10, 45, .22);
  transform: translateY(-2px);
}

@media (min-width: 620px) {
  .fhri-contact-page .fhri-contact-form-content .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fhri-contact-page .fhri-contact-form-content .form-item--name,
  .fhri-contact-page .fhri-contact-form-content .form-item--mail,
  .fhri-contact-page .fhri-contact-form-content [data-drupal-selector="edit-subject-wrapper"],
  .fhri-contact-page .fhri-contact-form-content [data-drupal-selector="edit-message-wrapper"],
  .fhri-contact-page .fhri-contact-form-content .form-actions { grid-column: 1 / -1; }
}

@media (max-width: 619px) {
  .fhri-contact-page .fhri-contact-form-panel { border-radius: 20px 44px 0 44px; }
  .fhri-contact-page .fhri-contact-form-content .form-actions { justify-content: stretch; }
  .fhri-contact-page .fhri-contact-form-content input[type="submit"] { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fhri-contact-page .fhri-contact-form-content input,
  .fhri-contact-page .fhri-contact-form-content textarea,
  .fhri-contact-page .fhri-contact-form-content select,
  .fhri-contact-page .fhri-contact-form-content input[type="submit"] { transition: none; }
}
