/* Contact Form 7 styles for AERGB Modern */

.wpcf7 {
  color: var(--aergb-text);
}

.wpcf7 form {
  display: grid;
  gap: 1rem;
}

.wpcf7 p {
  margin: 0;
}

.wpcf7 label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--aergb-text);
}

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

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(193, 80, 160, 0.18);
  border-radius: 0.85rem;
  background: var(--aergb-surface);
  color: var(--aergb-text);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wpcf7 textarea {
  min-height: 10rem;
  resize: vertical;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: rgba(193, 80, 160, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(193, 80, 160, 0.12);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--aergb-muted);
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
  accent-color: var(--aergb-primary);
}

.wpcf7 .wpcf7-list-item {
  margin: 0 1rem 0 0;
}

.wpcf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 10rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--aergb-primary);
  border-radius: 999px;
  background: var(--aergb-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--aergb-shadow);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wpcf7 .wpcf7-submit:hover,
.wpcf7 .wpcf7-submit:focus {
  background: var(--aergb-primary-dark);
  border-color: var(--aergb-primary-dark);
  transform: translateY(-1px);
}

.wpcf7 .wpcf7-submit:disabled,
.wpcf7 .submitting .wpcf7-submit {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.wpcf7-spinner {
  margin: 0.75rem 0 0;
}

.wpcf7-not-valid-tip {
  margin-top: 0.35rem;
  color: #b42318;
  font-size: 0.92rem;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border: 1px solid rgba(180, 35, 24, 0.18);
  background: rgba(180, 35, 24, 0.06);
  color: #8a1c12;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid rgba(2, 122, 72, 0.18);
  background: rgba(2, 122, 72, 0.08);
  color: #026747;
}

.wpcf7-response-output {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
}

@media (max-width: 991.98px) {
  .wpcf7 .wpcf7-submit {
    width: 100%;
  }
}
