/* Contact Form 7 — v2 form tasarımı ile birebir uyum */

.hero-form-shell .hidden-fields-container,
.form-shell .hidden-fields-container,
.wpcf7 .hidden-fields-container {
  display: none !important;
  visibility: hidden;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
}

.hero-form-shell > .wpcf7,
.form-shell > .wpcf7 {
  display: block;
  margin: 0;
}

.hero-form-shell > .wpcf7 .screen-reader-response,
.form-shell > .wpcf7 .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero-form-shell > .wpcf7 .wpcf7-form {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  max-height: none;
  overflow: visible;
  backdrop-filter: none;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* CF7 otomatik <p>/<br> sarmalayıcılarını görünmez yap */
.hero-form-shell .wpcf7-form > p,
.form-shell .wpcf7-form > p,
.form-shell .wpcf7-form .form__row > p {
  margin: 0;
  display: contents;
}

.hero-form-shell .wpcf7-form br,
.form-shell .wpcf7-form br {
  display: none;
}

.hero-form-shell .wpcf7-form > p:has([type="submit"]),
.form-shell .wpcf7-form > p:has([type="submit"]) {
  display: block;
  margin: 0;
}

.form-shell .form__col > p {
  display: contents;
  margin: 0;
}

.form-shell > .wpcf7 .wpcf7-form.form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}

.hero-form-shell .wpcf7-form-control-wrap,
.form-shell .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Hero ön kayıt — alanlar */
.hero-form-shell .hero-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}

.hero-form-shell .hero-form__field span {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--brand-blue-dark);
}

.hero-form-shell .hero-form__field input,
.hero-form-shell .hero-form__field select,
.hero-form-shell .hero-form__field .wpcf7-form-control {
  width: 100%;
  padding: 0.62rem 0.8rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--dark);
  background: var(--cream);
  border: 1px solid rgba(43, 95, 190, 0.14);
  border-radius: 10px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.hero-form-shell .hero-form__field input::placeholder {
  color: #9aa8bc;
}

.hero-form-shell .hero-form__field input:focus,
.hero-form-shell .hero-form__field select:focus,
.hero-form-shell .hero-form__field .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(43, 95, 190, 0.15);
}

.hero-form-shell .hero-form__field select,
.hero-form-shell .hero-form__field select.wpcf7-form-control {
  cursor: pointer;
  appearance: none;
  background-color: var(--cream);
  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 fill='%235A6B85' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
}

.hero-form-shell .wpcf7-form .hero-form__submit,
.hero-form-shell .wpcf7-form input[type="submit"].hero-form__submit {
  width: 100%;
  margin-top: 0.15rem;
  padding-block: 0.72rem;
  font-size: 0.9rem;
  cursor: pointer;
}

/* İletişim CTA formu */
.form-shell .form__row {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.form-shell .form__row--split {
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-shell .form__col {
  min-width: 0;
}

.form-shell .form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-shell .form__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.03em;
}

.form-shell .form__req {
  color: var(--brand-orange);
}

.form-shell .form__input,
.form-shell .form__field .wpcf7-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  box-sizing: border-box;
}

.form-shell .form__input::placeholder,
.form-shell .wpcf7-form-control::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.form-shell .form__input:focus,
.form-shell .form__field .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--brand-orange);
  background: rgba(255, 255, 255, 0.12);
}

.form-shell .form__select,
.form-shell select.wpcf7-form-control {
  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 fill='%23ffffff60' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.form-shell .form__select option,
.form-shell select option {
  background: var(--brand-blue-dark);
  color: #fff;
}

.form-shell .form__textarea,
.form-shell textarea.wpcf7-form-control {
  resize: vertical;
  min-height: 90px;
}

.form-shell .wpcf7-form input[type="submit"].btn--full {
  width: 100%;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  margin-top: 0.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.form-shell .wpcf7-form input[type="submit"].btn--full::after {
  font-family: "Font Awesome 6 Free", sans-serif;
  font-weight: 900;
  content: "\f061";
  margin-left: 0.35rem;
  font-size: 0.95em;
}

/* CF7 varsayılan kutularını gizle / tema mesajları */
.hero-form-shell .wpcf7-spinner,
.form-shell .wpcf7-spinner {
  margin: 0.5rem auto 0;
  display: block;
}

.hero-form-shell .wpcf7-not-valid-tip,
.form-shell .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #fca5a5;
  margin-top: 0.35rem;
}

.hero-form-shell .wpcf7-response-output,
.form-shell .wpcf7-response-output {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
  min-height: 1.4em;
}

.hero-form-shell .wpcf7-response-output {
  color: var(--brand-blue-dark);
  font-size: 0.78rem;
  margin-top: 0.65rem;
}

.hero-form-shell .wpcf7-response-output.wpcf7-mail-sent-ok {
  color: #1a7a4a;
}

.hero-form-shell .wpcf7-response-output.wpcf7-validation-errors,
.hero-form-shell .wpcf7-response-output.wpcf7-mail-sent-ng {
  color: #c0392b;
}

.form-shell .wpcf7-response-output {
  color: rgba(255, 255, 255, 0.65);
}

.form-shell .wpcf7-response-output.wpcf7-mail-sent-ok {
  color: #6ee7b7;
}

.form-shell .wpcf7-response-output.wpcf7-validation-errors,
.form-shell .wpcf7-response-output.wpcf7-mail-sent-ng {
  color: #fca5a5;
}

.hero-form-shell .wpcf7-form.sent .hero-form__submit,
.form-shell .wpcf7-form.sent input[type="submit"] {
  opacity: 0.85;
  pointer-events: none;
}

.hero-form-shell .wpcf7-form.invalid .wpcf7-form-control.wpcf7-not-valid,
.form-shell .wpcf7-form.invalid .wpcf7-form-control.wpcf7-not-valid {
  border-color: #fca5a5 !important;
}

.oda-form-fallback {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.form-shell .oda-form-fallback {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 640px) {
  .form-shell .form__row--split {
    grid-template-columns: 1fr;
  }
}
