/* pages/contact.css: loaded only on the "contact" template.
   Ported from the source theme (RECON/assets/pretty/style.css), selectors and values kept 1:1. */
@layer custom {
  form > div:before {
    background: var(--clr-dark);
  }
  form > div {
    display: block;
  }
  form > div {
    position: relative;
  }
  form {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
  }
  form input,
  form select,
  form > div,
  textarea {
    box-sizing: border-box;
  }
  form > div {
    width: 100%;
    margin-bottom: 20px;
    float: left;
    padding-left: 1%;
    padding-right: 1%;
  }
  form input,
  form select,
  textarea {
    display: block;
    padding: 30px;
    border: none;
  }
  form > div.focus:before,
  textarea {
    width: 100%;
  }
  form > div:before {
    content: "";
    position: absolute;
    bottom: 0;
    height: 1px;
    transition: 0.4s;
    width: 0;
  }
  body.dark form > div:before {
    background: var(--clr-white);
  }
  form button,
  form input,
  form select,
  textarea {
    background: var(--clr-border);
  }
  form input,
  form select {
    width: 100%;
  }
  form input:focus:not(:focus-visible),
  form select:focus:not(:focus-visible),
  form textarea:focus:not(:focus-visible) {
    outline: 0 !important;
  }
  form label {
    position: absolute;
    top: 45%;
    left: 30px;
    z-index: 2;
    transform: translateY(-50%);
    color: var(--clr-muted);
    transition: 0.4s;
    pointer-events: auto;
    cursor: text;
  }
  form > div.focus label {
    top: 0;
    font-size: 12px;
    transform: translateY(-50%);
  }
  form button {
    border: none;
    padding: 20px 50px;
  }
  body.dark form button,
  body.dark form input,
  body.dark form select,
  body.dark form textarea {
    background: var(--clr-deep);
    color: var(--clr-white);
  }
  optgroup,
  select,
  textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
  }
  select {
    text-transform: none;
  }
  ::-webkit-input-placeholder {
    color: var(--clr-muted);
  }
  :-ms-input-placeholder {
    color: var(--clr-muted);
  }
  ::-ms-input-placeholder {
    color: var(--clr-muted);
  }
  ::placeholder {
    color: var(--clr-muted);
  }
  textarea {
    overflow: auto;
    resize: none;
  }
  [type="checkbox"],
  [type="radio"] {
    box-sizing: border-box;
    padding: 0;
  }
  [type="number"]::-webkit-inner-spin-button,
  [type="number"]::-webkit-outer-spin-button {
    height: auto;
  }
  [type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
  }
  [type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  a.inner-button.dark {
    color: var(--clr-dark-60);
  }
  a.inner-button.dark:hover {
    color: var(--clr-dark);
  }
  a.inner-button {
    font-weight: 700;
    text-decoration: none;
  }
  a.inner-button {
    font-size: 20px;
    letter-spacing: 0;
    color: var(--clr-white-40);
    transition: color 0.3s;
  }
  .contact-row .text-wrapper {
    margin-bottom: 56px;
  }
  /* After a confirmed send form.js sets form.hidden; the grid display below would override [hidden] from the base layer. */
  .cll-form .wpcf7-form[hidden] { display: none; }

  .cll-form .wpcf7-form {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 20px;
    align-items: start;
  }
  .cll-form .wpcf7-form > .message-wrap,
  .cll-form .wpcf7-form > .send-wrap,
  .cll-form .wpcf7-form > .hidden-fields-container,
  .cll-form .wpcf7-form > .wpcf7-response-output {
    grid-column: 1 / -1;
  }
  .cll-form .wpcf7-form > .hidden-fields-container {
    margin: 0;
  }
  .cll-form .field-wrap:after,
  .cll-form .message-wrap:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: #ffffff29;
    transition: background 0.3s;
  }
  .cll-form .field-wrap:hover:after,
  .cll-form .message-wrap:hover:after {
    background: #ffffff52;
  }
  .cll-form input,
  .cll-form textarea {
    padding: 26px 22px;
    background: #ffffff08;
    transition: background 0.3s;
  }
  body.dark .cll-form input,
  body.dark .cll-form textarea {
    background: #ffffff08;
  }
  .cll-form .field-wrap:hover input,
  .cll-form .message-wrap:hover textarea,
  body.dark .cll-form input:focus,
  body.dark .cll-form textarea:focus {
    background: #ffffff0f;
  }
  .cll-form .field-wrap,
  .cll-form .message-wrap,
  .cll-form .send-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .cll-form .send-wrap {
    align-items: flex-start;
  }
  .cll-form .field-wrap > p,
  .cll-form .message-wrap > p,
  .cll-form .send-wrap > p {
    margin: 0;
  }
  .cll-form label {
    left: 22px;
  }
  .cll-form .field-wrap.focus label,
  .cll-form .message-wrap.focus label {
    top: -22px;
    line-height: 1;
    transform: none;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: uppercase;
  }
  .cll-form textarea {
    min-height: 190px;
    resize: none;
  }
  .cll-form .message-wrap label {
    top: 26px;
    transform: none;
  }
  .cll-form .message-wrap.focus label {
    top: -22px;
    line-height: 1;
  }
  .cll-form .send-wrap {
    margin-top: 26px;
  }
  .cll-form .send-wrap:before,
  .cll-form .send-wrap:after {
    content: none;
  }
  .cll-form button[type="submit"] {
    padding: 20px 46px;
    border-radius: 2px;
    background: var(--clr-white);
    color: var(--clr-deep);
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
    transition:
      opacity 0.3s,
      transform 0.3s;
  }
  .cll-form button[type="submit"]:hover {
    opacity: 0.82;
    transform: translateY(-2px);
  }
  body.dark .cll-form button[type="submit"] {
    background: var(--clr-white);
    color: var(--clr-deep);
  }
  .cll-form .wpcf7-form .wpcf7-response-output {
    margin: 0;
    padding: 20px 24px;
    border: 0;
    border-left: 2px solid var(--clr-white);
    border-radius: 2px;
    background: #ffffff0d;
    color: var(--clr-white);
    font-size: 15px;
    line-height: 1.55;
  }
  .cll-form .wpcf7-form.sent .wpcf7-response-output {
    border-left-color: var(--clr-white);
  }
  .cll-form .wpcf7-form.failed .wpcf7-response-output,
  .cll-form .wpcf7-form.aborted .wpcf7-response-output,
  .cll-form .wpcf7-form.spam .wpcf7-response-output,
  .cll-form .wpcf7-form.invalid .wpcf7-response-output,
  .cll-form .wpcf7-form.unaccepted .wpcf7-response-output {
    border-left-color: #e2574c;
    background: #e2574c14;
  }
  .cll-form .wpcf7-not-valid-tip {
    margin-top: 10px;
    color: #e2574c;
    font-size: 13px;
    letter-spacing: 0;
  }
  @media (max-width: 820px) {
  .contact-row .text-wrapper {
    margin-bottom: 40px;
  }
  }
  @media (max-width: 820px) {
  .cll-form .wpcf7-form {
    grid-template-columns: minmax(0, 1fr);
  }
  }
  @media (max-width: 820px) {
  .cll-form .send-wrap {
    align-items: stretch;
  }
  }
  @media (max-width: 820px) {
  .cll-form button[type="submit"] {
    width: 100%;
  }
  }
  @media (prefers-reduced-motion: reduce) {
  .cll-form button[type="submit"]:hover {
    transform: none;
  }
  }
  .contact-row {
    display: flex;
    align-items: stretch;
  }
  .contact-row > .c-col-12 {
    float: none;
  }
  @media (max-width: 992px) {
  .contact-row {
    display: block;
  }
  }
  @media (max-width: 992px) {
  .contact-row > .c-col-6 {
    float: left;
  }
  }
  .contact-cta-section a.inner-button {
    color: var(--clr-white);
  }
  .contact-cta-section a.inner-button:hover {
    opacity: 0.7;
  }
  .contact-cta-section .text-wrapper > p {
    min-height: 3em;
  }
  .contact-cta-section {
    background: var(--clr-deep);
    padding-top: 100px;
    padding-bottom: 30px;
  }
  a.inner-button,
  a.inner-button.light {
    display: inline-block;
    padding-block: 4px;
  }
  .cll-form__recaptcha-notice {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--clr-white-60);
  }
  .cll-form__recaptcha-notice a {
    color: inherit;
    text-decoration: underline;
  }
  .cll-form__consent {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--clr-white-60);
  }
  .cll-form__consent a {
    color: inherit;
    text-decoration: underline;
  }
  .contact-address {
    font-style: normal;
    line-height: 1.75;
  }
  .contact-cta-section .wrapper-small {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .contact-cta-section .wrapper-small > .c-col-4 {
    display: flex;
  }
  .contact-cta-section .wrapper-small > .c-col-4 > .text-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .contact-cta-section .wrapper-small > .c-col-4 .inner-button {
    margin-top: auto;
    align-self: flex-start;
  }
  @media (max-width: 767px) {
  .contact-cta-section .wrapper-small > .c-col-4 .inner-button {
    margin-top: 0;
  }
  }
  .cll-form-guard {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .cll-turnstile {
    margin: 24px 0 8px;
    min-height: 65px;
  }
  /* FP lead form on the CF7 look. The source toggled .focus with JS; here :focus-within and a filled control
     (placeholder=" ") float the label. Label + underline anchor to the control box (p.lead__box), so an error tip
     below it never moves them. */
  .cll-form .lead__box {
    position: relative;
  }
  .cll-form .field-wrap:after,
  .cll-form .message-wrap:after,
  .cll-form form > div:before {
    content: none;
  }
  .cll-form .lead__box:after,
  .cll-form .lead__box:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    pointer-events: none;
  }
  .cll-form .lead__box:after {
    right: 0;
    background: #ffffff29;
    transition: background 0.3s;
  }
  .cll-form .lead__box:hover:after {
    background: #ffffff52;
  }
  .cll-form .lead__box:before {
    z-index: 1;
    width: 0;
    background: var(--clr-white);
    transition: width 0.4s;
  }
  .cll-form .lead__box:focus-within:before {
    width: 100%;
  }
  .cll-form .lead__control {
    width: 100%;
    font: inherit;
    font-size: max(1rem, 16px);
    line-height: 1.4;
    padding: 23px 22px;
    color: var(--clr-white);
    border-radius: 0;
    outline: 0;
  }
  .cll-form .lead__control::placeholder {
    color: transparent;
  }
  .cll-form .lead__box:hover .lead__control,
  .cll-form .lead__control:focus {
    background: #ffffff0f;
  }
  .cll-form .lead__label {
    top: 50%;
    left: 22px;
    font-size: 14px;
    line-height: 1.2;
  }
  .cll-form .message-wrap .lead__label {
    top: 26px;
    transform: none;
  }
  .cll-form .lead__box:focus-within .lead__label,
  .cll-form .lead__field.is-filled .lead__label,
  html:not(.js) .cll-form .lead__box:has(.lead__control:not(:placeholder-shown)) .lead__label {
    top: -22px;
    line-height: 1;
    transform: none;
    font-size: 11px;
    text-transform: uppercase;
  }
  .cll-form .lead__control[aria-invalid="true"] {
    box-shadow: inset 0 -1px 0 #e2574c;
  }
  .cll-form .lead__error {
    margin: 10px 0 0;
    color: #e2574c;
    font-size: 13px;
    line-height: 1.4;
  }
  .cll-form .wpcf7-form > .lead__captcha {
    grid-column: 1 / -1;
    min-height: 0;
    margin: -46px 0 0;
    padding: 0;
  }
  .cll-form .wpcf7-form > .lead__captcha:has(.is-interactive, .lead__error:not([hidden])) {
    margin-top: -22px;
  }
  .cll-form .wpcf7-form > .lead__captcha .lead__error {
    margin-top: 0;
  }
  .cll-form .wpcf7-form > .send-wrap {
    margin-bottom: 0;
  }
  .cll-form .lead__submit {
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
  }
  .cll-form .lead__submit .button__label {
    display: inline-block;
    text-box: trim-both cap alphabetic;
  }
  .cll-form .lead__submit[disabled] {
    opacity: 0.6;
    cursor: progress;
  }
  .cll-form .lead__status {
    grid-column: 1 / -1;
    border-left-color: #e2574c;
    background: #e2574c14;
  }
  .contact-row .text-wrapper + .cll-form {
    clear: both;
  }
  .cll-form .lead__success {
    margin: 0 0 20px;
    padding: 20px 24px;
    border-left: 2px solid var(--clr-white);
    background: #ffffff0d;
    color: var(--clr-white);
    font-size: 15px;
    line-height: 1.55;
  }
  .cll-form .lead__optional {
    text-transform: none;
  }
  .cll-form__consent,
  .cll-form__recaptcha-notice,
  .contact-row .text-wrapper p,
  .contact-cta-section p {
    text-wrap: pretty;
  }
  .contact-row h2.heading-size-3 {
    text-wrap: balance;
  }
  /* honeypot: the CF7 field padding above must not reach it (layout.css .lead__trap keeps it off-screen, 1px) */
  .cll-form .lead__trap > * {
    visibility: hidden;
    padding: 0;
    inline-size: 1px;
    block-size: 1px;
  }
}

/* one image only (Sten 2026-11-13): a taller crop so the column matches the form's height */
@media (min-width: 992px) {
  .contact-image-col .single-image:only-child img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 58% 50%;
  }
}
