/* ══════════════════════════════════════════
   CONTACT FORM BLOCK
══════════════════════════════════════════ */
.cform-section {
  padding: 100px 0;
  background: #f7f8fa;
  overflow: hidden;
}

.wpcf7 form.failed .wpcf7-response-output{
	margin: 0;
}

.wpcf7 form.invalid .wpcf7-response-output{
	font: var(--body-s);
	margin: 0;
}

/* Header */
.cform-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.cform-label {
  display: inline-block;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.cform-title {
  font: var(--h2);
  color: var(--black);
  text-transform: uppercase;
  line-height: 1.05;
}

.cform-divider {
  display: block;
  margin: 20px auto 20px;
}

.cform-desc {
  color: #555;
  line-height: 1.7;
}

/* Form wrapper */
.cform-wrap {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 56px 64px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Native form rows */
.cform-row {
  margin-bottom: 24px;
}

.cform-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cform-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cform-field-label {
  color: #444;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.req {
  color: var(--red);
}

.cform-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font: var(--body-m);
  color: var(--black);
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none;
}

.cform-input::placeholder {
  color: #b0b0b0;
}

.cform-input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(4, 157, 191, 0.08);
}

.cform-select {
  cursor: pointer;
  background-image: 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' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.cform-textarea {
  resize: vertical;
  min-height: 140px;
}

/* Footer row */
.cform-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cform-privacy {
  color: #999;
  line-height: 1.6;
  max-width: 360px;
}

.cform-privacy a {
  color: var(--blue);
  text-decoration: none;
}

.cform-privacy a:hover {
  text-decoration: underline;
}

.cform-submit {
  flex-shrink: 0;
  gap: 10px;
}

/* CF7 styles */
.cform-cf7 .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cform-cf7 input,
.cform-cf7 select,
.cform-cf7 textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font: var(--body-m);
  color: var(--black);
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cform-cf7 input:focus,
.cform-cf7 select:focus,
.cform-cf7 textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(4, 157, 191, 0.08);
}

.cform-cf7 input[type="submit"] {
  width: auto;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px 32px;
  font: var(--body-btn);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.cform-cf7 input[type="submit"]:hover {
  background: #0389a6;
  transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cform-wrap {
    padding: 48px 48px;
  }
}

@media (max-width: 768px) {
  .cform-section {
    padding: 80px 0;
  }
  .cform-wrap {
    padding: 36px 28px;
    border-radius: 16px;
  }
  .cform-row--2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cform-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .cform-submit {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cform-section {
    padding: 60px 0;
  }
  .cform-wrap {
    padding: 28px 20px;
  }
}