/*
Theme Name: TWIIN
Theme URI: https://twiin.com
Author: Yellow Jersey PR
Author URI: https://yellowjerseypr.com
Description: Custom theme for TWIIN, built on ACF Pro flexible content. Every page, product page and case study is assembled from the "Page sections" builder. Requires Advanced Custom Fields Pro 6.2+.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: twiin
*/
/* All front-end styles live in assets/css/main.css */



/* ==========================================================
   Download CTR section (#downloadctr)
   One full-width column, no vertical padding, centred content
   ========================================================== */

/* Remove the section's top and bottom padding */
#downloadctr.section {
  padding-block: 0;
}

/* One column instead of two */
#downloadctr .contact__grid {
  grid-template-columns: 1fr;
  gap: 0;
  justify-items: center;
}

/* Centre the title + form block and give it a comfortable width */
#downloadctr .contact__form {
  width: 100%;
  max-width: 720px;      /* change to 100% if the form should span the full width */
  margin-inline: auto;
}

#downloadctr .contact__heading {
  text-align: center;
}

/* Keep the HubSpot form centred, with its labels and fields left-aligned */
#downloadctr .hbspt-form,
#downloadctr .hbspt-form form {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  text-align: left;
}

/* Centre the submit button */
#downloadctr .hbspt-form .hs_submit,
#downloadctr .hbspt-form .actions {
  text-align: center;
}

#downloadctr.section {
  padding-top: clamp(48px, 6vw, 96px);   /* breathing room above the title */
  padding-bottom: clamp(48px, 6vw, 96px);   
}

/* =========================================================
   twiin · Download CTR section + HubSpot form overrides
   ========================================================= */

/* ---------- Section layout ---------- */
#downloadctr.section {
  padding-top: clamp(48px, 6vw, 96px) !important;
  padding-bottom: clamp(48px, 6vw, 96px) !important;
}
#downloadctr .contact__grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  justify-items: center !important;
}
#downloadctr .contact__heading,
#downloadctr .contact__heading * {
  text-align: center !important;
}
#downloadctr .contact__form {
  width: 100% !important;
  max-width: 720px !important;
  margin-inline: auto !important;
}

/* ---------- Form wrapper ---------- */
#downloadctr .hbspt-form,
#downloadctr .hs-form,
#downloadctr form.hs-form {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  line-height: 24px !important;
  color: #000 !important;
  text-align: left !important;
}
#downloadctr .hs-form fieldset {
  max-width: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ---------- Labels ---------- */
#downloadctr .hs-form label,
#downloadctr .hs-form .hs-form-field > label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #55534c !important;
  margin: 0 0 4px !important;
}
#downloadctr .hs-form .hs-form-required {
  color: #b42318 !important;
}

/* ---------- Fields ---------- */
#downloadctr .hs-form .hs-form-field {
  margin-bottom: 4px !important;
}
#downloadctr .hs-form .input {
  margin-right: 0 !important;
}
#downloadctr .hs-form input.hs-input:not([type="checkbox"]):not([type="radio"]),
#downloadctr .hs-form select.hs-input,
#downloadctr .hs-form textarea.hs-input {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px !important;
  height: auto !important;
  padding: 10px 14px !important;
  margin: 0 0 10px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background-color: #f4f3f0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 22.5px !important;
  color: #000 !important;
  transition: border-color .2s, background-color .2s !important;
}
#downloadctr .hs-form textarea.hs-input {
  min-height: 140px !important;
  resize: vertical !important;
}
#downloadctr .hs-form .hs-input::placeholder {
  color: #8a877f !important;
  opacity: 1 !important;
}
#downloadctr .hs-form .hs-input:focus {
  outline: none !important;
  border-color: #b3a284 !important;
  background-color: #fff !important;
}
#downloadctr .hs-form .hs-input.invalid.error {
  border-color: #b42318 !important;
}

/* Select chevron */
#downloadctr .hs-form select.hs-input {
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 48px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23121110' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 20px center !important;
  background-size: 12px 8px !important;
}

/* Two-column rows */
#downloadctr .hs-form fieldset.form-columns-2 {
  display: flex !important;
  gap: 16px !important;
}
#downloadctr .hs-form fieldset.form-columns-2 .hs-form-field {
  width: 50% !important;
  float: none !important;
  padding: 0 !important;
}

/* Checkboxes / radios */
#downloadctr .hs-form ul.inputs-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#downloadctr .hs-form ul.inputs-list label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  font-size: 13px !important;
}
#downloadctr .hs-form input[type="checkbox"],
#downloadctr .hs-form input[type="radio"] {
  width: 16px !important;
  height: 16px !important;
  margin: 3px 0 0 !important;
  accent-color: #000 !important;
}

/* ---------- Errors & consent text ---------- */
#downloadctr .hs-form .hs-error-msgs {
  list-style: none !important;
  margin: -4px 0 8px !important;
  padding: 0 !important;
}
#downloadctr .hs-form .hs-error-msgs label,
#downloadctr .hs-form .hs-error-msg,
#downloadctr .hs-form .hs_error_rollup label {
  color: #b42318 !important;
  font-size: 13px !important;
  margin: 0 !important;
}
#downloadctr .hs-form .legal-consent-container,
#downloadctr .hs-form .legal-consent-container p,
#downloadctr .hs-form .hs-richtext,
#downloadctr .hs-form .hs-richtext p {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #55534c !important;
}
#downloadctr .hs-form .legal-consent-container {
  margin: 12px 0 24px !important;
}
#downloadctr .hs-form .legal-consent-container a {
  color: #55534c !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

/* ---------- Submit button (matches "Download Now") ---------- */
#downloadctr .hs-form .hs_submit,
#downloadctr .hs-form .actions {
  text-align: center !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
}
#downloadctr .hs-form input[type="submit"],
#downloadctr .hs-form .hs-button,
#downloadctr .hs-form .hs-button.primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  height: auto !important;
  padding: 10px 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #000 !important;
  color: #fff !important;
  font-family: "Universal Doomsday", "Baloo 2", ui-rounded, system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: background-color .2s, transform .2s cubic-bezier(.2,.7,.2,1) !important;
}
#downloadctr .hs-form input[type="submit"]:hover,
#downloadctr .hs-form .hs-button:hover {
  background: #2B2925 !important;
  transform: translateY(-1px) !important;
}
#downloadctr .hs-form input[type="submit"]:focus-visible,
#downloadctr .hs-form .hs-button:focus-visible {
  outline: 2px solid #b3a284 !important;
  outline-offset: 3px !important;
}

/* ---------- Success message ---------- */
#downloadctr .submitted-message {
  text-align: center !important;
  font-size: 16px !important;
  color: #000 !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  #downloadctr .hs-form fieldset.form-columns-2 {
    display: block !important;
  }
  #downloadctr .hs-form fieldset.form-columns-2 .hs-form-field {
    width: 100% !important;
  }
}

#whatsinside{
	padding-bottom: 2em!important;
}
#salescta{
	padding-top: 0!important;
}

.hs_submit .hs_button{
	border-radius: 500em!important;
}