/* =========================================
   CC Underground: Contact Form 7 forms
   Loaded on Home, Contact, About and service pages (only where a form is shown).
   1. Fields and button (all forms, inside .ccu-form)
   2. Home page split layout (.qf-split)
   Plain CSS, px values only.
   ========================================= */

/* ================= CONTACT FORM 7 (inside .ccu-form) ================= */
/* the form layout: two fields per row, underline inputs (Figma) */
.ccu-form .wpcf7-form p {
  display: contents;
}

.ccu-form br {
  display: none;
}

.ccu-form .form-row {
  display: grid;
  grid-template-columns: 288px 288px;
  gap: 21px;
  margin-bottom: 48px;
}

.ccu-form .field {
  display: flex;
  flex-direction: column;
}

.ccu-form .field > label {
  height: 18px;
  margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: #6b7a87;
}

.ccu-form .wpcf7-form-control-wrap {
  position: relative;
  display: block;
}

.ccu-form input[type="text"],
.ccu-form input[type="email"],
.ccu-form input[type="tel"],
.ccu-form select,
.ccu-form textarea {
  display: block;
  width: 100%;
  height: 31px;
  margin: 0;
  padding: 0 0 13px;
  border: 0;
  border-bottom: 1px solid #d5dee6;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  color: #104164;
  transition: border-color 0.2s;
}

.ccu-form input:focus,
.ccu-form select:focus,
.ccu-form textarea:focus {
  border-color: #104164;
}

.ccu-form input::placeholder,
.ccu-form textarea::placeholder {
  color: #9aa8b4;
  opacity: 1;
}

.ccu-form textarea {
  resize: none;
  overflow: hidden;
}

.ccu-form .phone-input {
  display: flex;
  gap: 16px;
}

.ccu-form .phone-input .wpcf7-form-control-wrap:first-child {
  width: 56px;
  flex-shrink: 0;
}

.ccu-form .phone-input .wpcf7-form-control-wrap + .wpcf7-form-control-wrap {
  flex: 1;
  min-width: 0;
}

.ccu-form select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23104164' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0 top 2px / 16px 16px no-repeat;
}

.ccu-form .form-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 69px;
}

/* acceptance checkbox */
.ccu-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.ccu-form .wpcf7-acceptance label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.ccu-form .wpcf7-acceptance input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #104164;
  cursor: pointer;
}

.ccu-form .wpcf7-list-item-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: #6b7a87;
}

/* submit: same blue button as the site, arrow drawn as a background */
.ccu-form .btn-submit {
  width: 141px;
  height: 48px;
  margin: 0;
  padding: 0 46px 0 26px;
  border: 0;
  border-radius: 2px;
  background: #174d78 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") right 24px center / 16px 16px no-repeat;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ccu-form .btn-submit:hover {
  background-color: #1271b5;
}

.ccu-form .btn-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.ccu-form .wpcf7-spinner {
  position: absolute;
  right: 150px;
  top: 50%;
  margin: -12px 0 0;
}

/* validation */
.ccu-form .wpcf7-not-valid {
  border-bottom-color: #d63638 !important;
}

.ccu-form .wpcf7-not-valid-tip {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  line-height: 16px;
  color: #d63638;
}

.ccu-form .wpcf7-acceptance .wpcf7-not-valid-tip {
  white-space: nowrap;
}

.ccu-form .wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #104164;
}

.ccu-form-note {
  font-size: 15px;
  color: #6b7a87;
}

/* Choose a Service: full width row */
.ccu-form .field-service {
  margin-bottom: 48px;
}

/* grey text while "Choose a Service" is still showing */
.ccu-form select:invalid {
  color: #9aa8b4;
}

.ccu-form select option {
  color: #104164;
}


