/* Consultation form on off-plan project pages. Same markup and CRM flow as the blog form. */
.op-lead {
  margin-top: 8px;
  padding: 22px 18px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-card-lg);
  background: var(--bg-card);
  scroll-margin-top: 20px;
}

.op-lead .tdb-form-note {
  margin: 6px 0 0;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.55;
}

.op-lead .tdb-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 15px;
}

.op-lead .tdb-field {
  display: grid;
  gap: 8px;
  line-height: normal;
}

.op-lead .tdb-phone {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 8px;
  direction: ltr;
}

/* 16px keeps iPhones from zooming into the field. */
.op-lead input,
.op-lead select,
.op-lead textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: normal;
  color: #fff;
  background: var(--bg-elev);
  border: 1px solid var(--hair-strong);
  border-radius: 10px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.op-lead select {
  cursor: pointer;
}

.op-lead textarea {
  min-height: 0;
  resize: vertical;
}

.op-lead input:focus,
.op-lead select:focus,
.op-lead textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(93, 206, 247, 0.15);
}

/* Phone numbers and emails read left to right, also on Arabic pages. */
.op-lead .tdb-phone input,
.op-lead input[type="email"] {
  direction: ltr;
  text-align: left;
}

.op-lead .tdb-err {
  display: none;
  font-style: normal;
  font-size: 13px;
  color: #f87171;
}

.op-lead .tdb-field.bad input,
.op-lead .tdb-field.bad select {
  border-color: #f87171;
}

.op-lead .tdb-field.bad .tdb-err {
  display: block;
}

.op-lead .tdb-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.op-lead .tdb-server-err {
  margin: 0;
  font-size: 13px;
  color: #f87171;
}

.op-lead .tdb-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #0B131B;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s;
}

.op-lead .tdb-send:hover {
  background: #7FD9FA;
}

.op-lead .tdb-send:disabled {
  opacity: 0.7;
  cursor: default;
}

@media (min-width: 768px) {
  .op-lead {
    padding: 28px 26px;
  }
}
