/*-- -------------------------- -->
<---   Interior Page Header     -->
<--- -------------------------- -*/
/* #int-hero is styled site-wide in root.css — nothing needed here. */

/*-- -------------------------- -->
<---          Contact           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #contact-2320 {
    padding: var(--sectionPadding);
    display: flex;
    flex-direction: column;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
    position: relative;
    z-index: 1;
  }
  #contact-2320 .cs-container {
    width: 100%;
    /* changes to 1280px at desktop */
    max-width: 36.25rem;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #contact-2320 .cs-content {
    text-align: left;
    width: 100%;
  }
  /* wide enough to hold "Book a Free Inspection" on one line at desktop */
  #contact-2320 .cs-title {
    max-width: 20ch;
  }
  #contact-2320 .cs-text {
    margin-bottom: 2rem;
  }
  #contact-2320 .cs-form {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
  }
  #contact-2320 .cs-label {
    /* 14px - 16px */
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 700;
    width: 100%;
    color: var(--headerColor);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.25rem;
  }
  #contact-2320 .cs-input {
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    height: 3.5rem;
    padding: 0 1.25rem;
    color: var(--headerColor);
    background-color: #f6f8fa;
    border: 1px solid #e2e6ea;
    border-radius: 0.5rem;
    /* prevents padding from adding to height and width */
    box-sizing: border-box;
    transition:
      border-color 0.3s,
      background-color 0.3s;
  }
  #contact-2320 .cs-input:hover {
    border-color: var(--primary);
  }
  #contact-2320 .cs-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
  }
  #contact-2320 .cs-input::placeholder {
    color: #7d799c;
    opacity: 0.65;
  }
  /* Browsers add their own inner padding to <select>, so its text sat further
     right than the sibling inputs. Strip the native appearance, draw our own
     chevron, and match the 1.25rem left padding exactly. */
  #contact-2320 select.cs-input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 3rem;
    text-indent: 0;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234e4b66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.125rem;
    transition:
      border-color 0.3s,
      background-color 0.3s,
      color 0.3s;
  }
  #contact-2320 select.cs-input:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffba19' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  }
  #contact-2320 .cs-textarea {
    min-height: 8.5rem;
    padding-top: 1rem;
    margin-bottom: 0.75rem;
    font-family: inherit;
  }
  /* Site-standard button: gold, scales up with a soft glow. No dark wipe.
     transform-origin keeps the scale from nudging it out of the form's left
     edge, and align-self stops the flex row stretching it full width. */
  #contact-2320 .cs-submit {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    /* 46px - 56px */
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-align: center;
    text-decoration: none;
    width: auto;
    min-width: 11rem;
    align-self: flex-start;
    margin: 0.5rem 0 0;
    padding: 0 2rem;
    background-color: var(--primary);
    border: none;
    border-radius: 0.25rem;
    color: #1a1a1a;
    display: inline-block;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transform-origin: left center;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }
  #contact-2320 .cs-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 0 24px 4px rgba(255, 186, 25, 0.45);
  }
  #contact-2320 .cs-submit:active {
    transform: scale(1.02);
    box-shadow: 0 0 16px 2px rgba(255, 186, 25, 0.35);
  }
  #contact-2320 .cs-submit:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
  }

  /* --- Map --- */
  #contact-2320 .cs-map {
    width: 100%;
    max-width: 39.375rem;
    height: 25rem;
    position: relative;
    z-index: 1;
    display: block;
  }
  /* The map fills the whole frame; the service-area bar sits over its bottom
     edge rather than below it, so there is no gap and no floating card. */
  #contact-2320 .cs-iframe-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
  }
  #contact-2320 .cs-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border: 0;
  }
  #contact-2320 .cs-box {
    width: 100%;
    max-width: none;
    /* 16px - 28px top & bottom */
    padding: clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.75rem);
    background-color: #fff;
    /* rounded to match only the map's bottom corners */
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 -8px 24px rgba(16, 33, 60, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 100;
  }
  /* the pin ships black — recolor to brand gold */
  #contact-2320 .cs-icon {
    width: 2rem;
    height: auto;
    flex-shrink: 0;
    display: block;
    filter: brightness(0) saturate(100%) invert(72%) sepia(63%) saturate(1000%)
      hue-rotate(358deg) brightness(103%) contrast(103%);
  }
  #contact-2320 .cs-flex {
    display: flex;
    flex-direction: column;
  }
  #contact-2320 .cs-header {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2em;
    margin: 0 0 0.375rem;
    color: var(--headerColor);
  }
  #contact-2320 .cs-address {
    font-size: clamp(0.875rem, 2.8vw, 1rem);
    line-height: 1.5em;
    margin: 0;
    color: var(--bodyTextColor);
  }

  /* --- Form status message (injected by contact-form.js) --- */
  #cs-form-status {
    width: 100%;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  /* pair the shorter fields two-up */
  #contact-2320 .cs-phone,
  #contact-2320 .cs-services {
    width: calc(50% - 0.375rem);
  }
}
/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #contact-2320 .cs-container {
    max-width: 80rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 3.25rem);
  }
  #contact-2320 .cs-content {
    width: 52%;
    max-width: 39.375rem;
    flex: none;
  }
  #contact-2320 .cs-map {
    width: 44%;
    max-width: 33.875rem;
    height: 34rem;
    flex: none;
    /* map on the left, form on the right */
    order: -1;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #contact-2320 .cs-title,
  body.dark-mode #contact-2320 .cs-label,
  body.dark-mode #contact-2320 .cs-header {
    color: #fff;
  }
  body.dark-mode #contact-2320 .cs-text,
  body.dark-mode #contact-2320 .cs-address {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #contact-2320 .cs-input {
    background-color: var(--medium);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
  }
  body.dark-mode #contact-2320 .cs-input:focus {
    background-color: var(--medium);
    border-color: var(--primary);
  }
  body.dark-mode #contact-2320 .cs-input::placeholder {
    color: var(--bodyTextColorWhite);
    opacity: 0.5;
  }
  /* light chevron so it reads against the dark input */
  body.dark-mode #contact-2320 select.cs-input {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fafbfc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  }
  body.dark-mode #contact-2320 select.cs-input option {
    background-color: var(--medium);
    color: #fff;
  }
  body.dark-mode #contact-2320 .cs-box {
    background-color: var(--medium);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}
