/* ValueShift AI — sign-up dialog (uses the theme's existing legal-dialog look and colours) */
.afl-dialog{width:min(640px,calc(100% - 24px))}
.afl-dialog .legal-dialog-inner{padding:34px 36px 34px}
.afl-dialog h2{margin:6px 54px 10px 0;padding:0 0 12px;font-size:26px}
.afl-eyebrow{display:inline-block;background:var(--op-primary-100,#fbe3d8);color:var(--op-primary-900,#163a54);border-radius:30px;padding:5px 13px;text-transform:uppercase;letter-spacing:1.6px;font-size:11px;font-weight:800}
.afl-intro{margin:0 0 14px}
.afl-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}
.afl-col2{grid-column:1 / -1}
.afl-dialog label{display:block;font-size:13px;font-weight:700;color:var(--op-primary-900,#163a54);margin-top:8px}
.afl-dialog input[type=text],.afl-dialog input[type=email],.afl-dialog input[type=tel],.afl-dialog input[type=number],.afl-dialog select{display:block;width:100%;box-sizing:border-box;padding:10px 12px;margin:4px 0 2px;border:1px solid #cdbfae;border-radius:8px;font:inherit;font-size:15px;background:#fff;color:var(--op-neutral-900,#163a54)}
.afl-dialog input:focus,.afl-dialog select:focus{outline:2px solid var(--op-primary-500,#f0b44c);outline-offset:1px;border-color:transparent}
.afl-dialog .afl-hint{font-size:12px!important;margin:2px 0 4px;color:var(--op-neutral-500,#5d7484)}
.afl-users input{max-width:140px}
.afl-summary{margin:16px 0 12px;background:#faf5ee;border:1px solid var(--op-neutral-100,#dfe7ee);border-radius:12px;padding:14px 16px}
.afl-row{display:flex;justify-content:space-between;gap:12px;font-size:14px;padding:3px 0}
.afl-row span:last-child{white-space:nowrap;font-weight:700}
.afl-total{border-top:1px solid var(--op-neutral-100,#dfe7ee);margin-top:6px;padding-top:9px;font-size:16px;color:var(--op-primary-900,#163a54)}
.afl-then{color:var(--op-neutral-700,#3a4a56)}
.afl-summary p{font-size:12px!important;line-height:1.5!important;margin:8px 0 0;color:var(--op-neutral-500,#5d7484)}
.afl-dialog label.afl-terms{display:flex;gap:10px;align-items:flex-start;font-weight:500;font-size:13px;line-height:1.5;margin:6px 0 14px}
.afl-terms input{margin-top:3px;width:18px;height:18px;flex:0 0 auto;accent-color:var(--op-primary-500,#f0b44c)}
.afl-terms a{color:var(--op-primary-700,#245b54);text-decoration:underline}
.afl-submit{display:block;width:100%;border:0;border-radius:4px;background:var(--op-coral,#f0b44c);color:#fff;font:inherit;font-weight:800;font-size:16px;padding:14px 18px;cursor:pointer;box-shadow:6px 6px 0 var(--op-primary-900,#163a54);transition:transform .15s}
.afl-submit:hover{background:#d85f43;transform:translate(-1px,-1px)}
.afl-submit:disabled{opacity:.6;cursor:wait}
.afl-message{font-size:14px!important;margin:12px 0 0;color:#b23b1f;min-height:1em}
.afl-icon{width:52px;height:52px;border-radius:50%;background:var(--op-mint,#e3edf3);color:#1d7a4f;font-size:27px;font-weight:900;display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.afl-icon-cancel{background:var(--op-primary-100,#fbe3d8);color:#b23b1f}
.afl-notice .afl-submit{margin-top:18px}
@media (max-width:560px){
  .afl-dialog .legal-dialog-inner{padding:24px 18px 26px}
  .afl-grid{grid-template-columns:1fr}
  .afl-dialog h2{font-size:22px}
}

/* ---------- Sign-up dialog: branded design (website colours) ---------- */
.afl-signup{width:min(700px,calc(100% - 24px));background:#f4f7fa}
.afl-signup .legal-dialog-inner{padding:0;background:#f4f7fa}
.afl-signup .legal-dialog-close{position:absolute;right:16px;top:16px;float:none;background:rgba(255,255,255,.14);color:#fff}
.afl-signup .legal-dialog-close:hover{background:#f0b44c;color:#fff}
.afl-head{position:relative;background:#163a54;color:#fff;padding:26px 34px 22px;overflow:hidden}
.afl-head:before{content:'';position:absolute;right:-70px;top:-70px;width:230px;height:230px;border-radius:50%;border:34px solid rgba(231,111,81,.16)}
.afl-head:after{content:'';position:absolute;left:0;right:0;bottom:0;height:5px;background:linear-gradient(90deg,#f0b44c 0 60%,#f0b44c 60% 100%)}
.afl-brand{display:flex;align-items:center;gap:10px;margin-bottom:16px;position:relative}
.afl-brand img{width:44px;height:44px;border-radius:50%;background:#f8fafc}
.afl-brand span{font-weight:800;font-size:15px;line-height:1.15}
.afl-brand small{display:block;font-size:10px;letter-spacing:1.6px;color:#f0c97a;font-weight:600}
.afl-signup .afl-eyebrow{background:#f0b44c;color:#fff}
.afl-signup .afl-head h2{color:#fff;border:0;margin:10px 40px 8px 0;padding:0;font-size:28px;line-height:1.15}
.afl-signup .afl-head h2:before,.afl-signup .afl-head h2:after{display:none}
.afl-signup .afl-intro{color:#e3edf3;margin:0 0 14px;font-size:14px!important;position:relative}
.afl-steps{list-style:none;margin:0;padding:0;display:flex;gap:8px;flex-wrap:wrap;position:relative}
.afl-steps li{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:30px;padding:5px 12px 5px 5px;font-size:12.5px;font-weight:600;color:#fff;margin:0!important}
.afl-steps b,.afl-card legend b{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#f0b44c;color:#fff;font-size:12px;font-weight:800}
.afl-body{padding:20px 26px 26px}
.afl-card{border:1px solid #dfe7ee;background:#fff;border-radius:14px;padding:6px 18px 16px;margin:0 0 14px;box-shadow:0 6px 18px rgba(22,61,58,.06)}
.afl-card legend{display:flex;align-items:center;gap:8px;padding:0 8px;margin-left:-8px;font-weight:800;font-size:15px;color:#163a54}
.afl-signup input[type=text],.afl-signup input[type=email],.afl-signup input[type=tel],.afl-signup select{background:#f8fafc;border:1px solid #d5e0e8}
.afl-signup input:focus,.afl-signup select:focus{background:#fff}
.afl-plan{background:linear-gradient(180deg,#fff 0,#fff 55%,#fbf4ec 100%)}
.afl-users{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:4px 0 12px}
.afl-users label{margin:0!important}
.afl-stepper{display:flex;align-items:center;border:1px solid #d5e0e8;border-radius:10px;overflow:hidden;background:#fff}
.afl-stepper button{width:42px;height:44px;border:0;background:#163a54;color:#fff;font-size:22px;font-weight:700;cursor:pointer;line-height:1}
.afl-stepper button:hover{background:#f0b44c}
.afl-signup .afl-stepper input{width:64px!important;max-width:none;border:0!important;margin:0!important;border-radius:0;text-align:center;font-size:18px!important;font-weight:800;color:#163a54;padding:8px 4px!important;-moz-appearance:textfield;background:#fff}
.afl-stepper input::-webkit-outer-spin-button,.afl-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.afl-signup .afl-summary{background:#163a54;border:0;color:#eef3f7;border-radius:12px;padding:16px 18px;margin:0}
.afl-signup .afl-row{color:#eef3f7}
.afl-signup .afl-total{border-top:1px dashed rgba(255,255,255,.25);color:#fff;font-size:18px}
.afl-signup .afl-total span:last-child{color:#f0b44c;font-size:22px}
.afl-signup .afl-then{color:#f0c97a}
.afl-signup .afl-summary p{color:#a9c2ba}
.afl-signup .afl-terms{background:#fff;border:1px solid #dfe7ee;border-radius:12px;padding:12px 14px;margin:4px 0 16px}
.afl-signup .afl-submit{font-size:17px;padding:16px 18px}
.afl-secure{text-align:center;font-size:12px!important;color:#5d7484;margin:14px 0 0!important}
@media (max-width:560px){
  .afl-head{padding:22px 20px 20px}
  .afl-signup .afl-head h2{font-size:22px}
  .afl-body{padding:16px 12px 20px}
  .afl-card{padding:4px 12px 14px}
  .afl-steps li{font-size:11.5px}
}

/* ---------- Payment result pop-up: branded design ---------- */
.afl-notice.afl-signup{width:min(620px,calc(100% - 24px))}
.afl-bigicon{width:58px;height:58px;border-radius:50%;background:#e3edf3;color:#1d7a4f;font-size:30px;font-weight:900;display:flex;align-items:center;justify-content:center;margin:0 0 12px;position:relative;box-shadow:0 0 0 6px rgba(216,243,220,.18)}
.afl-bigicon-cancel{background:#fbe3d8;color:#b23b1f;box-shadow:0 0 0 6px rgba(251,227,216,.18)}
.afl-notice .afl-head h2{margin-top:8px}
.afl-notice .afl-intro{margin-bottom:4px}
.afl-next-title{font-weight:800;font-size:15px;color:#163a54;margin:2px 0 10px}
.afl-next{display:grid;gap:10px;margin-bottom:18px}
.afl-next-item{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid #dfe7ee;border-radius:12px;padding:12px 14px;box-shadow:0 4px 14px rgba(22,61,58,.05);font-size:14.5px;line-height:1.5;color:#3a4a56}
.afl-next-item b{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#f0b44c;color:#fff;font-size:13px;font-weight:800;margin-top:1px}
.afl-next-item strong{color:#163a54}
.afl-notice .afl-submit{margin-top:0}

/* ---------- Compact two-column sign-up form (fits on one screen on desktop) ---------- */
.afl-signup:not(.afl-notice){width:min(1120px,calc(100% - 24px));max-height:96vh}
.afl-signup:not(.afl-notice) .legal-dialog-inner{max-height:96vh}
.afl-signup:not(.afl-notice) .afl-head{padding:16px 28px 14px}
.afl-signup:not(.afl-notice) .afl-head:before{width:170px;height:170px;right:-60px;top:-80px;border-width:26px}
.afl-signup:not(.afl-notice) .afl-brand{margin-bottom:8px}
.afl-signup:not(.afl-notice) .afl-brand img{width:34px;height:34px}
.afl-signup:not(.afl-notice) .afl-head h2{font-size:23px;margin:6px 48px 4px 0}
.afl-signup:not(.afl-notice) .afl-intro{font-size:13px!important;margin:0;line-height:1.45}
.afl-signup:not(.afl-notice) .afl-steps{display:none}
.afl-signup:not(.afl-notice) .afl-eyebrow{display:none}
.afl-cols{display:grid;grid-template-columns:1.25fr 1fr;gap:16px;align-items:start}
.afl-signup .afl-body{padding:14px 20px 16px}
.afl-signup .afl-card{padding:2px 14px 10px;margin:0 0 10px}
.afl-signup .afl-card legend{font-size:14px}
.afl-signup .afl-grid{gap:0 12px}
.afl-signup label{font-size:12px;margin-top:5px}
.afl-signup input[type=text],.afl-signup input[type=email],.afl-signup input[type=tel],.afl-signup select{padding:7px 10px;font-size:14px;margin:3px 0 1px}
.afl-signup .afl-hint{margin:2px 0 0;font-size:11.5px!important;line-height:1.35}
.afl-signup .afl-users{margin:2px 0 8px}
.afl-signup .afl-stepper button{height:36px;width:36px;font-size:19px}
.afl-signup .afl-stepper input{padding:5px 4px!important;font-size:16px!important}
.afl-signup .afl-summary{padding:11px 14px}
.afl-signup .afl-row{font-size:13px;padding:2px 0}
.afl-signup .afl-total{font-size:16px;padding-top:6px;margin-top:4px}
.afl-signup .afl-total span:last-child{font-size:19px}
.afl-signup .afl-summary p{font-size:11px!important;margin-top:5px}
.afl-signup label.afl-terms{padding:9px 12px;margin:0 0 10px;font-size:12px;line-height:1.4}
.afl-signup .afl-submit{padding:13px 16px;font-size:16px}
.afl-signup .afl-secure{margin-top:9px!important;font-size:11.5px!important}
.afl-signup .afl-message{margin-top:6px}
@media (max-width:900px){
  .afl-cols{grid-template-columns:1fr;gap:0}
  .afl-signup:not(.afl-notice){max-height:none}
}

.afl-signup .afl-summary p.afl-promo{color:#f0c97a;font-weight:600;margin-top:6px}