/* ================= CONTACT FORM 7: smaller screens ================= */
@media (max-width: 1240px) {
  .ccu-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .ccu-form .form-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }

  .ccu-form .field-service,
  .qf-split .ccu-form .field-service {
    margin-bottom: 28px;
  }

  .ccu-form .form-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 36px;
  }

  .ccu-form .btn-submit {
    width: 100%;
    text-align: center;
    background-position: right calc(50% - 50px) center;
  }

  .ccu-form .wpcf7-spinner {
    right: 12px;
    top: auto;
    bottom: 12px;
  }
}


/* ================= HOME PAGE: SPLIT FORM ================= */
/* dark blue info panel on the left, Contact Form 7 form on the right */
.qf-split {
  padding: 72px 0;
  background: #fff;
}

.qf-split .qf-box {
  display: flex;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.qf-split .qf-info {
  width: 440px;
  flex-shrink: 0;
  padding: 64px 48px;
  background: #104164;
  color: #fff;
}

.qf-split .qf-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8cc4ec;
}

.qf-split .qf-info h2 {
  margin: 0 0 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.4px;
  color: #fff;
}

.qf-split .qf-info p {
  margin: 0 0 40px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #c9d8e4;
}

.qf-split .qf-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qf-split .qf-points li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.qf-split .qf-points .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.qf-split .qf-points .ic svg {
  width: 20px;
  height: 20px;
}

.qf-split .qf-points small {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #9fb6c9;
}

