/* Clear Watch Contact enquiry form — supplied preview styling */
/* ==========================================================
   Clear Watch — Contact page enquiry form (Contact Form 7)
   Add AFTER the existing page stylesheet. Uses existing tokens
   (--navy-900, --gold, --line etc.) and existing .eq-* classes.
   ========================================================== */

/* Form sections */
.eq-form .eq-step-sub .req,
.eq-form .req {
  color: var(--gold-deep);
  font-weight: 850;
}

.eq-group {
  border: 0;
  margin: 0 0 8px;
  padding: 0 0 8px;
  min-width: 0;
}

.eq-group+.eq-group {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.eq-legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0 0 18px;
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

.eq-legend+* {
  clear: both;
}

.eq-group>.eq-legend~* {
  clear: both;
}

.eq-legend .eq-pnum {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-950);
}

.eq-group[hidden],
.eq-field[hidden] {
  display: none !important;
}

/* Field labels — legends for grouped options match existing labels */
fieldset.eq-field {
  border: 0;
  padding: 0;
  min-width: 0;
}

.eq-field>legend {
  display: block;
  padding: 0;
  font-weight: 800;
  color: var(--navy-900);
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.eq-field .wpcf7-form-control-wrap {
  display: block;
}

.eq-input::placeholder,
.eq-textarea::placeholder {
  color: #9aabb8;
}

.eq-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23071c32' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 15px center;
}

/* CF7 radio / checkbox rendered as chips */
.eq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.eq-chips .wpcf7-list-item {
  margin: 0;
  display: inline-flex;
}

.eq-chips label {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.eq-chips input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.eq-chips .wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 30px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.3;
  transition: 0.15s;
}

.eq-chips label:hover .wpcf7-list-item-label {
  border-color: var(--blue-600);
}

.eq-chips input:checked+.wpcf7-list-item-label {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.eq-chips input:focus-visible+.wpcf7-list-item-label {
  outline: 3px solid rgba(8, 115, 180, .35);
  outline-offset: 2px;
}

.eq-chips .wpcf7-checkbox input:checked+.wpcf7-list-item-label::before,
.eq-chips.wpcf7-checkbox input:checked+.wpcf7-list-item-label::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg) translateY(-1px);
}

/* Notes shown for specific enquiry types */
.eq-urgent {
  margin: 0 0 18px;
}

.eq-note-info {
  background: var(--blue-100);
  border-color: #b9dcf0;
  color: var(--ink);
}

/* Consent */
.eq-consent .wpcf7-list-item {
  margin: 0;
}

.eq-consent label {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  cursor: pointer;
}

.eq-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--navy-900);
}

/* Actions */
.eq-actions-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.eq-actions-note a {
  color: var(--navy-900);
  font-weight: 800;
  white-space: nowrap;
}

.eq-actions .wpcf7-submit {
  -webkit-appearance: none;
  appearance: none;
  min-width: 220px;
  min-height: 52px;
  padding: 13px 28px;
  border: 0;
  border-radius: 0;
  color: var(--navy-950) !important;
  background: var(--gold) !important;
  font-family: inherit !important;
  font-size: 0.8rem !important;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: none;
}

.eq-actions .wpcf7-submit:hover {
  background: var(--gold-deep) !important;
}

.eq-actions .wpcf7-submit:focus-visible {
  outline: 3px solid rgba(8, 115, 180, .45);
  outline-offset: 3px;
}

.eq-actions .wpcf7-spinner {
  margin: 0 0 0 10px;
}

.eq-actions .wpcf7-submit:disabled {
  opacity: .6;
  cursor: progress;
}

/* CF7 validation + response messages */
.eq-form .wpcf7-not-valid {
  border-color: #b42318 !important;
}

.eq-form .wpcf7-not-valid-tip {
  display: block;
  color: #b42318;
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 6px;
}

.wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  border-width: 1.5px;
  font-size: 0.9rem;
  font-weight: 600;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #b42318;
  background: #fef3f2;
  color: #7a271a;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  border-color: var(--gold);
  background: #fff4e0;
  color: #5b4300;
}

/* Summary panel additions */
.eq-sumref {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #9fb6c8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.eq-sumref b {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
  text-transform: none;
  font-weight: 700;
}

.eq-summary.sent .badge {
  background: #3ccf8e;
}

/* Success + what happens next */
.eq-done h3:focus {
  outline: none;
}

.eq-next {
  text-align: left;
  margin: 10px auto 0;
  max-width: 520px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.eq-next .eyebrow {
  margin-bottom: 14px;
}

.eq-next ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.eq-next li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.eq-next li .eq-pnum {
  flex: 0 0 auto;
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--gold);
}

.eq-next b {
  display: block;
  color: var(--navy-900);
  font-weight: 850;
  font-size: 0.96rem;
}

.eq-next li span:not(.eq-pnum) {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.eq-done-foot {
  margin-top: 22px !important;
  font-size: 0.92rem;
}

.eq-done-foot a {
  color: var(--navy-900);
  font-weight: 850;
}

#eqCard {
  scroll-margin-top: 100px;
}

/* Mobile: form first, summary after it */
@media (max-width: 960px) {
  .eq-summary {
    order: 0;
  }
}

@media (max-width: 560px) {
  .eq-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }

  .eq-actions .wpcf7-submit {
    width: 100%;
  }

  .eq-sumref {
    flex-direction: column;
  }
}

.wpcf7-radio .wpcf7-list-item>label:before, .wpcf7-checkbox .wpcf7-list-item>label:before {
    top: 12px !important;
    left: 15px !important;
    width: 17px;
    height: 17px;
    border: 2px solid var(--cms-border-color);
}
.wpcf7-radio .wpcf7-list-item>label:after, .wpcf7-checkbox .wpcf7-list-item>label:after
 {
    width: 7px !important;
    height: 7px !important;
    top: 17px !important;
    left: 20px !important;
}
.wpcf7-checkbox .wpcf7-list-item>label:after{
  content:'' !important;
}
.eq-chips .wpcf7-checkbox input:checked+.wpcf7-list-item-label::before, .eq-chips.wpcf7-checkbox input:checked+.wpcf7-list-item-label::before{
  content: "";
    width: 0 !important;
    height: 0 !important;
    border-left: 0px solid var(--gold) !important;
    border-bottom: 0px solid var(--gold) !important;
    transform: rotate(-45deg) translateY(-1px);
}
.wpcf7-checkbox .wpcf7-list-item>label:after{
margin-inline-start: 0 !important;
}
.wpcf7-radio .wpcf7-list-item.active>label:before, .wpcf7-checkbox .wpcf7-list-item.active>label:before {
    border-color: #fff !important;
}
.wpcf7-radio .wpcf7-list-item.active>label:after, .wpcf7-checkbox .wpcf7-list-item.active>label:after
 {
    background-color: #fff !important;
}
/* Plugin/CF7 compatibility */
#eqFormWrap .wpcf7 {
  width: 100%;
}

#eqFormWrap .wpcf7 form {
  margin: 0;
}

#eqFormWrap .wpcf7-form-control-wrap {
  width: 100%;
}

#eqFormWrap .wpcf7-list-item {
  margin: 0;
}

#eqFormWrap .wpcf7-spinner {
  vertical-align: middle;
}

.eq-form .wpcf7-acceptance label {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  cursor: pointer;
}

.eq-form .wpcf7-acceptance input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.eq-done[hidden] {
  display: none !important;
}