/*
 * partner-form.css — the application form card a `partner_hero` block carries
 * (@rainbow/core/partnerHero), drawn as the published page draws it: a white
 * rounded card, a heading on the left, 42px fields on a 16px grid, the consent
 * line above the button.
 *
 * Every rule is under `.partner-hero-form`, the block's form column, for two
 * reasons: the card's markup may sit on a page whose own <style> still carries
 * the older look of the same class names (`.form-card`, `.form-input`, …), and
 * a scoped rule wins over that without `!important`; and nothing here can
 * reach another form on the page. The markup itself is the page script's
 * (ids and names it looks up), so its order is kept and the consent line is
 * moved above the button with `order`, not by rewriting it.
 */
.partner-hero-form .form-card{background:#fff;border:1px solid #f3f4f6;border-radius:16px;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);overflow:hidden;padding:20px}
.partner-hero-form .form-card-title{font-size:1.25rem;font-weight:800;line-height:1.75rem;letter-spacing:-.025em;color:#1e1b4b;text-align:left;padding:0;border:0}
.partner-hero-form .form-body{padding:0;margin-top:24px}
.partner-hero-form #partner-form{display:flex;flex-direction:column}

.partner-hero-form .field-row{display:grid;grid-template-columns:1fr;gap:14px;margin:0 0 14px}
.partner-hero-form .field-wrap{margin:0 0 14px;position:relative}
.partner-hero-form .form-input{width:100%;height:46px;padding:0 14px;border:1px solid #e5e7eb;border-radius:10px;font-size:1rem;line-height:1.5rem;color:#111827;font-family:'Google Sans',sans-serif;background:#fff;outline:none;transition:border-color .18s,box-shadow .18s;display:block}
.partner-hero-form .form-input::placeholder{color:#9ca3af}
.partner-hero-form .form-input:focus{border-color:#5e2d91;box-shadow:0 0 0 1px #5e2d91}
.partner-hero-form .form-input.err{border-color:#ef4444}

.partner-hero-form select.form-input{appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:38px;color:#111827}
.partner-hero-form .select-wrap{position:relative}
.partner-hero-form .select-wrap::after{content:'';position:absolute;right:14px;top:50%;transform:translateY(-50%);width:12px;height:12px;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:12px}

.partner-hero-form .err-msg{font-size:.75rem;color:#dc2626;margin-top:4px;display:none}
.partner-hero-form .err-msg.show{display:block}

.partner-hero-form .legal{order:1;font-size:.75rem;line-height:1.625;color:#6b7280;text-align:left;margin:6px 0 0}
.partner-hero-form .legal a{color:#5e2d91;font-weight:600;text-decoration:none}
.partner-hero-form .legal a:hover{text-decoration:underline}

.partner-hero-form .btn-submit{order:2;width:100%;height:52px;background:#5e2d91;color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:700;font-family:'Google Sans',sans-serif;cursor:pointer;transition:background .18s,transform .12s;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:20px;box-shadow:0 10px 15px -3px rgba(88,28,135,.15),0 4px 6px -4px rgba(88,28,135,.15)}
.partner-hero-form .btn-submit:hover{background:#4a2373}
.partner-hero-form .btn-submit:active{transform:scale(.98)}
.partner-hero-form .btn-submit.loading{opacity:.7;pointer-events:none}
.partner-hero-form .spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:partner-form-spin .7s linear infinite;display:none}
.partner-hero-form .btn-submit.loading .spinner{display:block}
.partner-hero-form .btn-submit.loading .btn-label{display:none}
@keyframes partner-form-spin{to{transform:rotate(360deg)}}

.partner-hero-form #success-msg{display:none;text-align:center;padding:24px 0 8px}

@media (min-width:640px){
  .partner-hero-form .form-card{padding:36px}
  .partner-hero-form .form-card-title{font-size:1.5rem;line-height:2rem}
  .partner-hero-form .field-row{grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
  .partner-hero-form .field-wrap{margin-bottom:16px}
  .partner-hero-form .form-input{height:42px;font-size:.875rem;line-height:1.25rem}
  .partner-hero-form .legal{margin-top:4px}
  .partner-hero-form .btn-submit{margin-top:24px}
}

/* A form chosen from the Forms screen (renderForm's markup, not the pasted card's) inside .form-card:
   the card already pads it, so the form's own gutter and top margin are taken off.
   `[data-chosen-form]` marks only the card the chosen form sits in, so a pasted card's own divs are untouched;
   `> div` is renderForm's wrapper, hence no class to name; a card/split form is not framed and is untouched. */
.partner-hero-form .form-card[data-chosen-form] > div{padding-left:0;padding-right:0;max-width:none}
.partner-hero-form .form-card[data-chosen-form] > div > form:first-child{margin-top:0}
