.rudforms{width:100%;max-width:100%;font:inherit}.rudforms-grid{display:flex;flex-wrap:wrap;gap:var(--rf-gap)}.rudforms-field{box-sizing:border-box;flex:0 0 100%}.rudforms-field label{display:block;margin:0 0 7px;font-weight:600}.rudforms input:not([type=checkbox]):not([type=radio]),.rudforms select,.rudforms textarea{box-sizing:border-box;width:100%;min-height:var(--rf-height);padding:10px 13px;border:1px solid var(--rf-border);border-radius:var(--rf-radius);background:var(--rf-field-bg,#fff);color:inherit;font:inherit;outline:none;transition:.18s}.rudforms textarea{min-height:120px;resize:vertical}.rudforms input:focus,.rudforms select:focus,.rudforms textarea:focus{border-color:var(--rf-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--rf-accent) 16%,transparent)}.rudforms-submit{margin-top:var(--rf-gap);min-height:46px;padding:10px 24px;border:1px solid var(--rf-accent);border-radius:var(--rf-radius);background:var(--rf-accent);color:#fff;font:inherit;font-weight:600;cursor:pointer}.rudforms-submit:hover{filter:brightness(.9)}.rudforms .required{color:#b32d2e}.rf-choice{font-weight:400!important;margin:7px 0!important}.rudforms-hp{position:absolute!important;left:-99999px!important;width:1px;height:1px;overflow:hidden}.rudforms-success{padding:14px 16px;margin-bottom:18px;border:1px solid #b8d9bd;border-radius:8px;background:#f0faf2}.rf-w-25{flex-basis:calc(25% - var(--rf-gap))}.rf-w-33{flex-basis:calc(33.333% - var(--rf-gap))}.rf-w-50{flex-basis:calc(50% - var(--rf-gap)/2)}.rf-w-66{flex-basis:calc(66.666% - var(--rf-gap))}.rf-w-75{flex-basis:calc(75% - var(--rf-gap))}@media(max-width:767px){.rudforms-field{flex-basis:100%!important}}



/* v0.2.1 frontend display modes */
.rudforms.rf-style-outline input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.rudforms.rf-style-outline textarea,
.rudforms.rf-style-outline select{
 border:1px solid var(--rf-border);
 border-radius:var(--rf-radius);
 background:var(--rf-field-bg,#fff);
 box-shadow:none;
}
.rudforms.rf-style-underline input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),
.rudforms.rf-style-underline textarea,
.rudforms.rf-style-underline select{
 border:0 !important;
 border-bottom:1px solid var(--rf-border) !important;
 border-radius:0 !important;
 background:transparent !important;
 box-shadow:none !important;
 padding-left:10px;
 padding-right:10px;
}
.rudforms.rf-style-underline input:not([type=checkbox]):not([type=radio]):focus,
.rudforms.rf-style-underline textarea:focus,
.rudforms.rf-style-underline select:focus{
 border-bottom:2px solid var(--rf-accent) !important;
 outline:0;
 box-shadow:none !important;
}
.rudforms.rf-style-underline input[type=file]{
 border:0;
 border-bottom:1px solid var(--rf-border);
 border-radius:0;
 background:transparent;
}

/* v0.2.2 phone field alignment */
.rudforms .rf-phone{
 display:grid;
 grid-template-columns:118px minmax(0,1fr);
 gap:10px;
 align-items:stretch;
 width:100%;
}
.rudforms .rf-phone .rf-phone-country,
.rudforms .rf-phone .rf-phone-number{
 box-sizing:border-box;
 width:100%;
 height:var(--rf-height);
 min-height:var(--rf-height);
 margin:0;
 line-height:1.2;
 vertical-align:middle;
}
.rudforms .rf-phone .rf-phone-country{
 min-width:0;
 padding-top:0;
 padding-bottom:0;
 padding-left:10px;
 padding-right:26px;
 font-size:15px;
}
.rudforms .rf-phone .rf-phone-number{
 padding-top:0;
 padding-bottom:0;
}
.rudforms.rf-style-underline .rf-phone .rf-phone-country,
.rudforms.rf-style-underline .rf-phone .rf-phone-number{
 height:var(--rf-height);
 min-height:var(--rf-height);
}
@media(max-width:480px){
 .rudforms .rf-phone{grid-template-columns:108px minmax(0,1fr);gap:8px}
 .rudforms .rf-phone .rf-phone-country{font-size:14px;padding-left:6px;padding-right:20px}
}

/* v0.2.3 checkbox/radio layout */
.rudforms .rf-choices{display:flex;gap:10px 20px}
.rudforms .rf-choices-vertical{flex-direction:column;align-items:flex-start}
.rudforms .rf-choices-horizontal{flex-direction:row;flex-wrap:wrap;align-items:center}
.rudforms .rf-choices .rf-choice{display:inline-flex;align-items:center;gap:7px;margin:0}
.rudforms .rf-choices .rf-choice input{margin:0}

/* v0.2.5 dynamic upload information */
.rudforms .rf-upload-info{
 display:flex;
 flex-wrap:wrap;
 gap:4px 14px;
 margin-top:7px;
 font-size:12px;
 line-height:1.45;
 opacity:.72;
}
.rudforms .rf-upload-info span{display:inline-block}
@media(max-width:480px){
 .rudforms .rf-upload-info{display:block}
 .rudforms .rf-upload-info span{display:block;margin-top:2px}
}


/* ================================================================
   1.0.0 – new fields, steps, logic, inline errors, sending state
   ================================================================ */
.rudforms-wrap{position:relative}
.rudforms .rf-label{display:block;margin:0 0 7px;font-weight:600}
.rudforms-field[hidden]{display:none!important}
.rudforms .rf-help{margin-top:6px;font-size:13px;line-height:1.45;opacity:.68}
.rudforms .rf-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:var(--rf-gap)}
.rudforms .rf-actions .rudforms-submit{margin-top:0}
.rudforms.rf-btn-center .rf-actions{justify-content:center}
.rudforms.rf-btn-right .rf-actions{justify-content:flex-end}
.rudforms.rf-btn-full .rf-actions .rudforms-submit{flex:1 1 auto}
.rudforms.rf-multi .rf-actions{justify-content:space-between}
.rudforms.rf-multi .rf-actions .rudforms-submit,.rudforms.rf-multi .rf-actions .rf-next{margin-left:auto}
.rudforms .rf-prev{min-height:46px;padding:10px 20px;border:1px solid var(--rf-border);border-radius:var(--rf-radius);background:transparent;color:inherit;font:inherit;cursor:pointer;transition:.18s}
.rudforms .rf-prev:hover,.rudforms .rf-prev:focus{border-color:var(--rf-accent);color:inherit;background:transparent}
.rudforms .rudforms-submit:hover,.rudforms .rudforms-submit:focus{color:#fff;background:var(--rf-accent)}
.rudforms .rudforms-submit{position:relative;-webkit-tap-highlight-color:transparent}
.rudforms .rudforms-submit.is-loading{color:transparent!important;pointer-events:none}
.rudforms .rudforms-submit.is-loading::after{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:rf-spin .7s linear infinite}
@keyframes rf-spin{to{transform:rotate(360deg)}}

/* steps */
.rudforms.rf-js.rf-multi .rf-step:not(.is-active){display:none}
.rudforms.rf-js.rf-multi .rf-step.is-active{animation:rf-in .28s ease}
@keyframes rf-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.rudforms .rf-progress{margin:0 0 calc(var(--rf-gap) + 6px)}
.rudforms .rf-progress-steps-list{display:flex;gap:8px;margin:0 0 12px;padding:0;list-style:none}
.rudforms .rf-progress-steps-list li{flex:1 1 0;display:flex;align-items:center;gap:8px;min-width:0;margin:0;font-size:13px;opacity:.55;transition:opacity .2s}
.rudforms .rf-progress-steps-list li.is-active,.rudforms .rf-progress-steps-list li.is-done{opacity:1}
.rudforms .rf-dot{flex:0 0 26px;display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--rf-border);border-radius:50%;font-size:12px;font-weight:600;transition:.2s}
.rudforms li.is-active .rf-dot,.rudforms li.is-done .rf-dot{background:var(--rf-accent);border-color:var(--rf-accent);color:#fff}
.rudforms .rf-step-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:600}
.rudforms .rf-bar{height:4px;border-radius:4px;background:color-mix(in srgb,var(--rf-border) 55%,transparent);overflow:hidden}
.rudforms .rf-bar span{display:block;height:100%;border-radius:4px;background:var(--rf-accent);transition:width .35s ease}
.rudforms .rf-bar-label{display:flex;justify-content:space-between;margin-top:8px;font-size:13px;font-weight:600}
.rudforms .rf-bar-count{opacity:.6}
@media(max-width:560px){.rudforms .rf-progress-steps-list li:not(.is-active) .rf-step-name{display:none}.rudforms .rf-progress-steps-list li{flex:0 0 auto}.rudforms .rf-progress-steps-list li.is-active{flex:1 1 auto}}

/* errors */
.rudforms .rf-form-error{margin:0 0 var(--rf-gap);padding:12px 14px;border:1px solid #f1b8b8;border-radius:var(--rf-radius);background:#fff5f5;color:#9b1c1c;font-size:14px}
.rudforms .rf-error{margin-top:6px;color:#c42b2b;font-size:13px;line-height:1.4}
.rudforms .rf-invalid input:not([type=checkbox]):not([type=radio]):not([type=range]),.rudforms .rf-invalid select,.rudforms .rf-invalid textarea,.rudforms .rf-invalid .rf-file-ui{border-color:#d93c3c!important}
.rudforms-success{display:flex;gap:12px;align-items:flex-start}
.rudforms-success[hidden]{display:none}
.rudforms-success.is-in{animation:rf-in .35s ease}
.rf-success-icon{flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#2e9e5b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat}

/* section and text */
.rudforms .rf-section h3{margin:8px 0 2px;font-size:1.15em;line-height:1.3}
.rudforms .rf-section p{margin:4px 0 0;opacity:.7;font-size:14px}
.rudforms .rf-t-section{padding-bottom:4px;border-bottom:1px solid color-mix(in srgb,var(--rf-border) 70%,transparent)}

/* filled field style */
.rudforms.rf-style-filled input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),.rudforms.rf-style-filled select,.rudforms.rf-style-filled textarea{border:1px solid transparent;background:color-mix(in srgb,var(--rf-border) 28%,#fff)}
.rudforms.rf-style-filled input:focus,.rudforms.rf-style-filled select:focus,.rudforms.rf-style-filled textarea:focus{background:var(--rf-field-bg,#fff);border-color:var(--rf-accent)}

/* toggle */
.rudforms .rudforms-field label.rf-toggle{display:inline-flex;align-items:center;gap:10px;margin:0;font-weight:400;cursor:pointer}
.rudforms .rf-toggle input{position:absolute;opacity:0;width:1px;height:1px}
.rudforms .rf-switch{position:relative;flex:0 0 44px;width:44px;height:26px;border-radius:26px;background:color-mix(in srgb,var(--rf-border) 90%,#888);transition:background .2s}
.rudforms .rf-switch::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
.rudforms .rf-toggle input:checked+.rf-switch{background:var(--rf-accent)}
.rudforms .rf-toggle input:checked+.rf-switch::after{transform:translateX(18px)}
.rudforms .rf-toggle input:focus-visible+.rf-switch{outline:2px solid var(--rf-accent);outline-offset:2px}

/* rating */
.rudforms .rf-rating{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px}
.rudforms .rf-rating input{position:absolute;opacity:0;width:1px;height:1px}
.rudforms .rudforms-field .rf-rating label{display:block;margin:0;cursor:pointer;line-height:0}
.rudforms .rf-rating svg{width:30px;height:30px;fill:color-mix(in srgb,var(--rf-border) 85%,#fff);stroke:none;transition:fill .15s,transform .15s}
.rudforms .rf-rating label:hover svg{transform:scale(1.12)}
.rudforms .rf-rating input:checked~label svg,.rudforms .rf-rating label:hover svg,.rudforms .rf-rating label:hover~label svg{fill:#f5b400}
.rudforms .rf-rating input:focus-visible+label svg{outline:2px solid var(--rf-accent);outline-offset:2px;border-radius:4px}
.rudforms .rf-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* slider */
.rudforms .rf-range{display:flex;align-items:center;gap:14px}
.rudforms .rf-range input[type=range]{flex:1;min-height:0!important;height:6px;padding:0!important;border:0!important;border-radius:6px!important;background:linear-gradient(90deg,var(--rf-accent) var(--rf-pct,50%),color-mix(in srgb,var(--rf-border) 70%,#fff) var(--rf-pct,50%))!important;-webkit-appearance:none;appearance:none;box-shadow:none!important;cursor:pointer}
.rudforms .rf-range input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:#fff;border:2px solid var(--rf-accent);box-shadow:0 1px 4px rgba(0,0,0,.2)}
.rudforms .rf-range input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#fff;border:2px solid var(--rf-accent)}
.rudforms .rf-range output{min-width:84px;padding:6px 10px;border:1px solid var(--rf-border);border-radius:var(--rf-radius);text-align:center;font-weight:600;font-size:14px;white-space:nowrap}
.rudforms .rf-range-ends{display:flex;justify-content:space-between;margin-top:4px;max-width:calc(100% - 98px);font-size:12px;opacity:.55}

/* address */
.rudforms .rf-address{display:grid;grid-template-columns:1fr 2fr;gap:10px}
.rudforms .rf-address .rf-a-street,.rudforms .rf-address .rf-a-country{grid-column:1/-1}
@media(max-width:480px){.rudforms .rf-address{grid-template-columns:1fr}}

/* file upload box */
.rudforms .rudforms-field label.rf-file{position:relative;display:block;margin:0;font-weight:400;cursor:pointer}
.rudforms .rf-file input[type=file]{position:absolute!important;inset:0;width:100%!important;height:100%!important;min-height:0!important;opacity:0;cursor:pointer;z-index:2}
.rudforms .rf-file-ui{display:flex;align-items:center;gap:12px;min-height:calc(var(--rf-height) + 16px);padding:12px 16px;border:1px dashed var(--rf-border);border-radius:var(--rf-radius);background:var(--rf-field-bg,#fff);transition:.18s}
.rudforms .rf-file:hover .rf-file-ui,.rudforms .rf-file.is-over .rf-file-ui{border-color:var(--rf-accent);background:color-mix(in srgb,var(--rf-accent) 5%,var(--rf-field-bg,#fff))}
.rudforms .rf-file.has-file .rf-file-ui{border-style:solid}
.rudforms .rf-file-icon{flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:color-mix(in srgb,var(--rf-accent) 10%,transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12'/%3E%3C/svg%3E") center/16px no-repeat}
.rudforms .rf-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}

/* choices and consent */
.rudforms .rf-choices .rf-choice input,.rudforms .rf-consent input{accent-color:var(--rf-accent);width:18px;height:18px}
.rudforms .rf-consent{display:flex!important;align-items:flex-start;gap:9px}
.rudforms .rf-consent input{margin-top:2px!important;flex:0 0 18px}


/* ================================================================
   1.0.4 – phone country picker with real flags, blue step dots and buttons
   ================================================================ */
/* The country list is a normal (invisible) select on top of a face that shows the flag.
   Tapping opens the phone's / browser's own list, so it works everywhere – also on Windows, which has no flag emoji. */
.rudforms .rf-phone-cc{position:relative;min-width:0;height:var(--rf-height)}
.rudforms .rf-phone-cc .rf-phone-face{box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;height:100%;padding:0 12px;border:1px solid var(--rf-border);border-radius:var(--rf-radius);background:var(--rf-field-bg,#fff);color:inherit;font-size:15px;line-height:1;transition:.18s;pointer-events:none}
.rudforms .rf-phone-cc .rf-flag{flex:0 0 22px;width:22px;height:16px;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.rudforms .rf-phone-cc .rf-flag[hidden]{display:none}
.rudforms .rf-phone-cc .rf-cc-code{flex:1 1 auto;font-variant-numeric:tabular-nums;white-space:nowrap}
.rudforms .rf-phone-cc .rf-cc-chev{flex:0 0 12px;opacity:.6}
.rudforms .rf-phone .rf-phone-cc select.rf-phone-country{position:absolute;inset:0;width:100%!important;height:100%!important;min-height:0!important;margin:0;padding:0!important;border:0!important;opacity:0;cursor:pointer;-webkit-appearance:none;appearance:none;font-size:16px}
.rudforms .rf-phone-cc:focus-within .rf-phone-face{border-color:var(--rf-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--rf-accent) 16%,transparent)}
.rudforms.rf-style-underline .rf-phone-cc .rf-phone-face{border-width:0 0 1px;border-radius:0;background:transparent;padding-left:2px}
.rudforms.rf-style-underline .rf-phone-cc:focus-within .rf-phone-face{border-bottom:2px solid var(--rf-accent);box-shadow:none}
.rudforms.rf-style-filled .rf-phone-cc .rf-phone-face{border-color:transparent;background:color-mix(in srgb,var(--rf-border) 28%,#fff)}
.rudforms .rf-phone-cc select.rf-phone-country:disabled{cursor:not-allowed}
.rudforms .rf-phone-cc select.rf-phone-country:disabled+.rf-phone-face,.rudforms .rf-phone-cc:has(select:disabled) .rf-phone-face{opacity:.6}
@media(max-width:480px){.rudforms .rf-phone-cc .rf-phone-face{gap:6px;padding:0 8px;font-size:14px}}

/* Step dots: all in the form colour (blue) – outlined when ahead, filled when active or done. */
.rudforms .rf-dot{border-color:var(--rf-accent);color:var(--rf-accent);background:transparent}
.rudforms li.is-active .rf-dot,.rudforms li.is-done .rf-dot{background:var(--rf-accent);border-color:var(--rf-accent);color:#fff}
.rudforms .rf-progress-steps-list li{opacity:.75}
.rudforms .rf-progress-steps-list li.is-active,.rudforms .rf-progress-steps-list li.is-done{opacity:1}

/* Buttons: Next and Send in the form colour; Back as an outlined button in the same colour. */
.rudforms .rudforms-submit,.rudforms .rf-next{background:var(--rf-accent)!important;border-color:var(--rf-accent)!important;color:#fff!important}
.rudforms .rf-prev{border-color:var(--rf-accent);color:var(--rf-accent)}
.rudforms .rf-prev:hover,.rudforms .rf-prev:focus{border-color:var(--rf-accent);color:#fff;background:var(--rf-accent)}
@media(max-width:767px){.rudforms .rf-actions{flex-direction:column-reverse;align-items:stretch}.rudforms .rf-actions .rf-prev,.rudforms .rf-actions .rudforms-submit,.rudforms .rf-actions .rf-next{width:100%;margin-left:0!important}}

/* ================================================================
   1.0.5 – Address field: chosen parts, chosen order, own width per part
   ================================================================ */
.rudforms .rf-address{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.rudforms .rf-address input{grid-column:span 6}
.rudforms .rf-address .rf-a-street,.rudforms .rf-address .rf-a-country{grid-column:span 6}
.rudforms .rf-address input.rf-aw-100{grid-column:span 6}
.rudforms .rf-address input.rf-aw-66{grid-column:span 4}
.rudforms .rf-address input.rf-aw-50{grid-column:span 3}
.rudforms .rf-address input.rf-aw-33{grid-column:span 2}
.rudforms .rf-address .rf-a-country-code{text-transform:uppercase}
@media(max-width:480px){.rudforms .rf-address input[class*=rf-aw-]{grid-column:span 6}}

/* 1.0.6 – Country list inside the Address field */
.rudforms .rf-address>select{grid-column:span 6}
.rudforms .rf-address>select.rf-aw-100{grid-column:span 6}
.rudforms .rf-address>select.rf-aw-66{grid-column:span 4}
.rudforms .rf-address>select.rf-aw-50{grid-column:span 3}
.rudforms .rf-address>select.rf-aw-33{grid-column:span 2}
.rudforms .rf-address select.rf-a-country.is-empty{color:#9ca3af}
.rudforms .rf-address select.rf-a-country option{color:#111}
@media(max-width:480px){.rudforms .rf-address>select[class*=rf-aw-]{grid-column:span 6}}

/* 1.0.7 – visible Country Code, filled in automatically (read only) */
.rudforms .rf-address input.rf-a-auto{background:color-mix(in srgb,var(--rf-border) 22%,#fff)!important;cursor:default;font-weight:600;letter-spacing:.06em}
.rudforms .rf-address input.rf-a-auto:focus{box-shadow:none;border-color:var(--rf-border)}

/* 1.0.8 – Country Code uses the same text as the other address fields (no bold, no capitals, no extra spacing) */
.rudforms .rf-address input.rf-a-auto,.rudforms .rf-address input.rf-a-country-code{font-weight:inherit;letter-spacing:normal;text-transform:none}
.rudforms .rf-address input.rf-a-auto::placeholder{font-weight:inherit;letter-spacing:normal;text-transform:none}
