/* AI TEMPLATE STYLE GUIDE
 * Keep selectors, layout, breakpoints and interaction states intact.
 * Concrete color values live only in custom-property definitions.
 * Update the documented BRAND tokens from Color Preferences; keep defaults if absent.
 * Reconcile hover/focus/text contrast and form aliases together when changing a palette.
 * currentColor is inherited semantic color, not a separate palette literal.
 */
:root {
  /* --contact-integration-component-background-tone-01: contact integration component background tone 01. Scope: :root. STRUCTURAL/NEUTRAL: retain layout or neutral role; color may be coordinated with the brand only where appropriate. Exact original color for background in .contact-layout .nap-contact-form #submitter::after. */
  --contact-integration-component-background-tone-01: transparent;
}

/* Color Variables — reuse the site palette; edit these aliases for form-only colors. */

/* Color/theme configuration. Preserve selectors and specificity. */

:root {
  /* --contact-error: error/required-field foreground and border. Scope: :root. FUNCTIONAL: preserve the meaning, readable contrast and the intended alpha/opacity. */
  --contact-error: #a32620;
  /* --contact-error-background: light error-message surface paired with --contact-error. Scope: :root. FUNCTIONAL: preserve the meaning, readable contrast and the intended alpha/opacity. */
  --contact-error-background: #fff2f1;
  /* --contact-success: success-message foreground and border. Scope: :root. FUNCTIONAL: preserve the meaning, readable contrast and the intended alpha/opacity. */
  --contact-success: #157333;
  /* --contact-success-background: light success-message surface paired with --contact-success. Scope: :root. FUNCTIONAL: preserve the meaning, readable contrast and the intended alpha/opacity. */
  --contact-success-background: #eef9f0;
  /* --contact-focus-ring: translucent input focus ring coordinated with --color-blue; preserve alpha; keyboard focus indicator, must remain visible against adjacent surfaces. Scope: :root. FUNCTIONAL: preserve the meaning, readable contrast and the intended alpha/opacity. */
  --contact-focus-ring: rgb(8 105 237 / 16%);
}

/* Additional styles only: the supplied contact-form-template stays unchanged. */

/* Responsive component styling for .contact-section. Preserve selectors and specificity. */

.contact-section {
  padding: 80px 0;
  background: var(--color-soft);
}

/* Responsive component styling for .contact-layout. Preserve selectors and specificity. */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 64px;
  align-items: start;
}

/* Responsive component styling for .contact-introduction. Preserve selectors and specificity. */

.contact-introduction {
  padding-top: 32px;
}

/* Responsive component styling for .contact-introduction h2. Preserve selectors and specificity. */

.contact-introduction h2 {
  max-width: 460px;
  margin: 14px 0 22px;
  font-size: 42px;
  line-height: 1.14;
}

/* Responsive component styling for .contact-introduction > p:last-of-type. Preserve selectors and specificity. */

.contact-introduction > p:last-of-type {
  max-width: 400px;
  font-size: 19px;
  line-height: 1.65;
}

/* Responsive component styling for .contact-service-area. Preserve selectors and specificity. */

.contact-service-area {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--color-decoration);
}

/* Responsive component styling for .contact-service-area .icon. Preserve selectors and specificity. */

.contact-service-area .icon {
  color: var(--color-blue);
  width: 28px;
  height: 28px;
}

/* Responsive component styling for .contact-service-area h3. Preserve selectors and specificity. */

.contact-service-area h3 {
  font-size: 18px;
  line-height: 1.5;
}

/* Responsive component styling for .contact-service-area p. Preserve selectors and specificity. */

