/* Contact Form 7 styling to match DG design (card + soft inputs + gradient button)
   Applied inside theme section `.contact-form__box .contact-form` so it works even without custom wrappers. */

/* Optional: a dark section wrapper if you place the form inside a block/section */
.dg-cf7-section {
  background: #1b233a;
  padding: 48px 16px;
}

.dg-cf7-section .dg-cf7-title {
  max-width: 720px;
  margin: 0 auto 22px;
  color: #ffffff;
  text-align: center;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
}

.dg-cf7-section .dg-cf7-subtitle {
  max-width: 720px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
}

/* The form “card” */
.dg-cf7 {
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 22px;
  padding: 34px 34px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

/* --- Theme section integration (no extra markup needed) --- */
.contact-form__box .contact-form .wpcf7 {
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 22px;
  padding: 34px 34px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

@media (max-width: 520px) {
  .contact-form__box .contact-form .wpcf7 {
    padding: 22px 18px 18px;
    border-radius: 18px;
  }
}

.contact-form__box .contact-form .wpcf7 form {
  margin: 0 !important;
}

.contact-form__box .contact-form .wpcf7 p {
  margin: 0 0 14px !important;
}

.contact-form__box .contact-form .wpcf7 p:last-of-type {
  margin-bottom: 0 !important;
}

@media (max-width: 520px) {
  .dg-cf7 {
    padding: 22px 18px 18px;
    border-radius: 18px;
  }
}

/* Layout spacing */
.dg-cf7 .dg-field {
  margin: 0 0 14px;
}
.dg-cf7 .dg-field:last-of-type {
  margin-bottom: 18px;
}

/* Inputs */
.dg-cf7 .wpcf7-form-control:not(.wpcf7-submit),
.contact-form__box .contact-form .wpcf7 .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #111827;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

.dg-cf7 textarea.wpcf7-form-control,
.contact-form__box .contact-form .wpcf7 textarea.wpcf7-form-control {
  height: 120px;
  padding: 14px 18px;
}

.dg-cf7 .wpcf7-form-control::placeholder,
.contact-form__box .contact-form .wpcf7 .wpcf7-form-control::placeholder {
  color: rgba(17, 24, 39, 0.55);
}

.dg-cf7 .wpcf7-form-control:focus,
.contact-form__box .contact-form .wpcf7 .wpcf7-form-control:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
  background: #ffffff;
}

/* Submit button */
.dg-cf7 .wpcf7-submit,
.contact-form__box .contact-form .wpcf7 .wpcf7-submit {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  background: linear-gradient(180deg, #a855f7 0%, #4f46e5 55%, #1d4ed8 100%);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.35);
}

.dg-cf7 .wpcf7-submit:hover,
.contact-form__box .contact-form .wpcf7 .wpcf7-submit:hover {
  filter: brightness(1.03);
}

.dg-cf7 .wpcf7-submit:active,
.contact-form__box .contact-form .wpcf7 .wpcf7-submit:active {
  transform: translateY(1px);
}

/* Validation */
.dg-cf7 .wpcf7-not-valid,
.contact-form__box .contact-form .wpcf7 .wpcf7-not-valid {
  border-color: rgba(239, 68, 68, 0.7) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14) !important;
  background: #fff;
}

.dg-cf7 .wpcf7-not-valid-tip,
.contact-form__box .contact-form .wpcf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
  color: #ef4444;
}

.dg-cf7 .wpcf7-response-output,
.contact-form__box .contact-form .wpcf7 .wpcf7-response-output {
  margin: 16px 0 0;
  border-radius: 10px;
}


