/* HubSpot enquiry form, restyled to the voicesurgeryturkey.com design system.
   The embed can arrive in one of two modes, detected at runtime:
   .hs-native  raw HTML in the page  -> fully restyled below to match the site
   .hs-iframe  HubSpot-served iframe -> page CSS cannot reach inside, so it gets
               a clean paper card; the interior is governed by the form's
               Style & preview settings in HubSpot. */

.hs-embed{position:relative}
.hs-embed:empty{min-height:150px}
.hs-embed:empty::before{content:"Loading the enquiry form\2026";font:600 .74rem/1 var(--data,ui-monospace,monospace);letter-spacing:.14em;text-transform:uppercase;color:var(--mist,#8894a5);position:absolute;top:1.1rem;left:0}

/* ---------- iframe mode: paper card ---------- */
.hs-embed.hs-iframe{background:#fff;border:1px solid var(--line,rgba(17,23,34,.12));border-radius:var(--r,14px);padding:clamp(1.1rem,2.5vw,1.75rem);margin-top:2rem}
.hs-embed.hs-iframe iframe{width:100%!important;display:block;border:0}

/* ---------- native mode: the site's own form language ---------- */
.hs-embed.hs-native{margin-top:2rem}
.hs-embed .hs-form fieldset{border:0;margin:0;padding:0;max-width:none;min-width:0}
.hs-embed .hs-form fieldset.form-columns-2{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
.hs-embed .hs-form fieldset.form-columns-3{display:grid;grid-template-columns:repeat(3,1fr);gap:0 1rem}
@media(max-width:620px){.hs-embed .hs-form fieldset.form-columns-2,.hs-embed .hs-form fieldset.form-columns-3{grid-template-columns:1fr}}
.hs-embed .hs-form-field{margin:0 0 1.05rem;min-width:0}
.hs-embed .hs-form-field>label{display:block;font:600 .82rem/1.4 var(--body,sans-serif);margin-bottom:.35rem;color:#1b2431}
.hs-embed .hs-form-required{color:var(--signal-deep,#b8791d);margin-left:.15rem}
.hs-embed .hs-field-desc{font-size:.8rem;color:var(--mist,#8894a5);margin:-.15rem 0 .35rem}

.hs-embed .hs-input{width:100%;box-sizing:border-box;font:400 1rem/1.4 var(--body,sans-serif);padding:.8rem .9rem;border-radius:10px;background-color:#fff;color:var(--ink,#111722);border:1px solid rgba(17,23,34,.28);transition:border-color .15s ease,box-shadow .15s ease}
.hs-embed .hs-input::placeholder{color:var(--mist,#8894a5)}
.hs-embed .hs-input:focus{outline:none;border-color:var(--signal,#e5a73c);box-shadow:0 0 0 3px rgba(229,167,60,.22)}
.hs-embed textarea.hs-input{min-height:8.5rem;resize:vertical}
.hs-embed select.hs-input{appearance:none;-webkit-appearance:none;padding-right:2.4rem;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a4657' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .95rem center;background-size:.7rem}
.hs-embed select.hs-input option{color:#111722;background:#fff}

.hs-embed .hs-fieldtype-phonenumber .input{display:flex;gap:.6rem}
.hs-embed .hs-fieldtype-phonenumber select.hs-input{width:auto;flex:0 0 auto;max-width:9.5rem}
.hs-embed .hs-fieldtype-phonenumber input.hs-input{flex:1 1 auto;min-width:0}

.hs-embed .inputs-list{list-style:none;margin:0;padding:0}
.hs-embed .inputs-list li{margin:0 0 .5rem}
.hs-embed .inputs-list label{display:flex;gap:.6rem;align-items:flex-start;font:400 .9rem/1.5 var(--body,sans-serif);margin:0}
.hs-embed input[type=checkbox].hs-input,.hs-embed input[type=radio].hs-input{width:18px;height:18px;flex:0 0 auto;margin:.15rem 0 0;accent-color:var(--signal,#e5a73c)}

.hs-embed .hs-richtext,.hs-embed .legal-consent-container,.hs-embed .legal-consent-container .hs-richtext{font-size:.85rem;line-height:1.55;color:var(--slate,#3a4657);max-width:68ch}
.hs-embed .legal-consent-container a,.hs-embed .hs-richtext a{color:var(--eucalypt,#3f6f6b)}

.hs-embed ul.hs-error-msgs{list-style:none;margin:.45rem 0 0;padding:0}
.hs-embed ul.hs-error-msgs label{display:block;font:400 .8rem/1.4 var(--body,sans-serif);color:#b3261e;margin:0}
.hs-embed .hs-input.invalid,.hs-embed .hs-input.error{border-color:#c5493a}
.hs-embed .hs_error_rollup{margin:.5rem 0 0}

.hs-embed .hs_submit{margin-top:.5rem}
.hs-embed .hs-button{display:inline-flex;align-items:center;gap:.5rem;width:auto;appearance:none;-webkit-appearance:none;font:600 .95rem/1 var(--body,sans-serif);padding:.95rem 1.6rem;border-radius:999px;border:1px solid var(--signal,#e5a73c);background:var(--signal,#e5a73c);color:#1a1205;cursor:pointer;transition:transform .18s ease,background .18s ease}
.hs-embed .hs-button:hover{background:#f0b451;transform:translateY(-1px)}

.hs-embed .submitted-message{font:400 1rem/1.6 var(--body,sans-serif);padding:1.1rem 1.25rem;border:1px solid rgba(229,167,60,.5);border-radius:12px;background:rgba(229,167,60,.12);color:var(--ink,#111722)}
.hs-embed .hs-fallback{margin:0}

/* ---------- dark sections ---------- */
.on-dark .hs-embed:empty::before{color:#7f8b9b}
.on-dark .hs-embed .hs-form-field>label{color:#e7ebf0}
.on-dark .hs-embed .hs-form-required{color:var(--signal,#e5a73c)}
.on-dark .hs-embed .hs-field-desc{color:#7f8b9b}
.on-dark .hs-embed .hs-input{background-color:rgba(255,255,255,.06);border-color:rgba(255,255,255,.22);color:#fff}
.on-dark .hs-embed .hs-input::placeholder{color:#7f8b9b}
.on-dark .hs-embed .hs-input:focus{border-color:rgba(229,167,60,.65);box-shadow:0 0 0 3px rgba(229,167,60,.16)}
.on-dark .hs-embed select.hs-input{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e7ebf0' stroke-width='2'/%3E%3C/svg%3E")}
.on-dark .hs-embed .hs-richtext,.on-dark .hs-embed .legal-consent-container,.on-dark .hs-embed .legal-consent-container .hs-richtext{color:#b9c3d0}
.on-dark .hs-embed .legal-consent-container a,.on-dark .hs-embed .hs-richtext a{color:var(--signal,#e5a73c)}
.on-dark .hs-embed ul.hs-error-msgs label{color:#ffb4a3}
.on-dark .hs-embed .hs-input.invalid,.on-dark .hs-embed .hs-input.error{border-color:rgba(255,140,120,.75)}
.on-dark .hs-embed .submitted-message{color:#fff}

/* consent line under the form */
.hs-note{font-size:.85rem;color:var(--slate,#3a4657);margin:.9rem 0 0;max-width:68ch}
.on-dark .hs-note{color:#b9c3d0}

/* ---------- correction layer (v31) ---------- */
/* If the card mode is ever applied around a raw form (stray hidden iframe,
   misdetection), fields inside the white card must use the light palette.
   These sit last in the file so they win specificity ties. */
.hs-embed.hs-iframe .hs-form-field>label{color:#1b2431}
.hs-embed.hs-iframe .hs-input{background-color:#fff;border-color:rgba(17,23,34,.28);color:#111722}
.hs-embed.hs-iframe .hs-input::placeholder{color:#8894a5}
.hs-embed.hs-iframe select.hs-input{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a4657' stroke-width='2'/%3E%3C/svg%3E")}
.hs-embed.hs-iframe .hs-richtext,.hs-embed.hs-iframe .legal-consent-container{color:#3a4657}
.hs-embed.hs-iframe ul.hs-error-msgs label{color:#b3261e}
.hs-embed.hs-iframe .hs-form-required{color:#b8791d}

/* International phone widget: HubSpot renders <div class="hs-fieldtype-intl-phone hs-input">
   wrapping a bare <select> and <input>. Neutralise the wrapper, skin the controls. */
.hs-embed div.hs-fieldtype-intl-phone.hs-input,.hs-embed .hs-fieldtype-phonenumber div.hs-input{display:flex;gap:.6rem;padding:0;border:0;background:transparent;box-shadow:none;border-radius:0}
.hs-embed .hs-fieldtype-intl-phone select,.hs-embed .hs-fieldtype-phonenumber .input select{flex:0 0 auto;width:auto;max-width:9.5rem;box-sizing:border-box;font:400 1rem/1.4 var(--body,sans-serif);padding:.8rem 2.4rem .8rem .9rem;border-radius:10px;background-color:#fff;color:#111722;border:1px solid rgba(17,23,34,.28);appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a4657' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .95rem center;background-size:.7rem}
.hs-embed .hs-fieldtype-intl-phone input,.hs-embed .hs-fieldtype-phonenumber .input input{flex:1 1 auto;min-width:0;box-sizing:border-box;font:400 1rem/1.4 var(--body,sans-serif);padding:.8rem .9rem;border-radius:10px;background-color:#fff;color:#111722;border:1px solid rgba(17,23,34,.28)}
.on-dark .hs-embed .hs-fieldtype-intl-phone select,.on-dark .hs-embed .hs-fieldtype-phonenumber .input select{background-color:rgba(255,255,255,.06);border-color:rgba(255,255,255,.22);color:#fff;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e7ebf0' stroke-width='2'/%3E%3C/svg%3E")}
.on-dark .hs-embed .hs-fieldtype-intl-phone input,.on-dark .hs-embed .hs-fieldtype-phonenumber .input input{background-color:rgba(255,255,255,.06);border-color:rgba(255,255,255,.22);color:#fff}
.hs-embed.hs-iframe .hs-fieldtype-intl-phone select,.hs-embed.hs-iframe .hs-fieldtype-phonenumber .input select,.hs-embed.hs-iframe .hs-fieldtype-intl-phone input,.hs-embed.hs-iframe .hs-fieldtype-phonenumber .input input{background-color:#fff;border-color:rgba(17,23,34,.28);color:#111722;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a4657' stroke-width='2'/%3E%3C/svg%3E")}
.hs-embed.hs-iframe .hs-fieldtype-intl-phone input,.hs-embed.hs-iframe .hs-fieldtype-phonenumber .input input{background-image:none}
@media(max-width:420px){.hs-embed div.hs-fieldtype-intl-phone.hs-input{flex-wrap:wrap}.hs-embed .hs-fieldtype-intl-phone select{max-width:none;width:100%}}
