/*
 * ACTOPIM live form — theme-native presentation.
 * The connector prints its own <style> inside the shortcode output, so every
 * rule here is scoped with #main to win by specificity instead of !important.
 */
#main .actopim-form-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#main .actopim-form-title {
  margin: 0 0 8px;
  color: var(--blue-ink);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
}

#main .actopim-form-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

#main .actopim-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

#main .actopim-form-wrap .actopim-form-group {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
  min-width: 0;
}

/* Paired fields in the contact form; any unlisted field keeps the full row. */
#main .actopim-form-wrap .actopim-form-group:is(
  :has(> input[name="full_name"]),
  :has(> input[name="company_name"]),
  :has(> input[name="email"]),
  :has(> input[name="phone"])
) {
  grid-column: span 1;
}

#main .actopim-form-wrap .actopim-form-group > label:not(.actopim-checkbox-item):not(.actopim-radio-item) {
  display: block;
  margin: 0;
  color: #334469;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
}

#main .actopim-form-wrap .actopim-form-required {
  margin-left: 3px;
  color: var(--cyan);
  font-weight: 700;
}

#main .actopim-form-wrap .actopim-form-group :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  textarea,
  select
) {
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--blue-ink);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .1s, box-shadow .1s, background .1s;
}

#main .actopim-form-wrap .actopim-form-group :is(input, textarea)::placeholder {
  color: #a3aec4;
  opacity: 1;
}

#main .actopim-form-wrap .actopim-form-group :is(input, textarea, select):focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(107, 145, 173, .15);
}

#main .actopim-form-wrap .actopim-form-group :is(input, textarea, select):user-invalid {
  border-color: #c58f88;
  box-shadow: 0 0 0 4px rgba(197, 143, 136, .12);
}

#main .actopim-form-wrap .actopim-form-group textarea {
  min-height: 138px;
  resize: vertical;
}

#main .actopim-form-wrap .actopim-form-group select {
  appearance: none;
  padding-right: 38px;
  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 1.5 6 6.5l5-5' fill='none' stroke='%235c6b8a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* Consent rows: the connector repeats its own group label above each checkbox. */
#main .actopim-form-wrap .actopim-form-group > label:not(.actopim-checkbox-item):not(.actopim-radio-item):has(+ .actopim-checkbox-item) {
  display: none;
}

#main .actopim-form-wrap .actopim-checkbox-list,
#main .actopim-form-wrap .actopim-radio-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#main .actopim-form-wrap .actopim-checkbox-item,
#main .actopim-form-wrap .actopim-radio-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  font-weight: 400;
  cursor: pointer;
}

#main .actopim-form-wrap .actopim-checkbox-item input,
#main .actopim-form-wrap .actopim-radio-item input {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

#main .actopim-form-wrap .actopim-checkbox-item > span,
#main .actopim-form-wrap .actopim-radio-item > span {
  min-width: 0;
}

#main .actopim-form-wrap .actopim-checkbox-item > span > small {
  display: inline !important; /* Override the connector's inline display:block. */
  margin-inline-start: .375rem;
  color: #8a97b1 !important;
  font-size: 10.5px;
  font-weight: 400;
}

#main .actopim-form-wrap .actopim-form-submit {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--button-fill, #294e87);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background .09s, box-shadow .09s, transform .09s var(--ease);
}

#main .actopim-form-wrap .actopim-form-submit::after {
  width: .48em;
  height: .48em;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

#main .actopim-form-wrap .actopim-form-submit:hover {
  background: var(--button-hover, #203e6d);
  color: #fff;
  transform: translateY(-1px);
}

#main .actopim-form-wrap .actopim-form-submit:active {
  transform: none;
}

#main .actopim-form-wrap .actopim-form-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

#main .actopim-form-wrap .actopim-form-submit:focus-visible {
  outline: 2px solid #5275a4;
  outline-offset: 3px;
}

#main .actopim-form-wrap .actopim-form-message {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.55;
}

#main .actopim-form-wrap .actopim-form-message.success {
  display: block;
  border: 1px solid #cfe6d9;
  background: #eef7f1;
  color: #2f6b4f;
}

#main .actopim-form-wrap .actopim-form-message.error {
  display: block;
  border: 1px solid #f0d5d0;
  background: #fdf1f0;
  color: #8f3c33;
}

#main .actopim-form-wrap .actopim-form-note {
  margin-top: 10px;
  color: #8a97b1;
  font-size: 10.5px;
  line-height: 1.5;
}

/* Product picker used by some ACTOPIM forms. */
#main .actopim-form-wrap .actopim-product-dropdown-toggle {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--blue-ink);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .1s, box-shadow .1s;
}

#main .actopim-form-wrap .actopim-product-dropdown-toggle:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(107, 145, 173, .15);
}

#main .actopim-form-wrap .actopim-product-dropdown-text {
  flex: 1;
  min-width: 0;
  color: var(--blue-ink);
  text-align: left;
}

#main .actopim-form-wrap .actopim-product-dropdown-icon {
  flex: none;
  color: #6f7e95;
}

#main .actopim-form-wrap .actopim-product-dropdown-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(20, 35, 55, .12);
}

#main .actopim-form-wrap .actopim-product-search {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--blue-ink);
  font: inherit;
  font-size: 12.5px;
}

#main .actopim-form-wrap .actopim-product-search:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(107, 145, 173, .15);
}

#main .actopim-form-wrap .actopim-product-option {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .1s, background .1s;
}

#main .actopim-form-wrap .actopim-product-option:hover {
  border-color: var(--cyan);
  background: #f5f8fb;
}

#main .actopim-form-wrap .actopim-product-option input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--blue);
}

#main .actopim-form-wrap .actopim-product-name {
  color: var(--blue-ink);
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 600;
}

#main .actopim-form-wrap .actopim-product-meta,
#main .actopim-form-wrap .actopim-product-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

/* The connector form sits inside the contact page's own form card. */
.acto-native.contact-page #iletisim-formu .actopim-form-wrap {
  margin-top: 26px;
}

@media (max-width: 700px) {
  #main .actopim-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  #main .actopim-form-wrap .actopim-form-group,
  #main .actopim-form-wrap .actopim-form-group:is(
    :has(> input[name="full_name"]),
    :has(> input[name="company_name"]),
    :has(> input[name="email"]),
    :has(> input[name="phone"])
  ) {
    grid-column: 1 / -1;
  }
}
