/* AYYES Forms — Frontend */
.ayyesfo-preview-page{margin:0;background:linear-gradient(180deg,#f6f7fb,#eef1f6);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;color:#0f172a;min-height:100vh}
.ayyesfo-prev-bar{background:#ffffff;border-bottom:1px solid #e6e8ef;padding:12px 24px;display:flex;justify-content:space-between;align-items:center;gap:16px;position:sticky;top:0;z-index:100;box-shadow:0 1px 3px rgba(15,23,42,.04)}
.ayyesfo-prev-brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:15px;color:#0f172a}
.ayyesfo-prev-brand .ayyesfo-brand-icon{width:32px;height:32px;background:linear-gradient(135deg,#3399ff,#5cb2ff);border-radius:9px;display:inline-flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 4px 10px rgba(51,153,255,.28)}
.ayyesfo-prev-brand small{display:block;font-weight:500;font-size:11px;color:#64748b;letter-spacing:.04em;text-transform:uppercase}
.ayyesfo-prev-toolbar{display:flex;gap:8px;align-items:center}
.ayyesfo-prev-toolbar .ayyesfo-prev-btn-a{background:#fff;color:#334155;border:1px solid #e6e8ef;padding:6px 14px;border-radius:8px;font-weight:600;font-size:13px;text-decoration:none;display:inline-flex;align-items:center;gap:6px;transition:all .15s}
.ayyesfo-prev-toolbar .ayyesfo-prev-btn-a:hover{border-color:#3399ff;color:#3399ff;background:#e6f2ff}
.ayyesfo-prev-toolbar .ayyesfo-prev-btn-primary{background:linear-gradient(135deg,#3399ff,#5cb2ff);color:#fff;border:0;box-shadow:0 4px 10px rgba(51,153,255,.25)}
.ayyesfo-prev-toolbar .ayyesfo-prev-btn-primary:hover,.ayyesfo-prev-toolbar .ayyesfo-prev-btn-primary:focus{background:#0b57d0!important;border-color:#0b57d0!important;filter:none;color:#fff!important}
.ayyesfo-prev-devices{display:inline-flex;background:#f8fafc;border:1px solid #e6e8ef;border-radius:8px;padding:3px}
.ayyesfo-prev-devices a{padding:6px 12px;border-radius:6px;text-decoration:none;font-size:12px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.ayyesfo-prev-devices a.active{background:linear-gradient(135deg,#3399ff,#5cb2ff);color:#fff;box-shadow:0 2px 6px rgba(51,153,255,.25)}
.ayyesfo-prev-shell{max-width:1100px;margin:24px auto;padding:0 20px}
.ayyesfo-prev-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;color:#64748b;font-size:12px}
.ayyesfo-prev-meta strong{color:#0f172a}
.ayyesfo-prev-canvas{background:#fff;border:1px solid #e6e8ef;border-radius:18px;box-shadow:0 12px 32px rgba(15,23,42,.08),0 4px 12px rgba(15,23,42,.05);padding:34px;margin:0 auto;transition:max-width .3s;position:relative}
.ayyesfo-prev-canvas[data-device=desktop]{max-width:900px}
.ayyesfo-prev-canvas[data-device=tablet]{max-width:640px}
.ayyesfo-prev-canvas[data-device=mobile]{max-width:400px;padding:22px}
.ayyesfo-prev-badge{position:absolute;top:14px;right:14px;background:#e6f2ff;color:#3399ff;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:5px 10px;border-radius:999px;display:inline-flex;align-items:center;gap:5px}
.ayyesfo-prev-badge:before{content:"";width:6px;height:6px;background:#3399ff;border-radius:50%;animation:ayyesfoPulse 1.6s ease-in-out infinite}
.ayyesfo-prev-footer{text-align:center;color:#94a3b8;font-size:12px;margin:24px 0 40px}
.ayyesfo-prev-footer a{color:#3399ff;text-decoration:none;font-weight:700}
.ayyesfo-prev-canvas[data-device=tablet] .ayyesfo-row-3{grid-template-columns:1fr 1fr}
.ayyesfo-prev-canvas[data-device=mobile] .ayyesfo-row-2,.ayyesfo-prev-canvas[data-device=mobile] .ayyesfo-row-3,.ayyesfo-prev-canvas[data-device=mobile] .ayyesfo-layout-row{grid-template-columns:1fr}
.ayyesfo-prev-canvas[data-device=mobile] .ayyesfo-col-6{grid-column:span 12}
.ayyesfo-prev-canvas[data-device=mobile] .ayyesfo-size-small input,.ayyesfo-prev-canvas[data-device=mobile] .ayyesfo-size-medium input,
.ayyesfo-prev-canvas[data-device=mobile] .ayyesfo-size-small select,.ayyesfo-prev-canvas[data-device=mobile] .ayyesfo-size-medium select,
.ayyesfo-prev-canvas[data-device=mobile] .ayyesfo-size-small textarea,.ayyesfo-prev-canvas[data-device=mobile] .ayyesfo-size-medium textarea{max-width:100%}
@keyframes ayyesfoPulse{0%,100%{opacity:1}50%{opacity:.4}}

.ayyesfo-form{width:100%;max-width:var(--ayyesfo-max-width,680px);margin:0 auto;font-family:inherit;box-sizing:border-box}
.ayyesfo-form *{box-sizing:border-box}
.ayyesfo-form-title{font-size:24px;font-weight:600;margin:0 0 6px}
.ayyesfo-form-description{color:#6b7280;margin-bottom:18px}

.ayyesfo-field{margin-bottom:var(--ayyesfo-field-spacing,18px)}
.ayyesfo-layout-row{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;
  margin-bottom:var(--ayyesfo-field-spacing,18px)
}
.ayyesfo-layout-row>.ayyesfo-field{min-width:0;margin-bottom:0}
.ayyesfo-field-label{display:block;font-weight:600;font-size:14px;margin-bottom:6px;color:#1f2937}
.ayyesfo-required{color:#dc2626}
.ayyesfo-field-description{color:#6b7280;font-size:13px;margin-top:4px}

.ayyesfo-field input[type=text],.ayyesfo-field input[type=email],.ayyesfo-field input[type=url],.ayyesfo-field input[type=tel],
.ayyesfo-field input[type=number],.ayyesfo-field input[type=date],.ayyesfo-field input[type=time],
.ayyesfo-field textarea,.ayyesfo-field select{
  width:100%;padding:10px 12px;border:1px solid var(--ayyesfo-input-border,#d1d5db);border-radius:var(--ayyesfo-input-radius,8px);font-size:15px;background:#fff;color:#111827;
  font-family:inherit;line-height:1.4;transition:border-color .15s,box-shadow .15s;
}
.ayyesfo-field input:focus,.ayyesfo-field textarea:focus,.ayyesfo-field select:focus{outline:none;border-color:#3399ff;box-shadow:0 0 0 3px rgba(51,153,255,.15)}
.ayyesfo-field input.error,.ayyesfo-field textarea.error,.ayyesfo-field select.error{border-color:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.12)}
.ayyesfo-field textarea{resize:vertical;min-height:96px}

.ayyesfo-size-small input,.ayyesfo-size-small select{max-width:240px}
.ayyesfo-size-medium input,.ayyesfo-size-medium select{max-width:420px}
.ayyesfo-size-large input,.ayyesfo-size-large select{max-width:100%}
.ayyesfo-field-textarea textarea{width:100%;max-width:100%}
.ayyesfo-field-textarea.ayyesfo-size-small textarea{min-height:86px}
.ayyesfo-field-textarea.ayyesfo-size-medium textarea{min-height:132px}
.ayyesfo-field-textarea.ayyesfo-size-large textarea{min-height:210px}
.ayyesfo-size-small .ayyesfo-field-row{max-width:240px}
.ayyesfo-size-medium .ayyesfo-field-row{max-width:420px}
.ayyesfo-size-large .ayyesfo-field-row{max-width:100%}
.ayyesfo-size-small .ayyesfo-address-grid{max-width:240px}
.ayyesfo-size-medium .ayyesfo-address-grid{max-width:420px}
.ayyesfo-size-large .ayyesfo-address-grid{max-width:100%}
.ayyesfo-field-row input{max-width:100%}

.ayyesfo-field-row{display:grid;gap:10px}
.ayyesfo-row-2{grid-template-columns:1fr 1fr}
.ayyesfo-row-3{grid-template-columns:1fr 1fr 1fr}
.ayyesfo-field-row small{display:block;font-size:12px;color:#6b7280;margin-top:3px}

.ayyesfo-address-grid{display:grid;width:100%;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px}
.ayyesfo-address-grid>div{min-width:0}
.ayyesfo-address-grid input,.ayyesfo-address-grid select{width:100%;max-width:100%}
.ayyesfo-address-grid small{display:block;font-size:12px;color:#6b7280;margin-top:3px}
.ayyesfo-col-12{grid-column:span 12}
.ayyesfo-col-6{grid-column:span 6}
@media (max-width:520px){
  .ayyesfo-col-6{grid-column:span 12}
  .ayyesfo-row-2,.ayyesfo-row-3,.ayyesfo-layout-row{grid-template-columns:1fr}
}

.ayyesfo-choice-list{list-style:none;padding:0;margin:0}
.ayyesfo-choice-list li{padding:5px 0;font-size:15px}
.ayyesfo-choice-list label{cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.ayyesfo-choice-list.ayyesfo-choice-layout-two,.ayyesfo-choice-list.ayyesfo-choice-layout-three{display:grid;gap:0 16px}
.ayyesfo-choice-list.ayyesfo-choice-layout-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.ayyesfo-choice-list.ayyesfo-choice-layout-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.ayyesfo-choice-list.ayyesfo-choice-layout-inline{display:flex;align-items:center;flex-wrap:wrap;gap:4px 18px}

/* Slider */
.ayyesfo-slider-wrap{display:flex;align-items:center;gap:10px}
.ayyesfo-slider-wrap input[type=range]{flex:1;accent-color:#3399ff}
.ayyesfo-slider-output{font-weight:600;color:#3399ff;font-variant-numeric:tabular-nums;min-width:32px;text-align:right}

/* File upload */
.ayyesfo-file-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px dashed #d1d5db;border-radius:10px;padding:22px;background:#fafbfc;cursor:pointer;text-align:center;transition:border-color .15s,background .15s}
.ayyesfo-file-drop:hover,.ayyesfo-file-drop.drag{border-color:#3399ff;background:#faf7ff}
.ayyesfo-file-drop-icon{font-size:24px;margin-bottom:6px;color:#6b7280}
.ayyesfo-file-drop-text{font-size:13px;color:#6b7280}
.ayyesfo-file-drop input[type=file]{display:none}
.ayyesfo-file-list{list-style:none;padding:0;margin:8px 0 0;font-size:13px}
.ayyesfo-file-list li{padding:4px 0;color:#374151}

/* Rating */
.ayyesfo-rating{display:inline-flex;flex-direction:row-reverse;font-size:28px;line-height:1;gap:2px}
.ayyesfo-rating input{display:none}
.ayyesfo-rating label{cursor:pointer;color:#d1d5db;transition:color .1s;padding:2px}
.ayyesfo-rating label:hover,.ayyesfo-rating label:hover ~ label,.ayyesfo-rating input:checked ~ label{color:#f59e0b}

/* Signature */
.ayyesfo-sig-wrap{position:relative;display:block;max-width:100%}
.ayyesfo-sig-canvas{border:1px solid #d1d5db;border-radius:8px;background:#fafbfc;display:block;width:100%;cursor:crosshair;touch-action:none}
.ayyesfo-field-signature.ayyesfo-size-small .ayyesfo-sig-wrap{width:320px}
.ayyesfo-field-signature.ayyesfo-size-small .ayyesfo-sig-canvas{height:90px}
.ayyesfo-field-signature.ayyesfo-size-medium .ayyesfo-sig-wrap{width:500px}
.ayyesfo-field-signature.ayyesfo-size-medium .ayyesfo-sig-canvas{height:160px}
.ayyesfo-field-signature.ayyesfo-size-large .ayyesfo-sig-wrap{width:100%}
.ayyesfo-field-signature.ayyesfo-size-large .ayyesfo-sig-canvas{height:220px}
.ayyesfo-sig-clear{position:absolute;top:6px;right:6px;background:#fff;border:1px solid #d1d5db;border-radius:4px;font-size:11px;padding:3px 8px;cursor:pointer;color:#6b7280}

/* Payment */
.ayyesfo-input-prefix{display:flex;align-items:center;border:1px solid #d1d5db;border-radius:8px;background:#fff;overflow:hidden}
.ayyesfo-input-prefix .ayyesfo-currency{padding:0 12px;background:#f3f4f6;color:#374151;font-weight:600;font-size:14px;border-right:1px solid #d1d5db;height:42px;display:inline-flex;align-items:center}
.ayyesfo-input-prefix input{border:0!important;padding:10px 12px;flex:1;width:100%}
.ayyesfo-payment-display{font-size:18px;color:#1f2937;padding:8px 0}
.ayyesfo-total-display{font-size:24px;font-weight:600;color:#3399ff;padding:10px 0}
.ayyesfo-total-display .ayyesfo-total-currency{font-size:14px;color:#6b7280;margin-left:6px;font-weight:500}

/* Credit card */
.ayyesfo-cc-card{border:1px solid #d1d5db;border-radius:10px;padding:14px;background:linear-gradient(180deg,#fff,#fafbfc)}
.ayyesfo-cc-row{margin-bottom:10px}
.ayyesfo-cc-row label{display:block;font-size:13px;font-weight:600;color:#374151;margin-bottom:4px}
.ayyesfo-cc-row-2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:0}
.ayyesfo-cc-input{border:1px solid #d1d5db;border-radius:6px;padding:0;background:#fff}
.ayyesfo-cc-fallback{border:0;width:100%;padding:9px 12px;font-size:15px;background:transparent}
.ayyesfo-cc-notice{font-size:11px;color:#6b7280;margin:6px 2px 0}

/* GDPR */
.ayyesfo-gdpr-label{display:flex;align-items:flex-start;gap:8px;cursor:pointer;font-size:13px;color:#374151;background:#fafbfc;padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px}

/* Divider */
.ayyesfo-divider-title{font-size:18px;font-weight:600;color:#1f2937;margin:0 0 4px}
.ayyesfo-divider-desc{color:#6b7280;font-size:13px;margin:0 0 8px}
.ayyesfo-divider-rule{border:0;border-top:1px solid #e5e7eb}

/* Multi-step */
.ayyesfo-steps{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:24px}
.ayyesfo-steps.ayyesfo-steps-none{display:none}
.ayyesfo-steps.ayyesfo-steps-circles .ayyesfo-step-label,.ayyesfo-steps.ayyesfo-steps-circles .ayyesfo-step-connector{display:none}
.ayyesfo-steps.ayyesfo-steps-progress{display:grid;grid-template-columns:1fr auto;gap:10px}
.ayyesfo-step-progress-track{height:8px;overflow:hidden;border-radius:999px;background:#e5e7eb}
.ayyesfo-step-progress-value{display:block;width:0;height:100%;border-radius:inherit;background:#3399ff;transition:width .2s ease}
.ayyesfo-step-progress-copy{color:#64748b;font-size:12px;font-weight:700;white-space:nowrap}
.ayyesfo-step{display:flex;align-items:center;gap:8px;color:#9ca3af;font-size:13px}
.ayyesfo-step-dot{width:28px;height:28px;border-radius:50%;background:#e5e7eb;color:#6b7280;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:12px}
.ayyesfo-step.active .ayyesfo-step-dot{background:#3399ff;color:#fff}
.ayyesfo-step.has-error .ayyesfo-step-dot{background:#dc2626;color:#fff;box-shadow:0 0 0 3px rgba(220,38,38,.14)}
.ayyesfo-step.done .ayyesfo-step-dot{background:#10b981;color:#fff}
.ayyesfo-step-connector{flex:1;max-width:48px;height:2px;background:#e5e7eb}
.ayyesfo-step.done + .ayyesfo-step .ayyesfo-step-connector{background:#10b981}
.ayyesfo-step-page{display:none}
.ayyesfo-step-page.active{display:block;animation:ayyesfoFade .25s ease-out}
@keyframes ayyesfoFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.ayyesfo-step-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
.ayyesfo-step-nav .ayyesfo-form-actions{margin:0 0 0 auto}

/* Submit */
.ayyesfo-form-actions{display:flex;justify-content:flex-start;margin-top:14px}
.ayyesfo-submit{background:var(--ayyesfo-button-bg,#3399ff);color:var(--ayyesfo-button-text,#fff);border:0;padding:12px 24px;border-radius:4px;font-size:15px;font-weight:600;cursor:pointer;transition:filter .15s}
.ayyesfo-submit:hover,.ayyesfo-submit:focus{filter:brightness(.9);color:var(--ayyesfo-button-text,#fff)}
.ayyesfo-submit:disabled{opacity:.65;cursor:not-allowed}
.ayyesfo-prev-btn{background:#fff;color:#374151;border:1px solid #d1d5db;padding:10px 18px;border-radius:6px;font-size:14px;cursor:pointer}
.ayyesfo-next-btn{margin-left:auto;background:var(--ayyesfo-button-bg,#3399ff);color:var(--ayyesfo-button-text,#fff);border:0;padding:10px 18px;border-radius:var(--ayyesfo-button-radius,6px);font-size:14px;font-weight:600;cursor:pointer}

/* Messages */
.ayyesfo-form-messages{margin:0 0 16px;scroll-margin-top:90px}
.ayyesfo-form-messages:empty{display:none}
.ayyesfo-error-summary{font-weight:600}
.ayyesfo-notice{padding:10px 14px;border-radius:8px;font-size:14px;margin-bottom:10px}
.ayyesfo-notice-success{background:#dcfce7;color:#166534;border:1px solid #86efac}
.ayyesfo-notice-error{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}
.ayyesfo-notice-info{background:#dbeafe;color:#1e40af;border:1px solid #93c5fd}
.ayyesfo-field-error{color:#dc2626;font-size:13px;margin-top:4px}
.ayyesfo-captcha{max-width:100%;margin:var(--ayyesfo-field-spacing,18px) 0;padding:14px;border:1px solid var(--ayyesfo-input-border,#d1d5db);border-radius:var(--ayyesfo-input-radius,8px);background:#fff;color:#172033;box-sizing:border-box}
.ayyesfo-captcha-google{overflow-x:auto}
.ayyesfo-captcha-api-status{min-height:20px;color:#64748b;font-size:13px}
.ayyesfo-captcha-api-status:empty{display:none}
.ayyesfo-captcha-loading{display:block;padding:8px 0}
.ayyesfo-captcha-load-error{display:flex;padding:8px 0;gap:10px;align-items:center;flex-wrap:wrap;color:#b91c1c;font-size:13px;font-weight:600}
.ayyesfo-captcha-retry{padding:5px 10px;border:1px solid #b91c1c;border-radius:6px;background:#fff;color:#991b1b;font:inherit;font-weight:700;cursor:pointer}
.ayyesfo-captcha-retry:hover,.ayyesfo-captcha-retry:focus{background:#fff1f2;outline:2px solid rgba(185,28,28,.18)}
.ayyesfo-captcha-invisible{display:none;padding:0;border:0;margin:0}
.ayyesfo-captcha-label{margin-bottom:9px;font-size:var(--ayyesfo-label-size,14px);font-weight:700;color:#172033}
.ayyesfo-captcha-label span{color:#dc2626}
.ayyesfo-captcha-challenge{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.ayyesfo-captcha-image{display:block;max-width:100%;height:auto;border:1px solid #dbe3ee;border-radius:8px;background:#f1f5f9}
.ayyesfo-captcha-question{display:inline-flex;min-height:48px;padding:0 18px;align-items:center;border:1px solid #dbe3ee;border-radius:8px;background:#f1f5f9;color:#102a43;font-size:22px;font-weight:800;letter-spacing:.04em}
.ayyesfo-captcha-refresh{min-height:36px;padding:7px 12px;border:1px solid #aab8ca;border-radius:7px;background:#fff;color:#24415f;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.ayyesfo-captcha-refresh:hover,.ayyesfo-captcha-refresh:focus{border-color:var(--ayyesfo-button-bg,#3399ff);color:var(--ayyesfo-button-bg,#1769ff);outline:2px solid transparent}
.ayyesfo-captcha-answer-label{display:block;max-width:320px;margin-top:10px;color:#172033;font-size:13px;font-weight:600}
.ayyesfo-captcha-answer-label span{display:block;margin-bottom:5px}
.ayyesfo-captcha-answer{width:100%;min-height:42px;box-sizing:border-box}
.ayyesfo-captcha-combined{display:block;padding:0;border:0;border-radius:0;background:transparent}
.ayyesfo-captcha-combined-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.ayyesfo-captcha-combined .ayyesfo-captcha-label{margin:0;color:var(--ayyesfo-label-color,#111827);font-size:var(--ayyesfo-label-size,14px);font-weight:600}
.ayyesfo-captcha-combined-head .ayyesfo-captcha-refresh{flex:0 0 auto;min-height:32px;padding:5px 11px}
.ayyesfo-captcha-combined-stage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;min-height:138px;padding:16px 28px;align-items:center;border:1px dashed #bfd3e8;border-radius:14px;background:#f8fafc}
.ayyesfo-captcha-combined-stage .ayyesfo-captcha-challenge{justify-content:center;min-width:0}
.ayyesfo-captcha-combined-stage .ayyesfo-captcha-question{min-height:70px;padding:0;border:0;background:transparent;font-size:30px;font-weight:700;letter-spacing:.08em}
.ayyesfo-captcha-combined-stage .ayyesfo-captcha-image{width:260px;max-width:100%;border:0;border-radius:0}
.ayyesfo-captcha-combined-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.ayyesfo-captcha-combined-answers .ayyesfo-captcha-answer-label{width:100%;max-width:none;margin:0;color:#172033;font-size:16px;font-weight:600}
.ayyesfo-captcha-combined-answers .ayyesfo-captcha-answer-label span{margin-bottom:9px}
.ayyesfo-captcha-combined-answers .ayyesfo-captcha-answer{min-height:60px;padding:10px 12px;border:1px solid var(--ayyesfo-input-border,#d1d5db);border-radius:12px;background:var(--ayyesfo-field-bg,#fff);color:var(--ayyesfo-field-text,#111827);font:inherit}
.ayyesfo-captcha-combined-answers .ayyesfo-captcha-answer:focus{outline:none;border-color:var(--ayyesfo-brand-accent,var(--ayyesfo-button-bg,#3399ff));box-shadow:0 0 0 3px rgba(51,153,255,.15)}
.ayyesfo-captcha-combined.has-error .ayyesfo-captcha-combined-stage,.ayyesfo-captcha-combined.has-error .ayyesfo-captcha-answer{border-color:#dc2626}
.ayyesfo-captcha-part{padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}
.ayyesfo-captcha.has-error{border-color:#dc2626;box-shadow:0 0 0 2px rgba(220,38,38,.1)}
.ayyesfo-captcha-combined.has-error{box-shadow:none}
.ayyesfo-form.ayyesfo-is-complete .ayyesfo-fields-container,.ayyesfo-form.ayyesfo-is-complete .ayyesfo-captcha,.ayyesfo-form.ayyesfo-is-complete .ayyesfo-form-actions{display:none!important}
@media(max-width:520px){.ayyesfo-captcha-combined-stage,.ayyesfo-captcha-combined-answers{grid-template-columns:1fr}.ayyesfo-captcha-combined-stage{gap:12px;padding:14px}.ayyesfo-captcha-combined-stage .ayyesfo-captcha-question{min-height:58px;font-size:25px}}
@media(max-width:380px){.ayyesfo-captcha:not(.ayyesfo-captcha-combined){padding:10px}.ayyesfo-captcha-question{font-size:18px}.ayyesfo-captcha:not(.ayyesfo-captcha-combined) .ayyesfo-captcha-refresh{width:100%}}
.ayyesfo-field.has-error input,.ayyesfo-field.has-error textarea,.ayyesfo-field.has-error select{border-color:#dc2626}

/* label/description positions */
.ayyesfo-form.ayyesfo-label-hidden .ayyesfo-field-label{display:none!important}
.ayyesfo-form.ayyesfo-desc-above .ayyesfo-field:not(.ayyesfo-field-hidden){display:flex;flex-direction:column}
.ayyesfo-form.ayyesfo-desc-above .ayyesfo-field-label{order:1}
.ayyesfo-form.ayyesfo-desc-above .ayyesfo-field-description{order:2;margin:0 0 6px}
.ayyesfo-form.ayyesfo-desc-above .ayyesfo-field>:not(.ayyesfo-field-label):not(.ayyesfo-field-description){order:3}
.ayyesfo-form.ayyesfo-desc-above .ayyesfo-field-rating .ayyesfo-rating{align-self:flex-start}
.ayyesfo-form.ayyesfo-label-left .ayyesfo-field:not(.ayyesfo-field-hidden){
  display:grid;grid-template-columns:minmax(120px,200px) minmax(0,1fr);gap:6px 14px;align-items:start
}
.ayyesfo-form.ayyesfo-label-left .ayyesfo-field>.ayyesfo-field-label{grid-column:1;grid-row:1;margin:10px 0 0}
.ayyesfo-form.ayyesfo-label-left .ayyesfo-field>:not(.ayyesfo-field-label):not(.ayyesfo-field-description){grid-column:2;grid-row:1}
.ayyesfo-form.ayyesfo-label-left .ayyesfo-field-rating>.ayyesfo-rating{width:max-content;max-width:100%;justify-self:start;align-self:start}
.ayyesfo-form.ayyesfo-label-left .ayyesfo-field>.ayyesfo-field-description{grid-column:2;grid-row:2;margin-top:0}
.ayyesfo-form.ayyesfo-label-left.ayyesfo-desc-above .ayyesfo-field>.ayyesfo-field-description{grid-column:2;grid-row:1;margin:0 0 6px}
.ayyesfo-form.ayyesfo-label-left.ayyesfo-desc-above .ayyesfo-field>:not(.ayyesfo-field-label):not(.ayyesfo-field-description){grid-column:2;grid-row:2}
@media (max-width:640px){
  .ayyesfo-form.ayyesfo-label-left .ayyesfo-field:not(.ayyesfo-field-hidden){display:flex;flex-direction:column;gap:0}
  .ayyesfo-form.ayyesfo-label-left .ayyesfo-field>.ayyesfo-field-label{margin:0 0 6px}
  .ayyesfo-choice-list.ayyesfo-choice-layout-three{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:420px){
  .ayyesfo-choice-list.ayyesfo-choice-layout-two,.ayyesfo-choice-list.ayyesfo-choice-layout-three{grid-template-columns:1fr}
}
/* hidden / conditional */
.ayyesfo-hidden-cond{display:none!important}


/* ---------- UI theme: Minimal ---------- */
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-field input[type=text],
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-field input[type=email],
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-field input[type=url],
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-field input[type=tel],
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-field input[type=number],
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-field input[type=date],
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-field input[type=time],
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-field textarea,
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-field select{
  border:0;border-bottom:2px solid var(--ayyesfo-input-border,#d1d5db);border-radius:0;background:transparent;padding-left:2px;padding-right:2px;
}
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-field input:focus,
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-field textarea:focus,
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-field select:focus{box-shadow:none;border-bottom-color:var(--ayyesfo-button-bg,#3399ff)}
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-field-label{font-weight:500;text-transform:uppercase;font-size:12px;letter-spacing:.05em;color:#6b7280}
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-submit{border-radius:4px;box-shadow:none}
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-gdpr-label{background:transparent;border:0;padding:0}
.ayyesfo-form.ayyesfo-theme-minimal .ayyesfo-file-drop{background:transparent}


/* ================= Per-form design studio ================= */
.ayyesfo-form{background:var(--ayyesfo-form-bg,transparent);padding:var(--ayyesfo-form-padding,0);border-radius:var(--ayyesfo-form-radius,0);font-size:var(--ayyesfo-font-size,15px);font-family:var(--ayyesfo-font-family,inherit)}
.ayyesfo-form.ayyesfo-form-shadow{box-shadow:0 10px 40px rgba(10,18,32,.12)}
.ayyesfo-form .ayyesfo-field-label{color:var(--ayyesfo-label-color,#111827);font-size:var(--ayyesfo-label-size,14px)}
.ayyesfo-form .ayyesfo-field input[type=text],.ayyesfo-form .ayyesfo-field input[type=email],.ayyesfo-form .ayyesfo-field input[type=url],.ayyesfo-form .ayyesfo-field input[type=tel],.ayyesfo-form .ayyesfo-field input[type=number],.ayyesfo-form .ayyesfo-field input[type=date],.ayyesfo-form .ayyesfo-field input[type=time],.ayyesfo-form .ayyesfo-field textarea,.ayyesfo-form .ayyesfo-field select{background:var(--ayyesfo-field-bg,#fff);color:var(--ayyesfo-field-text,#111827)}
.ayyesfo-form .ayyesfo-submit{border-radius:var(--ayyesfo-button-radius,4px)}
.ayyesfo-form.ayyesfo-btn-full .ayyesfo-submit{width:100%;display:block}

/* Per-form Submit alignment and responsive width controls. */
.ayyesfo-form .ayyesfo-form-actions{width:100%}
.ayyesfo-form.ayyesfo-btn-align-left .ayyesfo-form-actions{justify-content:flex-start}
.ayyesfo-form.ayyesfo-btn-align-center .ayyesfo-form-actions{justify-content:center}
.ayyesfo-form.ayyesfo-btn-align-right .ayyesfo-form-actions{justify-content:flex-end}
.ayyesfo-form .ayyesfo-submit{width:var(--ayyesfo-button-width,auto);max-width:100%;min-width:max-content}
.ayyesfo-form.ayyesfo-btn-full .ayyesfo-submit{width:100%;min-width:0}
.ayyesfo-form .ayyesfo-step-nav .ayyesfo-form-actions{flex:1;width:auto;margin:0}

/* Keep all content readable when a dark preset (including Midnight) is used. */
.ayyesfo-form{color:var(--ayyesfo-field-text,#111827)}
.ayyesfo-form-title,.ayyesfo-payment-display,.ayyesfo-divider-title{color:var(--ayyesfo-label-color,var(--ayyesfo-field-text,#111827))}
.ayyesfo-form-description,.ayyesfo-field-description,.ayyesfo-field-row small,.ayyesfo-divider-desc,
.ayyesfo-file-drop-text,.ayyesfo-file-drop-icon,.ayyesfo-file-list li,.ayyesfo-cc-notice,
.ayyesfo-total-display .ayyesfo-total-currency{color:var(--ayyesfo-label-color,var(--ayyesfo-field-text,#6b7280));opacity:.78}
.ayyesfo-choice-list label,.ayyesfo-gdpr-label,.ayyesfo-cc-row label{color:var(--ayyesfo-field-text,#374151)}
.ayyesfo-form .ayyesfo-field input::placeholder,.ayyesfo-form .ayyesfo-field textarea::placeholder{color:var(--ayyesfo-field-text,#6b7280);opacity:.62}
.ayyesfo-form .ayyesfo-field input:focus,.ayyesfo-form .ayyesfo-field textarea:focus,.ayyesfo-form .ayyesfo-field select:focus{border-color:var(--ayyesfo-brand-accent,var(--ayyesfo-button-bg,#3399ff));box-shadow:0 0 0 3px rgba(51,153,255,.15)}
.ayyesfo-file-drop,.ayyesfo-sig-canvas,.ayyesfo-gdpr-label,.ayyesfo-cc-card,.ayyesfo-cc-input,.ayyesfo-input-prefix{background:var(--ayyesfo-field-bg,#fff);border-color:var(--ayyesfo-input-border,#d1d5db)}
.ayyesfo-divider-rule{border-top-color:var(--ayyesfo-input-border,#e5e7eb)}
.ayyesfo-prev-btn{background:var(--ayyesfo-field-bg,#fff);color:var(--ayyesfo-field-text,#374151);border-color:var(--ayyesfo-input-border,#d1d5db)}
.ayyesfo-slider-wrap input[type=range]{accent-color:var(--ayyesfo-brand-accent,var(--ayyesfo-button-bg,#3399ff))}
.ayyesfo-slider-output,.ayyesfo-total-display{color:var(--ayyesfo-brand-accent,var(--ayyesfo-button-bg,#3399ff))}
.ayyesfo-form.ayyesfo-is-multi-step .ayyesfo-step-nav .ayyesfo-form-actions{justify-content:flex-end!important}

/* Optional AYYES branding footer. The QR payload is the current form page;
   the QR image itself remains a link to ayyes.com. */
.ayyesfo-branding-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;box-sizing:border-box;margin-top:16px;padding-top:14px;border-top:1px solid var(--ayyesfo-input-border,#e5e7eb)}
.ayyesfo-branding-logo-link,.ayyesfo-branding-qr-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;line-height:0}
.ayyesfo-branding-logo{display:block;width:100px!important;max-width:100%;height:auto!important}
.ayyesfo-branding-qr-link{padding:4px;background:#fff;border-radius:6px;transition:box-shadow .15s ease,transform .15s ease}
.ayyesfo-branding-qr-link:hover,.ayyesfo-branding-qr-link:focus{transform:translateY(-1px);box-shadow:0 0 0 3px rgba(51,153,255,.18);outline:none}
.ayyesfo-branding-qr,.ayyesfo-branding-qr img{display:block;width:72px;height:72px}
.ayyesfo-branding-qr img{max-width:none!important;image-rendering:pixelated}
.ayyesfo-branding-qr-fallback{display:flex;align-items:center;justify-content:center;width:72px;height:72px;color:#475569;background:#fff;border:1px solid #e2e8f0;font:700 12px/1 sans-serif}
.ayyesfo-branding-qr-error .ayyesfo-branding-qr-fallback{display:flex}
.ayyesfo-branding-qr-link.ayyesfo-branding-qr-pending{line-height:1;max-width:190px;padding:10px 12px;border:1px dashed var(--ayyesfo-input-border,#cbd5e1);background:var(--ayyesfo-field-bg,#fff)}
.ayyesfo-branding-qr-pending .ayyesfo-branding-qr{width:auto;height:auto}
.ayyesfo-branding-qr-pending-message{display:block;color:var(--ayyesfo-label-color,#64748b);font:600 11px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:center}

@media (max-width:420px){
  .ayyesfo-branding-footer{gap:12px}
  .ayyesfo-branding-qr,.ayyesfo-branding-qr img,.ayyesfo-branding-qr-fallback{width:64px;height:64px}
}
