/* ---------------------------------------------------------------
   Forms - shared shape language
   Matches the card grids: 18px panels, softly rounded controls.
   --------------------------------------------------------------- */

:root {
  --form-panel-radius: 18px;
  --form-control-radius: 12px;
  --form-accent: #f70e88;
}

/* ---- panels that wrap a form ---- */
.form-panel {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: var(--form-panel-radius);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .04),
    0 10px 28px -14px rgba(15, 23, 42, .18);
}

/* the theme puts its own radius/shadow on these - keep ours */
.form-panel.card,
.form-panel.shadow-light,
.form-panel.profit-process {
  border-radius: var(--form-panel-radius);
}

/* ---- controls ---- */
.form-control,
.form-select,
textarea.form-control {
  border-radius: var(--form-control-radius);
  border-color: #e3e7ec;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(247, 14, 136, .45);
  box-shadow: 0 0 0 .2rem rgba(247, 14, 136, .12);
}

textarea.form-control { padding-top: .65rem; }

/* ---- input groups (e.g. the help centre search) ---- */
.input-group > .form-control:not(:last-child),
.input-group > .form-select:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group > .form-control:not(:first-child),
.input-group > .form-select:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > .btn:last-child {
  border-top-right-radius: var(--form-control-radius);
  border-bottom-right-radius: var(--form-control-radius);
}

.input-group > .btn:first-child {
  border-top-left-radius: var(--form-control-radius);
  border-bottom-left-radius: var(--form-control-radius);
}

/* ---- contact page: icon + details blocks ---- */
.contact-media {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-media-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(247, 14, 136, .08);
  color: var(--form-accent);
  font-size: 1.15rem;
  transition: background .3s ease;
}

.contact-media:hover .contact-media-icon { background: rgba(247, 14, 136, .16); }

.contact-media-body { min-width: 0; }

.contact-media-body h4 {
  margin: 0 0 .35rem;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.contact-media-body p { margin: 0; line-height: 1.7; }

.contact-media-body a {
  color: var(--form-accent);
  text-decoration: none;
  word-break: break-word;
}

.contact-media-body a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .form-control,
  .form-select,
  .contact-media-icon { transition: none; }
}