.qf-split .qf-points a,
.qf-split .qf-points span:not(.ic) {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.qf-split .qf-points a:hover {
  color: #8cc4ec;
}

.qf-split .qf-formside {
  flex: 1;
  min-width: 0;
  padding: 64px 56px;
  background: #fff;
}

.qf-split .qf-formside h3 {
  margin: 0 0 40px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: #104164;
}

/* fields fill the right side (Contact page uses fixed 288px columns) */
.qf-split .ccu-form .form-row {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 40px;
}

.qf-split .ccu-form .field-service {
  margin-bottom: 40px;
}

.qf-split .ccu-form .form-bottom {
  margin-top: 48px;
}

@media (max-width: 1240px) {
  .qf-split .qf-info {
    width: 380px;
  }
}

@media (max-width: 1024px) {
  .qf-split .qf-box {
    flex-direction: column;
  }

  .qf-split .qf-info {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .qf-split {
    padding: 56px 0;
  }

  .qf-split .qf-info,
  .qf-split .qf-formside {
    padding: 32px 20px;
  }

  .qf-split .qf-info h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .qf-split .ccu-form .form-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }

  .qf-split .ccu-form .field-service {
    margin-bottom: 28px;
  }

  .qf-split .ccu-form .form-bottom {
    margin-top: 36px;
  }
}


/* =========================================
   MOBILE LAYOUT: QUOTE FORM (767px and below)
   Kept at the end of this file so it wins over the rules above.
   ========================================= */

@media (max-width: 767px) {

  /* ---------- quote form ---------- */
  .qf-split {
    padding: 0 0 48px;
  }

  .qf-info {
    text-align: center;
    border-radius: 12px;
    padding: 28px 20px;
  }

  .qf-split .qf-eyebrow {
    display: none !important;
  }

  .qf-info h2 {
    font-size: 22px;
    line-height: 30px;
  }

  .qf-info > p {
    font-size: 13px;
    line-height: 21px;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }

  .qf-points {
    text-align: left;
  }

}

/* =========================================
   QUOTE FORM - MOBILE DESIGN (767px and below)
   One card: navy info panel on top (centered title, contact points
   under a thin line), white form underneath, full width Submit.
   ========================================= */
@media (max-width: 767px) {
  .qf-split {
    padding: 0 0 48px;
  }

  .qf-split .container {
    padding: 0 17px;
  }

  .qf-split .qf-box {
    flex-direction: column;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
  }

  .qf-split .qf-info {
    width: 100%;
    padding: 63px 40px 35px;
    border-radius: 0;
    text-align: center;
  }

  .qf-split .qf-info h2 {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 36px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .qf-split .qf-info > p {
    max-width: 320px;
    margin: 0 auto;
    padding-bottom: 23px;
    font-size: 18.5px;
    line-height: 29.5px;
    font-weight: 500;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .qf-split .qf-points {
    gap: 27px;
    margin-top: 40px;
    text-align: left;
  }

  .qf-split .qf-points li {
    align-items: flex-start;
    gap: 20px;
  }

  .qf-split .qf-points .ic {
    width: 69px;
    height: 69px;
    background: #275473;
  }

  .qf-split .qf-points .ic svg {
    width: 26px;
    height: 26px;
  }

  .qf-split .qf-points li > div {
    padding-top: 13px;
  }

  .qf-split .qf-points small {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 20px;
    color: #6e9cc0;
  }

  .qf-split .qf-points a,
  .qf-split .qf-points span:not(.ic) {
    display: block;
    font-size: 17px;
    line-height: 25px;
    font-weight: 700;
  }

  /* address: wraps like the design */
  .qf-split .qf-points li:last-child a,
  .qf-split .qf-points li:last-child span:not(.ic) {
    max-width: 190px;
  }

  /* white form part */
  .qf-split .qf-formside {
    padding: 35px 39px 37px 37px;
  }

  .qf-split .qf-formside h3 {
    margin: 0 0 23px;
    font-size: 30px;
    line-height: 38px;
    font-weight: 500;
    color: #104164;
  }

  .qf-split .ccu-form .form-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }

  .qf-split .ccu-form .field-service {
    margin-bottom: 28px;
  }

  .qf-split .ccu-form .field > label {
    height: auto;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    color: #5b798e;
  }

  .qf-split .ccu-form input[type="text"],
  .qf-split .ccu-form input[type="email"],
  .qf-split .ccu-form input[type="tel"],
  .qf-split .ccu-form select,
  .qf-split .ccu-form textarea {
    height: 38px;
    padding: 0 0 14px;
    border-bottom-color: #ebebeb;
    font-size: 17px;
    line-height: 24px;
    font-weight: 500;
    color: #104164;
  }

  .qf-split .ccu-form select {
    background-position: right 0 top 4px;
  }

  .qf-split .ccu-form .phone-input {
    gap: 16px;
  }

  .qf-split .ccu-form .phone-input .wpcf7-form-control-wrap:first-child {
    width: 64px;
  }

  .qf-split .ccu-form .form-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    margin-top: 30px;
  }

  /* agree text may run a little into the right padding, like the design */
  .qf-split .ccu-form .wpcf7-acceptance label {
    gap: 12px;
    margin-right: -14px;
  }

  .qf-split .ccu-form .wpcf7-acceptance input {
    width: 24px;
    height: 24px;
    accent-color: #4285f4;
  }

  .qf-split .ccu-form .wpcf7-list-item-label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #5b798e;
  }

  .qf-split .ccu-form .btn-submit {
    width: 100%;
    height: 59px;
    padding: 0 26px;
    border-radius: 0;
    background-color: #104164;
    background-position: right calc(50% - 56px) center;
    background-size: 19px 19px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
  }
}

/* ---------- Mobile fix: Request a Quote box ----------
   The email ran past the right edge of the blue card and the
   address wrapped into a thin column. */
@media (max-width: 767px) {
  .qf-split .qf-info {
    padding: 48px 24px 32px;
  }

  .qf-split .qf-points li {
    gap: 14px;
  }

  .qf-split .qf-points .ic {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
  }

  .qf-split .qf-points .ic svg {
    width: 22px;
    height: 22px;
  }

  .qf-split .qf-points li > div {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 7px;
  }

  .qf-split .qf-points a,
  .qf-split .qf-points span:not(.ic) {
    font-size: 16px;
    line-height: 24px;
    overflow-wrap: anywhere;
  }

  .qf-split .qf-points li:last-child a,
  .qf-split .qf-points li:last-child span:not(.ic) {
    max-width: none;
  }
}