.contact-service-area p {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive component styling for .contact-page-intro. Preserve selectors and specificity. */

.contact-page-intro {
  padding: 42px 0 38px;
  background: var(--color-soft);
}

/* Responsive component styling for .contact-page-intro h1. Preserve selectors and specificity. */

.contact-page-intro h1 {
  margin-top: 26px;
  font-size: 56px;
  line-height: 1.1;
}

/* Responsive component styling for .contact-page-intro + .contact-section. Preserve selectors and specificity. */

.contact-page-intro + .contact-section {
  padding-top: 0;
}

/* Responsive component styling for .contact-layout .nap-contact-form. Preserve selectors and specificity. */

.contact-layout .nap-contact-form {
  /* --contact-form-text: contact form text. Scope: .contact-layout .nap-contact-form. BRAND: coordinate with the client Color Preferences; retain the default when absent. */
  --contact-form-text: var(--color-ink);
  /* --contact-form-muted: contact form muted. Scope: .contact-layout .nap-contact-form. BRAND: coordinate with the client Color Preferences; retain the default when absent. */
  --contact-form-muted: var(--color-copy);
  /* --contact-form-placeholder: contact form placeholder; input hint color, distinct from entered text but readable. Scope: .contact-layout .nap-contact-form. BRAND: coordinate with the client Color Preferences; retain the default when absent. */
  --contact-form-placeholder: var(--color-copy);
  /* --contact-form-input: contact form input. Scope: .contact-layout .nap-contact-form. BRAND: coordinate with the client Color Preferences; retain the default when absent. */
  --contact-form-input: var(--color-soft);
  /* --contact-form-primary: contact form primary. Scope: .contact-layout .nap-contact-form. BRAND: coordinate with the client Color Preferences; retain the default when absent. */
  --contact-form-primary: var(--color-green-dark);
  /* --contact-form-primary-hover: contact form primary hover; hover shade paired with the corresponding base color, keep sufficient contrast. Scope: .contact-layout .nap-contact-form. BRAND: coordinate with the client Color Preferences; retain the default when absent. */
  --contact-form-primary-hover: var(--color-green-hover);
  /* --contact-form-primary-border: contact form primary border. Scope: .contact-layout .nap-contact-form. STRUCTURAL/NEUTRAL: retain layout or neutral role; color may be coordinated with the brand only where appropriate. */
  --contact-form-primary-border: var(--color-blue);
  /* --contact-form-border: contact form border. Scope: .contact-layout .nap-contact-form. STRUCTURAL/NEUTRAL: retain layout or neutral role; color may be coordinated with the brand only where appropriate. */
  --contact-form-border: var(--color-decoration);
  /* --contact-form-shadow: contact form shadow; shadow dimensions remain fixed, coordinate only the color/alpha. Scope: .contact-layout .nap-contact-form. STRUCTURAL/NEUTRAL: retain layout or neutral role; color may be coordinated with the brand only where appropriate. */
  --contact-form-shadow: var(--shadow-card);
  /* --contact-form-radius: contact form radius. Scope: .contact-layout .nap-contact-form. STRUCTURAL/NEUTRAL: retain layout or neutral role; color may be coordinated with the brand only where appropriate. */
  --contact-form-radius: var(--radius-card);
  /* --contact-form-blur: contact form blur. Scope: .contact-layout .nap-contact-form. BRAND: coordinate with the client Color Preferences; retain the default when absent. */
  --contact-form-blur: none;
  padding: 32px;
  font: 400 16px/1.5 var(--font-body);
  background: var(--color-card) !important;
  scroll-margin-top: 24px;
}

/* Responsive component styling for .contact-layout .nap-contact-form__title. Preserve selectors and specificity. */

.contact-layout .nap-contact-form__title {
  font-size: 26px;
  line-height: 1.4;
  padding-top: 7px;
  margin-bottom: 26px;
}

/* Responsive component styling for .contact-layout .nap-contact-form__form. Preserve selectors and specificity. */

.contact-layout .nap-contact-form__form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Responsive component styling for .contact-layout .nap-contact-form__form > .nap_cf_customer_email. Preserve selectors and specificity. */

.contact-layout .nap-contact-form__form > .nap_cf_customer_email {
  grid-column: 1 / -1;
}

/* Responsive component styling for .contact-layout .nap-contact-form label. Preserve selectors and specificity. */

.contact-layout .nap-contact-form label {
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .025em;
}

/* Responsive component styling for .contact-layout .nap-contact-form label span. Preserve selectors and specificity. */

.contact-layout .nap-contact-form label span {
  color: var(--contact-error);
}

/* Responsive component styling for .contact-layout .nap-contact-form input,
.contact-layout .nap-contact-form textarea,
.contact-layout .nap-contact-form button. Preserve selectors and specificity. */

.contact-layout .nap-contact-form input,
.contact-layout .nap-contact-form textarea,
.contact-layout .nap-contact-form button {
  font-family: var(--font-body);
}

/* Responsive component styling for .contact-layout .nap-contact-form input,
.contact-layout .nap-contact-form textarea. Preserve selectors and specificity. */

.contact-layout .nap-contact-form input,
.contact-layout .nap-contact-form textarea {
  font-size: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

/* Responsive component styling for .contact-layout .nap-contact-form input. Preserve selectors and specificity. */

.contact-layout .nap-contact-form input {
  min-height: 52px;
}

/* Responsive component styling for .contact-layout .nap-contact-form textarea. Preserve selectors and specificity. */

.contact-layout .nap-contact-form textarea {
  min-height: 144px;
}

/* Higher specificity and !important override the vendor's inline-priority focus rules. */

/* Responsive component styling for .contact-layout .nap-contact-form input:focus,
.contact-layout .nap-contact-form textarea:focus; visible keyboard focus state. Preserve selectors and specificity. */

.contact-layout .nap-contact-form input:focus,
.contact-layout .nap-contact-form textarea:focus {
  border-color: var(--color-blue) !important;
  box-shadow: 0 0 0 4px var(--contact-focus-ring) !important;
}

/* Responsive component styling for .contact-layout .nap-contact-form :is(input,textarea,button):focus-visible; visible keyboard focus state. Preserve selectors and specificity. */

.contact-layout .nap-contact-form :is(input,textarea,button):focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* Responsive component styling for .contact-layout .nap-contact-form__captcha-refresh. Preserve selectors and specificity. */

.contact-layout .nap-contact-form__captcha-refresh {
  min-height: 44px;
  color: var(--color-blue) !important;
  font-size: 14px;
}

/* Responsive component styling for .contact-layout .nap-contact-form__captcha-refresh:hover,
.contact-layout .nap-contact-form__captcha-refresh:focus-visible; pointer hover feedback paired with the base component; visible keyboard focus state. Preserve selectors and specificity. */

.contact-layout .nap-contact-form__captcha-refresh:hover,
.contact-layout .nap-contact-form__captcha-refresh:focus-visible {
  color: var(--color-blue-hover) !important;
}

/* Responsive component styling for .contact-layout .nap-contact-form #submitter. Preserve selectors and specificity. */

.contact-layout .nap-contact-form #submitter {
  min-height: 52px;
  font-size: 18px;
  text-transform: none;
  color: var(--color-white) !important;
  box-shadow: var(--shadow-green);
}

/* Responsive component styling for .contact-layout .nap-contact-form #submitter:disabled; preserve visibility/disabled behavior controlled by HTML or JavaScript. Preserve selectors and specificity. */

.contact-layout .nap-contact-form #submitter:disabled {
  transform: none;
}

