.regal-forms {
  --rf-accent: #b32e9a;
  --rf-accent-dark: #8f247b;
  --rf-danger: #b42318;
  --rf-success: #027a48;
  --rf-text: inherit;
  --rf-muted: #667085;
  --rf-border: #d0d5dd;
  width: 100%;
  max-width: var(--rf-form-width, 760px);
  color: var(--rf-text);
}

.regal-forms *,
.regal-forms *::before,
.regal-forms *::after { box-sizing: border-box; }
.regal-forms-description { margin: 0 0 20px; color: var(--rf-muted); }
.regal-forms-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--rf-field-spacing, 20px) 16px; }
.regal-forms-field { min-width: 0; grid-column: span 6; }
.regal-forms .regal-forms-field[hidden] { display: none !important; }
.regal-forms-field.has-error { margin: -10px; padding: 10px; border: 1px solid #f04438; border-radius: 10px; background: #fff7f6; }
.regal-forms-field--width-66 { grid-column: span 4; }
.regal-forms-field--width-50 { grid-column: span 3; }
.regal-forms-field--width-33 { grid-column: span 2; }
.regal-forms-field__label { display: block; margin-bottom: 7px; font-size: .95em; line-height: 1.4; }
.regal-forms--style-custom .regal-forms-field__label { color: var(--rf-label, inherit); font-weight: 600; }
.regal-forms-required { color: var(--rf-danger); }
.regal-forms-field__description { margin: -2px 0 8px; color: var(--rf-muted); font-size: .875em; line-height: 1.5; }
.regal-forms-input { display: block; width: 100%; margin: 0; font: inherit; }
.regal-forms-telephone { position: relative; }.regal-forms-telephone .regal-forms-input { padding-left: 52px !important; }.regal-forms-telephone__flag { position:absolute; z-index:1; top:12px; left:12px; }.regal-forms-telephone__country { display:block; margin-top:6px; color:var(--rf-muted); font-size:.8em; }
.regal-forms-address { display: grid; gap: 10px; }.regal-forms-address__search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }.regal-forms-address__find { min-height: 40px; padding: 8px 12px; border: 1px solid var(--rf-border); border-radius: 7px; background: #fff; color: inherit; font: inherit; font-size: .875em; font-weight: 600; cursor: pointer; }.regal-forms-address__find:disabled { cursor: wait; opacity: .7; }.regal-forms-address__notice { margin: 0; color: var(--rf-muted); font-size: .8em; line-height: 1.4; }.regal-forms-address__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.regal-forms-address__grid > :first-child, .regal-forms-address__grid > :nth-child(3) { grid-column: 1 / -1; }
.regal-forms--style-custom .regal-forms-input { min-height: 44px; padding: 10px 12px; border: var(--rf-border-width, 1px) solid var(--rf-border); border-radius: var(--rf-radius, 8px); background: #fff; color: #1d2939; line-height: 1.4; transition: border-color .15s ease, box-shadow .15s ease; }
.regal-forms--style-custom.regal-forms--size-small .regal-forms-input { min-height: 38px; padding: 7px 10px; }
.regal-forms--style-custom.regal-forms--size-large .regal-forms-input { min-height: 52px; padding: 13px 15px; }
.regal-forms .wp-editor-wrap { width: 100%; }
.regal-forms .wp-editor-container { border: var(--rf-border-width, 1px) solid var(--rf-border); border-radius: var(--rf-radius, 8px); overflow: hidden; }
.regal-forms-textarea { min-height: 120px; resize: vertical; }
.regal-forms--style-custom .regal-forms-input:focus { border-color: var(--rf-accent); outline: 0; box-shadow: 0 0 0 3px rgba(179, 46, 154, .15); }
.regal-forms-input[aria-invalid="true"] { border-color: #d92d20 !important; outline: 0; box-shadow: 0 0 0 3px rgba(217, 45, 32, .12) !important; }
.regal-forms-field.has-error .regal-forms-choice { color: #912018; }
.regal-forms-name-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.regal-forms-name-group > .regal-forms-field__label { text-transform: none; }
.regal-forms-name-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.regal-forms-name-part { display: grid; min-width: 0; gap: 6px; }
.regal-forms-name-part > span { color: var(--rf-muted); font-size: .8em; line-height: 1.35; }
.regal-forms-field__error { margin: 0 0 7px; color: var(--rf-danger); font-size: .875em; font-weight: 600; }
.regal-forms-submit-row { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.regal-forms-progress { display: grid; gap: 8px; margin: 0 0 16px; color: var(--rf-muted); font-size: .875em; font-weight: 600; }
.regal-forms-progress__track { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: #eaecf0; }
.regal-forms-progress__bar { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--rf-progress-colour, var(--rf-accent)); transition: width .2s ease; }
.regal-forms-page-previous, .regal-forms-page-next { min-height: 44px; padding: 10px 18px; border: 1px solid var(--rf-border); border-radius: 8px; background: #fff; color: inherit; font: inherit; cursor: pointer; }
.regal-forms-submit { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; cursor: pointer; }
.regal-forms--style-custom .regal-forms-submit { padding: 10px 20px; border: 1px solid var(--rf-accent); border-radius: 8px; background: var(--rf-accent); color: #fff; font: inherit; font-weight: 650; line-height: 1.2; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.regal-forms--style-custom .regal-forms-submit:hover { border-color: var(--rf-accent-dark); background: var(--rf-accent-dark); }
.regal-forms--style-custom .regal-forms-submit.is-processing { border-color: var(--rf-accent); background: var(--rf-accent); }
.regal-forms--style-custom .regal-forms-submit:focus-visible { outline: 3px solid rgba(179, 46, 154, .25); outline-offset: 2px; }
.regal-forms-submit:disabled { cursor: wait; opacity: .72; }
.regal-forms-submit__spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: .8; animation: regal-forms-spin .7s linear infinite; }
.regal-forms-submit.is-processing .regal-forms-submit__spinner { display: block; }
.regal-forms-form-status { color: var(--rf-muted); font-size: .875em; }
.regal-forms-form-status.is-error { color: var(--rf-danger); }
.regal-forms-notice,
.regal-forms-confirmation { margin: 0 0 20px; padding: 14px 16px; border: 1px solid #b2ddff; border-radius: 10px; background: #eff8ff; color: #175cd3; line-height: 1.5; }
.regal-forms-notice--error { border-color: #fecdca; background: #fef3f2; color: var(--rf-danger); }
.regal-forms-error-summary { margin: 0 0 20px; padding: 14px 16px; border: 1px solid #fecdca; border-radius: 10px; background: #fff7f6; color: #912018; line-height: 1.5; }
.regal-forms-error-summary ul { margin: 8px 0 0 18px; }
.regal-forms-error-summary a { color: inherit; text-decoration: underline; }
.regal-forms-error-summary:focus { outline: 3px solid rgba(217, 45, 32, .2); outline-offset: 2px; }
.regal-forms-confirmation { border-color: #abefc6; background: #ecfdf3; color: var(--rf-success); }
.regal-forms-licence-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; color: var(--rf-muted); font-size: .875em; line-height: 1.45; }
.regal-forms-licence-status.is-checking { color: #475467; }
.regal-forms-licence-status.is-error { color: var(--rf-danger); }
.regal-forms-licence-status.is-success { color: var(--rf-success); font-weight: 600; }
.regal-forms-licence-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.regal-forms-licence-status__tick { position: relative; display: inline-grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; overflow: hidden; border: 2px solid #12b76a; border-radius: 50%; background: #ecfdf3; animation: regal-forms-licence-success .32s cubic-bezier(.2,.8,.2,1) both; }
.regal-forms-licence-status__tick::after { width: 6px; height: 11px; margin-top: -3px; border: solid #039855; border-width: 0 2px 2px 0; content: ''; transform: rotate(45deg) scale(0); animation: regal-forms-licence-check .22s .18s ease-out forwards; }
.regal-forms-honeypot,
.regal-forms-honeypot[hidden] { display: none !important; }
.regal-forms-turnstile { margin-top: var(--rf-field-spacing, 20px); }
.regal-forms-recaptcha { margin-top: var(--rf-field-spacing, 20px); }
.regal-forms-choices { display: grid; gap: 9px; }
.regal-forms-choice { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.regal-forms-choice input { width: 18px; height: 18px; margin-top: 2px; }
.regal-forms--style-custom .regal-forms-choice input { accent-color: var(--rf-accent); }
.regal-forms-signature canvas { display: block; width: 100%; height: 180px; border: 1px solid var(--rf-border); border-radius: var(--rf-radius, 8px); background: #fff; touch-action: none; }
.regal-forms-signature canvas:focus-visible { outline: 3px solid color-mix(in srgb, var(--rf-accent) 25%, transparent); outline-offset: 2px; }
.regal-forms-signature__clear { min-height: 28px; margin-top: 6px; padding: 3px 7px; border: 1px solid var(--rf-border); border-radius: 5px; background: #fff; color: #475467; font: inherit; font-size: .75em; font-weight: 600; cursor: pointer; }
.regal-forms-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; }
.regal-forms-rating input { position: absolute; opacity: 0; }
.regal-forms-rating label { color: #d0d5dd; cursor: pointer; font-size: 30px; line-height: 1; }
.regal-forms-rating input:checked ~ label, .regal-forms-rating label:hover, .regal-forms-rating label:hover ~ label { color: #f5a623; }
.regal-forms-rating input:focus-visible + label { outline: 2px solid var(--rf-accent); outline-offset: 2px; }
.regal-forms .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }

@keyframes regal-forms-spin { to { transform: rotate(360deg); } }
@keyframes regal-forms-licence-success { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@keyframes regal-forms-licence-check { to { transform: rotate(45deg) scale(1); } }

@media (max-width: 640px) {
  .regal-forms-grid { gap: 18px; }
  .regal-forms-field--width-66,
  .regal-forms-field--width-50,
  .regal-forms-field--width-33 { grid-column: span 6; }
  .regal-forms-submit-row { align-items: stretch; flex-direction: column; }
  .regal-forms-submit { width: 100%; }
	.regal-forms-name-grid { grid-template-columns: 1fr; }
	.regal-forms-address__search, .regal-forms-address__grid { grid-template-columns: 1fr; }
	.regal-forms-address__grid > :first-child, .regal-forms-address__grid > :nth-child(3) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .regal-forms-submit,
  .regal-forms-input { transition: none; }
  .regal-forms-licence-status__tick,
  .regal-forms-licence-status__tick::after { animation: none; }
  .regal-forms-licence-status__tick::after { transform: rotate(45deg) scale(1); }
}
