/* Premier Crate Hire: native Gravity Forms quote form.
   Gravity Forms' own CSS is switched off, so this file styles the whole form.
   Everything is scoped under .hero-form (the white card in the page hero).
   Uses the theme's :root variables: --navy --ink --ink-2 --orange-hi --orange-lo --navy-ink --rule --font. */

/* ---------- reset and things that must stay hidden ---------- */
.hero-form .gform_wrapper,
.hero-form .gform_wrapper *{box-sizing:border-box}
.hero-form .gform_wrapper{margin:0;font:400 16px/1.5 var(--font);color:var(--ink);text-align:left}
.hero-form .gform_wrapper form{margin:0}
.hero-form .gform_wrapper fieldset{border:0;margin:0;padding:0;min-width:0}
.hero-form .gform_wrapper legend{display:block;width:100%;padding:0;float:none}
.hero-form .gform_wrapper p{margin:0}
.hero-form .gform_wrapper .gform_validation_container,
.hero-form .gform_wrapper .gfield--type-honeypot,
.hero-form .gform_wrapper .gform_hidden,
.hero-form .gform_wrapper .gfield--type-hidden,
.hero-form .gform_wrapper input[type="hidden"],
.hero-form .gform_wrapper [data-conditional-logic="hidden"],
.hero-form .gform_wrapper .gform_anchor,
.hero-form .gform_wrapper .gf_progressbar_percentage span,
.hero-form .gform_wrapper .gform-icon,
.hero-form iframe[id^="gform_ajax_frame_"]{display:none !important}
.hero-form .gform_wrapper .gform_validation_container{position:absolute !important;left:-9000px}
.hero-form .screen-reader-text,
.hero-form .gform_wrapper .gfield_required,
.hero-form .gform_wrapper .gform_required_legend{position:absolute !important;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* ---------- progress: four short segments, "Step N of 4" under them ---------- */
.hero-form .gf_progressbar_wrapper{display:flex;flex-direction:column;margin:18px 0}
.hero-form .gf_progressbar{order:1;position:relative;height:5px;margin:0 0 6px;border-radius:3px;background:#DCE4EC;overflow:hidden}
.hero-form .gf_progressbar_percentage{height:100%;border-radius:0;background:var(--navy) !important}
/* three 6px gaps with rounded segment ends, drawn over the bar in the card's white */
.hero-form .gf_progressbar::after{content:"";position:absolute;inset:0;background-repeat:no-repeat;background-size:11px 100%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 5' preserveAspectRatio='none'%3E%3Cpath d='M0 0A2.5 2.5 0 0 1 0 5H11A2.5 2.5 0 0 1 11 0Z' fill='%23fff'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 5' preserveAspectRatio='none'%3E%3Cpath d='M0 0A2.5 2.5 0 0 1 0 5H11A2.5 2.5 0 0 1 11 0Z' fill='%23fff'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 5' preserveAspectRatio='none'%3E%3Cpath d='M0 0A2.5 2.5 0 0 1 0 5H11A2.5 2.5 0 0 1 11 0Z' fill='%23fff'/%3E%3C/svg%3E");
  background-position:calc(25% - 4.25px) 0,50% 0,calc(75% + 4.25px) 0}
.hero-form .gf_progressbar_title{order:2;font:600 13px/1.3 var(--font);color:var(--ink-2);margin:0}

/* ---------- fields ---------- */
.hero-form .gform_fields{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:12px;row-gap:14px}
.hero-form .gfield{grid-column:1 / -1;min-width:0}
.hero-form .gfield.gfield--width-half{grid-column:span 6}
.hero-form .gfield_label{display:block;font:700 15px/1.3 var(--font);color:var(--ink);margin:0 0 6px}
.hero-form .pch-optional .gfield_label::after{content:" (optional)";font-weight:400;color:var(--ink-2)}
.hero-form .gfield_description{font:400 14px/1.45 var(--font);color:var(--ink-2);margin:0;padding:0}

.hero-form .gfield input[type="text"],
.hero-form .gfield input[type="tel"],
.hero-form .gfield input[type="email"],
.hero-form .gfield input[type="date"],
.hero-form .gfield input[type="number"],
.hero-form .gfield select,
.hero-form .gfield textarea{display:block;width:100%;max-width:100%;height:50px;margin:0;padding:0 14px;font:400 16px/1.4 var(--font);color:var(--ink);background:#fff;border:1.5px solid #C5D0DC;border-radius:8px;box-shadow:none}
.hero-form .gfield textarea{height:76px;padding:10px 14px;resize:vertical}
.hero-form .ginput_container_textarea{padding-bottom:7px} /* the design's textarea sits on a text line, which leaves this gap under it */
.hero-form .gfield input::placeholder,
.hero-form .gfield textarea::placeholder{color:#6B7B8E;opacity:1}
.hero-form .gfield input:focus,
.hero-form .gfield select:focus,
.hero-form .gfield textarea:focus{outline:none;border-color:var(--navy);box-shadow:0 0 0 3px rgba(1,65,126,.18)}

/* step heading (section field) and the question label on the tile steps */
.hero-form .gsection{border:0;padding:0;margin:0}
.hero-form .gsection_title,
.hero-form .pch-tiles > .gfield_label{font:700 18px/1.3 var(--font);letter-spacing:0;color:var(--ink);margin:0 0 4px;padding:0;border:0}
.hero-form .gsection_description{font:400 14px/1.45 var(--font);color:var(--ink-2);margin:0;padding:0}

/* ---------- radio and checkbox rows as tap tiles ---------- */
.hero-form .pch-tiles > .gfield_label{margin-bottom:0}
.hero-form .pch-tiles > .gfield_description{margin-top:4px}
.hero-form .pch-tiles .gfield_radio,
.hero-form .pch-tiles .gfield_checkbox{display:grid;gap:8px;margin:14px 0 6px}
.hero-form .pch-tiles .gchoice{position:relative;margin:0}
.hero-form .pch-tiles .gchoice label{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:14px;min-height:54px;margin:0;padding:10px 16px 10px 52px;background:#fff;border:1.5px solid #C5D0DC;border-radius:8px;cursor:pointer;font:700 16px/1.3 var(--font);color:var(--ink);text-align:left;-webkit-tap-highlight-color:transparent}
.hero-form .pch-tiles .gchoice label b{display:block;font:700 16px/1.3 var(--font)}
.hero-form .pch-tiles .gchoice label small{display:block;font:400 14px/1.35 var(--font);color:var(--ink-2)}
.hero-form .pch-tiles .pch-price{font:700 15px/1.3 var(--font);color:var(--ink);white-space:nowrap}
.hero-form .pch-tiles .gchoice input{-webkit-appearance:none;appearance:none;position:absolute;left:17px;top:50%;width:22px;height:22px;margin:-11px 0 0;padding:0;border:2px solid #8A9AAD;border-radius:50%;background:#fff;cursor:pointer;outline:none}
.hero-form .pch-tiles .gchoice input[type="checkbox"]{border-radius:5px}
.hero-form .pch-tiles .gchoice label:hover{border-color:var(--navy)}
.hero-form .pch-tiles .gchoice input:checked + label{border-color:var(--navy);background:#EEF4FB;box-shadow:inset 0 0 0 1px var(--navy)}
.hero-form .pch-tiles .gchoice input:checked{border-color:var(--navy);background:var(--navy);box-shadow:inset 0 0 0 4px #fff}
.hero-form .pch-tiles .gchoice input[type="checkbox"]:checked{box-shadow:none;background:var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3.2L14 5.8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat}
.hero-form .pch-tiles .gchoice input:focus-visible + label{outline:3px solid var(--orange,#FF6D00);outline-offset:2px}

/* ---------- validation ---------- */
.hero-form .gform_validation_errors{margin:14px 0 -4px;padding:0;border:0;background:none;outline:none}
.hero-form .gform_validation_errors h2,
.hero-form .gform_validation_errors .gform_submission_error{font:600 14px/1.4 var(--font);letter-spacing:0;color:#B42318;margin:0}
.hero-form .gform_validation_errors ol{margin:6px 0 0;padding:0 0 0 18px;font:400 14px/1.4 var(--font);color:#B42318}
.hero-form .gform_validation_errors a{color:#B42318}
.hero-form .gfield_error input[type="text"],
.hero-form .gfield_error input[type="tel"],
.hero-form .gfield_error input[type="email"],
.hero-form .gfield_error input[type="date"],
.hero-form .gfield_error select,
.hero-form .gfield_error textarea{border-color:#B42318}
.hero-form .gfield .validation_message{font:600 14px/1.3 var(--font);color:#B42318;margin:5px 0 0;padding:0;border:0;background:none}

/* ---------- buttons: Next or Get my quote first, Back as a text button below ---------- */
.hero-form .gform_page_footer,
.hero-form .gform_footer{position:relative;display:flex;flex-direction:column-reverse;align-items:flex-start;margin:20px 0 0;padding:0;border:0}
.hero-form .gform_next_button,
.hero-form .gform_button{-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:56px;margin:0;padding:0 16px;border:0;border-radius:8px;background:linear-gradient(var(--orange-hi),var(--orange-lo));color:var(--navy-ink);font:800 18px/1 var(--font);text-align:center;cursor:pointer}
.hero-form .gform_next_button:hover,
.hero-form .gform_button:hover{filter:brightness(1.06)}
.hero-form .gform_previous_button{-webkit-appearance:none;appearance:none;display:inline-flex;align-items:center;width:auto;min-height:44px;margin:4px 0 0;padding:0;background:none;border:0;border-radius:0;color:var(--ink-2);font:600 15px/1 var(--font);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.hero-form .gform_next_button:focus-visible,
.hero-form .gform_button:focus-visible,
.hero-form .gform_previous_button:focus-visible{outline:3px solid var(--orange,#FF6D00);outline-offset:2px}
.hero-form .gform_wrapper input[type="button"]:disabled,
.hero-form .gform_wrapper input[type="submit"]:disabled,
.hero-form .gform_wrapper button:disabled{opacity:.7;cursor:default}

/* AJAX spinner: sits inside the right end of the orange button, no layout shift */
.hero-form .gform_ajax_spinner,
.hero-form .gform-loader{position:absolute;top:17px;right:16px;width:22px;height:22px;margin:0;padding:0;border:3px solid rgba(6,40,77,.25);border-top-color:var(--navy-ink);border-radius:50%;background:none;font-size:0;animation:pch-spin .8s linear infinite}
@keyframes pch-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.hero-form .gform_ajax_spinner,.hero-form .gform-loader{animation-duration:2.4s}}

/* ---------- phones ---------- */
@media (max-width:600px){
  .hero-form .gfield.gfield--width-half{grid-column:1 / -1}
}

/* The inline message under each field is the one the design shows; the summary stays for screen readers only. */
.hero-form .gform_validation_errors{position:absolute !important;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