/* Responsive component styling for .contact-layout .nap-contact-form__message. Preserve selectors and specificity. */

.contact-layout .nap-contact-form__message {
  overflow-wrap: anywhere;
}

/* Responsive component styling for .contact-layout .nap-contact-form__message .success. Preserve selectors and specificity. */

.contact-layout .nap-contact-form__message .success {
  color: var(--contact-success);
  background: var(--contact-success-background);
  border-color: var(--contact-success);
}

/* Responsive component styling for .contact-layout .nap-contact-form__message .error. Preserve selectors and specificity. */

.contact-layout .nap-contact-form__message .error {
  color: var(--contact-error);
  background: var(--contact-error-background);
  border-color: var(--contact-error);
}

/* Breakpoint/conditional rules: retain thresholds and component behavior. */

@media (min-width: 768px) and (max-width: 1099px) {
  /* Responsive component styling for .contact-layout. Preserve selectors and specificity. */

  .contact-layout {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: 28px;
  }

  /* Responsive component styling for .contact-introduction h2. Preserve selectors and specificity. */

  .contact-introduction h2 {
    font-size: 32px;
  }

  /* Responsive component styling for .contact-layout .nap-contact-form. Preserve selectors and specificity. */

  .contact-layout .nap-contact-form {
    padding: 24px;
  }

  /* Responsive component styling for .contact-layout .nap-contact-form__form > .nap_cf_customer_name. Preserve selectors and specificity. */

  .contact-layout .nap-contact-form__form > .nap_cf_customer_name {
    grid-column: 1;
  }

  /* Responsive component styling for .contact-layout .nap-contact-form__form > .nap_cf_phone_cf. Preserve selectors and specificity. */

  .contact-layout .nap-contact-form__form > .nap_cf_phone_cf {
    grid-column: 2;
  }
}

