/* Public shortcode forms — theme-embedded UI */

.pga-form-root.pga-rf-public-root,
.pga-form-root.pga-mohajersanj-public-root{
  --pga-font-family:var(--wd-text-font,inherit);
  width:100%;
  max-width:100%;
  min-width:0;
  margin:1.5rem 0;
  padding:0;
  box-sizing:border-box;
  overflow-x:clip;
  font-family:var(--wd-text-font,inherit);
  font-weight:var(--wd-text-font-weight,inherit);
  font-size:inherit;
  line-height:inherit;
  color:var(--pga-color-text,#0f172a);
  -webkit-font-smoothing:antialiased;
}

.pga-form-root.pga-rf-public-root :is(h1,h2,h3,h4,h5,h6),
.pga-form-root.pga-mohajersanj-public-root :is(h1,h2,h3,h4,h5,h6){
  font-family:var(--wd-title-font,inherit);
  font-weight:var(--wd-title-font-weight,inherit);
}

.pga-form-root.pga-rf-public-root .pga-rf-hero-title,
.pga-form-root.pga-rf-public-root .pga-rf-hero :is(h1,h2,h3,h4,h5,h6){
  color:#fff;
  margin:0;
  text-transform:none;
}
.pga-form-root.pga-rf-public-root .pga-rf-hero-sub{
  color:rgba(255,255,255,.92);
}
.pga-form-root.pga-rf-public-root .pga-rf-hero .pga-req-icon-svg *{
  stroke:currentColor;
  fill:none;
}

/* Break out of WordPress block theme content width (.is-layout-constrained). */
.is-layout-constrained > .pga-form-root.alignfull,
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)).pga-form-root.alignfull{
  max-width:none !important;
  width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

.pga-form-root.pga-rf-public-root *,
.pga-form-root.pga-rf-public-root *::before,
.pga-form-root.pga-rf-public-root *::after,
.pga-form-root.pga-mohajersanj-public-root *,
.pga-form-root.pga-mohajersanj-public-root *::before,
.pga-form-root.pga-mohajersanj-public-root *::after{
  box-sizing:border-box;
}

/* Controls — scoped to public embed (design-system also targets .pga-form-root) */
.pga-form-root.pga-rf-public-root .pga-input,
.pga-form-root.pga-rf-public-root .pga-select,
.pga-form-root.pga-rf-public-root .pga-textarea{
  display:block;
  width:100%;
  max-width:100%;
  min-height:2.75rem;
  padding:.78rem 1rem;
  border:1.5px solid var(--pga-color-border,#e2e8f0);
  border-radius:var(--pga-radius-sm,10px);
  font:inherit;
  font-size:.92rem;
  line-height:1.45;
  color:var(--pga-color-text,#0f172a);
  background:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}

.pga-form-root.pga-rf-public-root .pga-textarea{
  min-height:7.5rem;
  resize:vertical;
}

.pga-form-root.pga-rf-public-root .pga-input:hover,
.pga-form-root.pga-rf-public-root .pga-select:hover,
.pga-form-root.pga-rf-public-root .pga-textarea:hover{
  border-color:color-mix(in srgb,var(--pga-color-primary,#ff6633) 35%,#e2e8f0);
}

.pga-form-root.pga-rf-public-root .pga-input:focus,
.pga-form-root.pga-rf-public-root .pga-select:focus,
.pga-form-root.pga-rf-public-root .pga-textarea:focus{
  outline:none;
  border-color:var(--pga-color-primary,#ff6633);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--pga-color-primary,#ff6633) 18%,transparent);
  background:#fff;
}

.pga-form-root.pga-rf-public-root .pga-input::placeholder,
.pga-form-root.pga-rf-public-root .pga-textarea::placeholder{
  color:var(--pga-color-muted,#94a3b8);
  opacity:1;
}

.pga-form-root.pga-rf-public-root .pga-input:disabled,
.pga-form-root.pga-rf-public-root .pga-textarea:disabled{
  opacity:.65;
  cursor:not-allowed;
  background:#f8fafc;
}

/* Buttons */
.pga-form-root.pga-rf-public-root .pga-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  min-height:2.75rem;
  padding:.72rem 1.35rem;
  border:none;
  border-radius:var(--pga-radius,12px);
  font:inherit;
  font-size:.9rem;
  font-weight:700;
  line-height:1.3;
  cursor:pointer;
  text-decoration:none;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .12s ease,opacity .12s ease;
}

.pga-form-root.pga-rf-public-root .pga-btn--primary{
  background:linear-gradient(135deg,var(--pga-color-primary,#ff6633),var(--pga-color-primary-dark,#e55a2b));
  color:#fff!important;
  box-shadow:0 10px 24px -14px color-mix(in srgb,var(--pga-color-primary,#ff6633) 65%,transparent);
}

.pga-form-root.pga-rf-public-root .pga-btn--primary:hover:not(:disabled){
  background:linear-gradient(135deg,var(--pga-color-primary-dark,#e55a2b),#c94f22);
  box-shadow:0 14px 28px -12px color-mix(in srgb,var(--pga-color-primary,#ff6633) 55%,transparent);
  transform:translateY(-1px);
}

.pga-form-root.pga-rf-public-root .pga-btn--primary:active:not(:disabled){
  transform:translateY(0);
}

.pga-form-root.pga-rf-public-root .pga-btn--ghost{
  background:#fff;
  border:1.5px solid var(--pga-color-border,#e2e8f0);
  color:var(--pga-color-text,#0f172a)!important;
}

.pga-form-root.pga-rf-public-root .pga-btn--ghost:hover:not(:disabled){
  border-color:color-mix(in srgb,var(--pga-color-primary,#ff6633) 40%,#e2e8f0);
  background:#fff7f3;
  color:var(--pga-color-primary,#ff6633)!important;
}

.pga-form-root.pga-rf-public-root .pga-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

/* Card + labels */
.pga-form-root.pga-rf-public-root .pga-card{
  background:#fff;
  border:1px solid var(--pga-color-border,#e8edf2);
  border-radius:var(--pga-radius-lg,16px);
  box-shadow:0 14px 36px -28px rgba(15,23,42,.22);
}

.pga-form-root.pga-rf-public-root .pga-rf-label{
  color:var(--pga-color-text,#0f172a);
}

.pga-form-root.pga-rf-public-root .pga-req{
  color:var(--pga-color-danger,#ef4444);
  font-weight:800;
}

.pga-form-root.pga-rf-public-root .pga-rf-actions{
  padding-top:.15rem;
}

.pga-form-root.pga-rf-public-root .pga-rf-otp-cells-wrap,
.pga-form-root.pga-mohajersanj-public-root .pga-rf-otp-cells-wrap{
  display:block;
  width:100%;
  max-width:100%;
}
.pga-form-root.pga-rf-public-root .pga-rf-otp-cells,
.pga-form-root.pga-mohajersanj-public-root .pga-rf-otp-cells{
  display:grid;
  grid-template-columns:repeat(var(--pga-otp-count,6),var(--pga-otp-cell,3rem));
  justify-content:center;
  width:100%;
  max-width:100%;
  margin-inline:auto;
}
.pga-form-root.pga-rf-public-root input.pga-rf-otp-cell,
.pga-form-root.pga-rf-public-root input.pga-rf-otp-cell[type="text"],
.pga-form-root.pga-mohajersanj-public-root input.pga-rf-otp-cell,
.pga-form-root.pga-mohajersanj-public-root input.pga-rf-otp-cell[type="text"]{
  display:block !important;
  flex:none !important;
  width:var(--pga-otp-cell,3rem) !important;
  min-width:0 !important;
  max-width:100% !important;
  height:var(--pga-otp-cell,3rem) !important;
  min-height:var(--pga-otp-cell,3rem) !important;
  max-height:var(--pga-otp-cell,3rem) !important;
  padding:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

.pga-form-root.pga-rf-public-root .pga-input,
.pga-form-root.pga-rf-public-root .pga-select,
.pga-form-root.pga-rf-public-root .pga-textarea,
.pga-form-root.pga-mohajersanj-public-root .pga-input,
.pga-form-root.pga-mohajersanj-public-root .pga-select,
.pga-form-root.pga-mohajersanj-public-root .pga-textarea{
  font-size:max(16px,.92rem);
}

@media (max-width:899px){
  .pga-form-root.pga-rf-public-root,
  .pga-form-root.pga-mohajersanj-public-root{
    margin:1.15rem 0;
  }
}

@media (max-width:639px){
  .pga-form-root.pga-rf-public-root,
  .pga-form-root.pga-mohajersanj-public-root{
    margin:1rem 0;
  }
  .pga-form-root.pga-rf-public-root .pga-rf-actions{
    flex-direction:column-reverse;
    align-items:stretch;
  }
  .pga-form-root.pga-rf-public-root .pga-rf-actions .pga-btn,
  .pga-form-root.pga-mohajersanj-public-root .pga-btn--primary,
  .pga-form-root.pga-mohajersanj-public-root .pga-mohajer-next-btn{
    width:100%;
  }
  .pga-form-root.pga-rf-public-root .pga-btn,
  .pga-form-root.pga-mohajersanj-public-root .pga-btn{
    min-height:2.85rem;
  }
}
