/* =========================================
   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;
  }
}