/* Breakpoint/conditional rules: retain thresholds and component behavior. */

@media (max-width: 767px) {
  /* Responsive component styling for .contact-section. Preserve selectors and specificity. */

  .contact-section {
    padding: 44px 0;
  }

  /* Responsive component styling for .contact-layout. Preserve selectors and specificity. */

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  /* Responsive component styling for .contact-introduction. Preserve selectors and specificity. */

  .contact-introduction {
    padding-top: 0;
  }

  /* Responsive component styling for .contact-introduction h2. Preserve selectors and specificity. */

  .contact-introduction h2 {
    font-size: 32px;
    margin-bottom: 16px;
  }

  /* Responsive component styling for .contact-introduction > p:last-of-type. Preserve selectors and specificity. */

  .contact-introduction > p:last-of-type {
    font-size: 17px;
  }

  /* Responsive component styling for .contact-service-area. Preserve selectors and specificity. */

  .contact-service-area {
    margin-top: 24px;
    padding-top: 20px;
  }

  /* Responsive component styling for .contact-layout .nap-contact-form. Preserve selectors and specificity. */

  .contact-layout .nap-contact-form {
    padding: 22px 18px;
  }

  /* Responsive component styling for .contact-layout .nap-contact-form__form. Preserve selectors and specificity. */

  .contact-layout .nap-contact-form__form {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  /* Responsive component styling for .contact-layout .nap-contact-form__title. Preserve selectors and specificity. */

  .contact-layout .nap-contact-form__title {
    font-size: 24px;
  }

  /* Responsive component styling for .contact-page-intro. Preserve selectors and specificity. */

  .contact-page-intro {
    padding: 28px 0 32px;
  }

  /* Responsive component styling for .contact-page-intro h1. Preserve selectors and specificity. */

  .contact-page-intro h1 {
    font-size: 40px;
  }
}

/* Reduced-motion accessibility: retain the user preference handling. */

@media (prefers-reduced-motion: reduce) {
  /* Responsive component styling for .contact-layout .nap-contact-form :is(input,textarea,button). Preserve selectors and specificity. */

  .contact-layout .nap-contact-form :is(input,textarea,button) {
    transition: none;
  }

  /* Responsive component styling for .contact-layout .nap-contact-form #submitter:hover; pointer hover feedback paired with the base component. Preserve selectors and specificity. */

  .contact-layout .nap-contact-form #submitter:hover {
    transform: none;
  }
}

/* Responsive component styling for .contact-page .final-cta. Preserve selectors and specificity. */

.contact-page .final-cta {
  margin-top: 0;
}

/* Keep the supplied package intact: override its discrete gradient swap here. */

/* Responsive component styling for .contact-layout .nap-contact-form #submitter. Preserve selectors and specificity. */

.contact-layout .nap-contact-form #submitter {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg,var(--contact-form-primary),var(--contact-form-primary-hover)) !important;
  transform: none;
  box-shadow: var(--shadow-green);
  transition: transform var(--transition),box-shadow var(--transition),opacity var(--transition);
}

/* Responsive component styling for .contact-layout .nap-contact-form #submitter::before. Preserve selectors and specificity. */

.contact-layout .nap-contact-form #submitter::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg,var(--contact-form-primary-hover),var(--contact-form-primary));
  opacity: 0;
  transition: opacity var(--transition);
}

/* Responsive component styling for .contact-layout .nap-contact-form #submitter::after. Preserve selectors and specificity. */

.contact-layout .nap-contact-form #submitter::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(var(--hover-lift) + 1px);
  background: var(--contact-integration-component-background-tone-01);
}

