/* Agency Forms — frontend */
.af-form-wrap{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:22px 22px 18px;
  box-shadow:0 18px 46px rgba(2,6,23,.08);
  max-width: var(--af-maxw, 720px);
  width:100%;
}
.af-form-title{
  font-size:22px;
  font-weight:900;
  color:#0f172a;
  margin:0 0 6px;
}
.af-form-subtitle{
  font-size:13px;
  line-height:1.5;
  color:#64748b;
  margin:0 0 16px;
}
.af-form .af-fields{
  display:grid;
  gap:14px;
}
.af-cols-two .af-fields{
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.af-cols-two .af-col-full{ grid-column:1 / -1; }

/* 3 columns (useful for name/email/phone rows) */
.af-cols-three .af-fields{
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.af-cols-three .af-col-full{ grid-column:1 / -1; }

@media (max-width: 820px){
  .af-cols-three .af-fields{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .af-cols-three .af-fields{ grid-template-columns: 1fr; }
}
.af-label{
  display:block;
  font-size:12px;
  font-weight:800;
  color:#0f172a;
  margin:0 0 6px;
}
.af-field input[type="text"],
.af-field input[type="email"],
.af-field input[type="tel"],
.af-field select,
.af-field textarea{
  width:100%;
  border:1px solid #dbe4f0;
  border-radius: var(--af-radius, 14px);
  padding:12px 14px;
  font-size:14px;
  outline:none;
  background:#fff;
  color:#0f172a;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.af-field textarea{ min-height:110px; resize:vertical; }

.af-field input:focus,
.af-field select:focus,
.af-field textarea:focus{
  border-color: color-mix(in srgb, var(--af-accent, #1F6FEB) 55%, #dbe4f0);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--af-accent, #1F6FEB) 15%, transparent);
}

.af-error{
  color:#b91c1c;
  font-size:12px;
  margin-top:6px;
  min-height:14px;
}

.af-actions{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-start;
}
.af-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  cursor:pointer;
  padding:12px 18px;
  border-radius: calc(var(--af-radius,14px) + 4px);
  font-weight:900;
  font-size:14px;
  transition: transform .06s ease, filter .15s ease;
  user-select:none;
}
.af-btn:active{ transform: translateY(1px); }
.af-btn__icon{ font-size:14px; opacity:.95; }

.af-btn-solid{
  background: var(--af-accent, #1F6FEB);
  color:#fff;
  width:100%;
}
.af-btn-green_cta{
  background:#16a34a;
  color:#fff;
  box-shadow:0 16px 40px rgba(22,163,74,.25);
  min-width:240px;
  margin:0 auto;
}
.af-btn-yellow_cta{
  background:#facc15;
  color:#111827;
  box-shadow:0 18px 46px rgba(250,204,21,.25);
  min-width:240px;
  margin:0 auto;
}

.af-status{ font-size:13px; color:#0f172a; }

/* Radio */
.af-radio{ display:flex; flex-direction:column; gap:10px; }
.af-radio__row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fff;
}
.af-radio__row input[type="radio"]{
  appearance:none;
  width:18px;
  height:18px;
  border-radius:50%;
  border:2px solid #cbd5e1;
  display:inline-block;
  position:relative;
  margin:0;
  flex:0 0 auto;
}
.af-radio__row input[type="radio"]::after{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:50%;
  background: var(--af-accent, #1F6FEB);
  transform:scale(0);
  transition: transform .12s ease;
}
.af-radio__row input[type="radio"]:checked{
  border-color: var(--af-accent, #1F6FEB);
}
.af-radio__row input[type="radio"]:checked::after{ transform:scale(1); }
.af-radio__row span{ font-size:13px; font-weight:800; color:#0f172a; }

/* Presets tweaks */
.af-preset-minimal_gray{ box-shadow:0 12px 34px rgba(2,6,23,.06); }
.af-preset-openwork_blue{ border-color:#dbeafe; box-shadow:0 18px 46px rgba(37,99,235,.10); }
.af-preset-compact_yellow{
  border-color:#e2e8f0;
  padding:18px;
}
.af-preset-compact_yellow .af-form-title{ font-size:20px; }
.af-preset-compact_yellow .af-cols-two .af-fields{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.af-preset-compact_yellow .af-radio__row{
  border:0;
  padding:4px 0;
  background:transparent;
}
.af-preset-compact_yellow .af-actions{ align-items:center; }
.af-preset-compact_yellow .af-btn{ width:auto; }

.af-preset-landing_green{
  border-radius:22px;
  box-shadow:0 20px 60px rgba(2,6,23,.10);
}
.af-preset-landing_green .af-actions{ align-items:stretch; }
.af-preset-landing_green .af-btn{ width:100%; min-width:0; }

/* Modal */
.af-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(2,6,23,.55);
}
.af-modal__panel{
  width:min(820px, 100%);
  max-height:90vh;
  overflow:auto;
  position:relative;
}
.af-modal__close{
  position:absolute;
  top:10px;
  right:10px;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid #e2e8f0;
  background:#fff;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
.af-btn-open{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  cursor:pointer;
  padding:10px 14px;
  border-radius:12px;
  background:var(--af-accent, #1F6FEB);
  color:#fff;
  font-weight:900;
}

/* Labels toggle */
.af-labels-hide .af-label{ display:none; }

/* Inputs variants */
.af-inputs-compact .af-field input[type="text"],
.af-inputs-compact .af-field input[type="email"],
.af-inputs-compact .af-field input[type="tel"],
.af-inputs-compact .af-field select,
.af-inputs-compact .af-field textarea{
  padding:10px 12px;
  font-size:13px;
}

/* Radio variants */
.af-radio-classic .af-radio{ gap:6px; }
.af-radio-classic .af-radio__row{
  border:0;
  padding:2px 0;
  background:transparent;
}

/* Section */
.af-section{
  padding:10px 0 2px;
  border-top:1px solid #e2e8f0;
  margin-top:6px;
}
.af-section__title{
  font-size:13px;
  font-weight:900;
  color:#0f172a;
}

/* Checkbox row */
/* Checkbox row (new, no <label> to avoid theme collisions) */
.af-checkrow{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  user-select:none;
}
.af-checkrow__input{
  width:18px;
  height:18px;
  margin:0;
  accent-color:var(--af-accent, #1F6FEB);
}
.af-checkrow__text{font-size:14px;color:#111827}

.af-check{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  user-select:none;
}
.af-check input{
  width:18px;
  height:18px;
  margin:0;
  accent-color:var(--af-accent, #1F6FEB);
}
.af-check span{font-size:14px;color:#111827}

/* reCAPTCHA */
.af-recaptcha{margin-top:14px}
.af-recaptcha--invisible{height:0;overflow:hidden;margin:0}
.af-recaptcha-note{margin-top:8px;font-size:12px;color:#64748b}
.af-recaptcha-note a{color:inherit;text-decoration:underline}
