/* AFW Forms - admin and public components scoped to form module. */
.htsmp-forms-admin{padding:22px!important}
.htsmp-forms-admin>h2{margin:0 0 8px;color:#0b284a}
.htsmp-forms-admin>p{margin:8px 0 18px;line-height:1.6}
.htsmp-form-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.htsmp-form-editor-grid label,.htsmp-form-wide-label{display:flex;flex-direction:column;gap:6px;font-weight:600;color:#0b284a}
.htsmp-form-editor-grid input,.htsmp-form-editor-grid select,.htsmp-form-editor-grid textarea,.htsmp-form-wide-label input{width:100%;max-width:100%;min-height:40px;border:1px solid #c9d6e5;border-radius:5px;padding:8px 10px;background:#fff}
.htsmp-form-wide-label{margin-top:15px}
.htsmp-builder-field{background:#f3f7fb;border:1px solid #d2deeb;border-radius:8px;padding:15px;margin:12px 0;display:flex;flex-direction:column;gap:12px}
.htsmp-builder-field>label{display:flex;align-items:center;gap:7px}
.htsmp-form-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.htsmp-form-actions form,.htsmp-form-table-wrap form{display:inline-block;margin:0}
.htsmp-form-actions .button{min-height:32px;white-space:nowrap}
.htsmp-form-danger{border-color:#b32d2e!important;color:#b32d2e!important;background:#fff!important}
.htsmp-form-danger:hover{color:#fff!important;background:#b32d2e!important}
.htsmp-form-table-wrap{overflow:auto;max-width:100%;margin-top:16px;border:1px solid #d4dfeb;border-radius:6px}
.htsmp-form-response-wrap{max-height:520px;overflow:auto}
.htsmp-form-table-wrap table{border:0;min-width:760px;width:100%;border-collapse:collapse}
.htsmp-form-table-wrap thead th{position:sticky;top:0;z-index:1;background:#0b284a;color:white;border-bottom:3px solid #aa8437;padding:12px}
.htsmp-form-table-wrap td{padding:10px 12px;vertical-align:middle}
.htsmp-form-import{padding:14px;background:#f6f9fc;border:1px solid #d9e3ee;border-radius:7px;margin:16px 0}
.htsmp-form-import h3{margin:0 0 8px}
.htsmp-form-import input{margin-right:10px}
.htsmp-public-form{max-width:850px;margin:24px auto;padding:24px;background:#fff;border:1px solid #d4e1ee;border-radius:12px;color:#0b284a}
.htsmp-public-form h2{margin:0 0 20px;font-size:26px}
.htsmp-public-form form{display:flex;flex-direction:column;gap:16px}
.htsmp-form-public-field{display:flex;flex-direction:column;gap:6px;font-weight:600}
.htsmp-form-public-field input:not([type=checkbox]),.htsmp-form-public-field select,.htsmp-form-public-field textarea{width:100%;border:1px solid #c9d6e5;border-radius:5px;padding:12px;font-size:16px;color:#0b284a;min-height:44px;background:white}
.htsmp-public-form button[type=submit]{align-self:flex-start;background:#0b284a;color:#fff;border:0;border-radius:5px;padding:12px 22px;cursor:pointer;font-size:15px}
.htsmp-public-form button[type=submit]:hover{background:#164570}
.htsmp-form-feedback{border:1px solid #bfd8c4;background:#eef8ef;padding:12px;border-radius:5px}
.htsmp-form-honeypot{position:absolute!important;left:-9999px!important;opacity:0!important;height:1px;overflow:hidden}
@media(max-width:720px){.htsmp-form-editor-grid{grid-template-columns:1fr}.htsmp-forms-admin{padding:14px!important}.htsmp-public-form{padding:16px;margin:15px 0}}

/* v0.1.130: form stepper and compact page controls. */
.htsmp-form-step{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:16px}
.htsmp-form-step[hidden]{display:none!important}
.htsmp-form-step legend{font-size:20px;font-weight:700;color:#0b284a;margin:0 0 15px;padding:0}
.htsmp-step-status{display:grid;gap:7px;color:#0b284a}
.htsmp-step-caption{font-size:13px;font-weight:600}
.htsmp-step-progress{height:10px;background:#dce6f0;border-radius:100px;overflow:hidden}
.htsmp-step-progress>span{display:block;height:100%;background:#0b284a;transition:width .2s ease}
.htsmp-page-controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.htsmp-page-controls button{background:#0b284a;color:#fff;border:0;border-radius:5px;padding:11px 22px;cursor:pointer;min-height:42px}
.htsmp-page-controls button[hidden]{display:none!important}
.htsmp-page-controls .htsmp-page-prev{background:#eaf0f6;color:#0b284a;border:1px solid #b8cadf}
.htsmp-page-titles{width:100%;min-height:105px;border:1px solid #c9d6e5;border-radius:6px;padding:10px;box-sizing:border-box}


/* v0.1.131: readable form dimensions in homepage registration and shortcode forms. */
.htsmp-public-form{width:100%;max-width:980px;box-sizing:border-box}
.htsmp-public-form .htsmp-paged-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px;max-width:980px;width:100%;margin:0 auto;align-items:start}
.htsmp-public-form .htsmp-form-step{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px;width:100%;box-sizing:border-box;align-items:start}
.htsmp-public-form .htsmp-form-public-field{display:flex;flex-direction:column;min-width:0;max-width:none;gap:7px;margin:0;font-weight:600;box-sizing:border-box}
.htsmp-public-form .htsmp-form-public-field input:not([type=checkbox]),
.htsmp-public-form .htsmp-form-public-field select,
.htsmp-public-form .htsmp-form-public-field textarea{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin:0;min-height:44px}
.htsmp-public-form .htsmp-form-field-textarea{grid-column:1 / -1}
.htsmp-public-form .htsmp-form-field-textarea textarea{min-height:140px;resize:vertical}
.htsmp-public-form .htsmp-form-field-checkbox input{width:18px;height:18px;min-height:0;align-self:flex-start}
.htsmp-public-form .htsmp-step-status,.htsmp-public-form .htsmp-page-controls,.htsmp-public-form .htsmp-form-feedback{grid-column:1 / -1;width:100%;min-width:0;box-sizing:border-box}
.htsmp-public-form .htsmp-paged-form > button[type=submit]{grid-column:1 / -1;justify-self:start}
@media(max-width:720px){
 .htsmp-public-form .htsmp-paged-form,.htsmp-public-form .htsmp-form-step{grid-template-columns:minmax(0,1fr);gap:14px}
 .htsmp-public-form .htsmp-form-field-textarea{grid-column:1}
 .htsmp-public-form .htsmp-page-controls{flex-wrap:wrap}
}

/* Full-width acknowledgment rows, with the checkbox aligned to the first line. */
.htsmp-public-form .htsmp-form-step > .htsmp-form-field-checkbox,
.htsmp-public-form .htsmp-paged-form > .htsmp-form-field-checkbox{grid-column:1/-1;}
.htsmp-public-form .htsmp-form-public-field.htsmp-form-field-checkbox{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:10px;min-height:28px;line-height:1.5;text-align:left;cursor:pointer;}
.htsmp-public-form .htsmp-form-field-checkbox span{grid-column:2;grid-row:1;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5;}
.htsmp-public-form .htsmp-form-field-checkbox input[type=checkbox]{grid-column:1;grid-row:1;width:18px;height:18px;min-height:0;margin:3px 0 0;align-self:start;justify-self:start;accent-color:var(--primary,#073d2c);}


.htsmp-public-form{color:var(--primary,#073d2c);background:#fffdf7;border-color:#ded5bd}.htsmp-public-form .htsmp-form-public-field input:not([type=checkbox]),.htsmp-public-form .htsmp-form-public-field select,.htsmp-public-form .htsmp-form-public-field textarea{color:var(--primary,#073d2c);border-color:#c9c5b7}.htsmp-public-form .htsmp-form-step legend,.htsmp-public-form .htsmp-step-status{color:var(--primary,#073d2c)}.htsmp-public-form .htsmp-step-progress>span{background:var(--primary,#073d2c)}.htsmp-public-form button[type=submit],.htsmp-public-form .htsmp-page-controls button{background:var(--primary,#073d2c)!important;color:#fff!important;border:1px solid var(--primary,#073d2c)!important}.htsmp-public-form button:hover,.htsmp-public-form button:focus-visible{filter:brightness(1.12)}.htsmp-public-form .htsmp-form-price-summary{grid-column:1/-1;display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 16px;border-top:1px solid #ded5bd;padding:14px 0}.htsmp-form-price-summary output{font-size:22px;font-weight:700}.htsmp-form-price-summary small{flex-basis:100%}.htsmp-public-form .htsmp-field-invalid input,.htsmp-public-form .htsmp-field-invalid select,.htsmp-public-form .htsmp-field-invalid textarea{border-color:#b42318!important}.htsmp-wrap .htsmp-forms-admin :is(.button,.button-primary){background:var(--htsmp-button-bg)!important;color:var(--htsmp-button-text)!important;border-color:var(--htsmp-button-bg)!important;border-radius:4px;padding:7px 14px;height:auto;min-height:36px;line-height:1.5}.htsmp-wrap .htsmp-forms-admin .htsmp-form-danger{background:#fff!important;color:#b32d2e!important;border-color:#b32d2e!important}.htsmp-wrap .htsmp-forms-admin .htsmp-form-editor-grid label,.htsmp-wrap .htsmp-forms-admin .htsmp-form-wide-label,.htsmp-wrap .htsmp-forms-admin>h2{color:var(--htsmp-panel-text)}.htsmp-wrap .htsmp-form-table-wrap thead th{background:var(--htsmp-button-bg);color:var(--htsmp-button-text);border-bottom-color:var(--htsmp-accent)}
/* Reusable agreement builder and full-width public acceptance section. */
.htsmp-forms-admin .htsmp-eula-editor,.htsmp-forms-admin select[name=eula_id]{width:100%;max-width:100%;box-sizing:border-box;border:1px solid #c9d6e5;border-radius:5px;padding:10px;background:#fff;color:#0b284a}
.htsmp-eula-section{grid-column:1/-1;min-width:0;max-width:100%;box-sizing:border-box;border:1px solid #ded5bd;border-radius:6px;background:#fff;padding:16px;margin:8px 0;color:inherit}
.htsmp-eula-section h3{margin:0 0 12px;font-size:1.15em;color:inherit}
.htsmp-eula-scroll{box-sizing:border-box;max-height:240px;overflow-y:auto;overflow-x:hidden;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;text-align:left;border:1px solid #c9c5b7;border-radius:4px;background:#fffdf7;color:#24332b;padding:14px;font-weight:400;font-size:14px}
.htsmp-eula-scroll:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.htsmp-public-form .htsmp-eula-check,.htsmp-eula-section .htsmp-eula-check{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:flex-start!important;gap:10px!important;margin:14px 0 0!important;font-weight:600;line-height:1.5}
.htsmp-public-form .htsmp-eula-check input[type=checkbox],.htsmp-eula-section .htsmp-eula-check input[type=checkbox]{width:18px!important;height:18px!important;min-height:0!important;flex:0 0 18px!important;margin:3px 0 0!important;accent-color:var(--primary,#073d2c)}
.htsmp-form-response-wrap .htsmp-eula-scroll{min-width:220px;max-width:480px}

/* Vendor application repeatable private CRM records. */
.htsmp-public-form .htsmp-crm-repeat{grid-column:1/-1;min-width:0;border:1px solid #ded5bd;border-radius:8px;padding:16px;display:grid;gap:12px}
.htsmp-public-form .htsmp-crm-repeat p{margin:0;line-height:1.5;font-size:14px}
.htsmp-public-form .htsmp-crm-repeat-rows{display:grid;gap:15px}
.htsmp-public-form .htsmp-crm-repeat-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid #ded5bd;border-radius:6px;padding:15px;margin:0;min-width:0}
.htsmp-public-form .htsmp-crm-repeat-row legend{font-size:16px;margin:0;padding:0 6px}
.htsmp-public-form .htsmp-crm-repeat button{justify-self:start;background:var(--primary,#073d2c)!important;color:#fff!important;border:1px solid var(--primary,#073d2c)!important;border-radius:5px;padding:10px 15px;cursor:pointer}
.htsmp-public-form .htsmp-crm-repeat button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:720px){.htsmp-public-form .htsmp-crm-repeat-row{grid-template-columns:minmax(0,1fr)}}

/* Shared public challenge, also used by newsletter signup and vendor contacts. */
.htsmp-turnstile,.htsmp-turnstile-unavailable,.htsmp-turnstile-preview{margin:14px 0;min-width:0;max-width:100%}
.htsmp-turnstile-widget{max-width:100%;min-width:0}
.htsmp-turnstile-status{font-size:.875em;margin:6px 0 0;line-height:1.45}
.htsmp-turnstile-retry{margin-top:8px}
.htsmp-turnstile-retry[hidden]{display:none!important}
.htsmp-turnstile-unavailable{border:1px solid currentColor;padding:10px;border-radius:4px;font-size:.9em}