/* Responsive component styling for .contact-layout .nap-contact-form #submitter:not(:disabled):not([aria-busy=true]):focus-visible::before; visible keyboard focus state; preserve visibility/disabled behavior controlled by HTML or JavaScript. Preserve selectors and specificity. */

.contact-layout .nap-contact-form #submitter:not(:disabled):not([aria-busy=true]):focus-visible::before {
  opacity: 1;
}

/* Responsive component styling for .contact-layout .nap-contact-form__captcha-refresh. Preserve selectors and specificity. */

.contact-layout .nap-contact-form__captcha-refresh {
  transition: color var(--transition);
}

/* Breakpoint/conditional rules: retain thresholds and component behavior. */

@media (hover:hover) and (pointer:fine) {
  /* Responsive component styling for .contact-layout .nap-contact-form #submitter:not(:disabled):not([aria-busy=true]):hover; pointer hover feedback paired with the base component; preserve visibility/disabled behavior controlled by HTML or JavaScript. Preserve selectors and specificity. */

  .contact-layout .nap-contact-form #submitter:not(:disabled):not([aria-busy=true]):hover {
    transform: translateY(calc(-1 * var(--hover-lift)));
  }

  /* Responsive component styling for .contact-layout .nap-contact-form #submitter:not(:disabled):not([aria-busy=true]):hover::before; pointer hover feedback paired with the base component; preserve visibility/disabled behavior controlled by HTML or JavaScript. Preserve selectors and specificity. */

  .contact-layout .nap-contact-form #submitter:not(:disabled):not([aria-busy=true]):hover::before {
    opacity: 1;
  }

  /* Responsive component styling for .contact-layout .nap-contact-form #submitter:not(:disabled):not([aria-busy=true]):active; preserve visibility/disabled behavior controlled by HTML or JavaScript. Preserve selectors and specificity. */

  .contact-layout .nap-contact-form #submitter:not(:disabled):not([aria-busy=true]):active {
    transform: none;
  }
}

/* Responsive component styling for .contact-layout .nap-contact-form #submitter:is(:disabled,[aria-busy=true]); preserve visibility/disabled behavior controlled by HTML or JavaScript. Preserve selectors and specificity. */

.contact-layout .nap-contact-form #submitter:is(:disabled,[aria-busy=true]) {
  transform: none;
  transition: none;
}

/* Responsive component styling for .contact-layout .nap-contact-form #submitter:is(:disabled,[aria-busy=true])::before; preserve visibility/disabled behavior controlled by HTML or JavaScript. Preserve selectors and specificity. */

.contact-layout .nap-contact-form #submitter:is(:disabled,[aria-busy=true])::before {
  opacity: 0;
  transition: none;
}

/* Responsive component styling for .contact-layout .nap-contact-form #submitter:is(:disabled,[aria-busy=true])::after; preserve visibility/disabled behavior controlled by HTML or JavaScript. Preserve selectors and specificity. */

.contact-layout .nap-contact-form #submitter:is(:disabled,[aria-busy=true])::after {
  pointer-events: none;
}

/* Reduced-motion accessibility: retain the user preference handling. */

@media (prefers-reduced-motion:reduce) {
  /* Responsive component styling for .contact-layout .nap-contact-form #submitter:hover,
 .contact-layout .nap-contact-form #submitter:focus-visible; pointer hover feedback paired with the base component; visible keyboard focus state. Preserve selectors and specificity. */

  .contact-layout .nap-contact-form #submitter:hover,
 .contact-layout .nap-contact-form #submitter:focus-visible {
    transform: none !important;
  }
}

/* Native buttons also need the retention layer to overlap their border box. */

/* Responsive component styling for .contact-layout .nap-contact-form #submitter. Preserve selectors and specificity. */

.contact-layout .nap-contact-form #submitter {
  overflow: visible;
}

/* Responsive component styling for .contact-layout .nap-contact-form #submitter::after. Preserve selectors and specificity. */

.contact-layout .nap-contact-form #submitter::after {
  top: 0;
  bottom: calc(-1 * (var(--hover-lift) + 2px));
  height: auto;
  border-radius: inherit;
}
