/*
 * ParsKala UI for Contact Form 7
 * Isolated from legacy general.css / parskala.css styles.
 */

.wpcf7 {
  --prk-cf7-primary: #ff3a30;
  --prk-cf7-primary-2: #ff6a00;
  --prk-cf7-text: #2f3035;
  --prk-cf7-muted: #767981;
  --prk-cf7-placeholder: #a1a3a8;
  --prk-cf7-border: #dfe1e5;
  --prk-cf7-border-hover: #b8bbc1;
  --prk-cf7-field-bg: #ffffff;
  --prk-cf7-disabled-bg: #f4f5f7;
  --prk-cf7-danger: #d92d20;
  --prk-cf7-success: #079455;
  --prk-cf7-warning: #f79009;
  --prk-cf7-radius: 12px;
  --prk-cf7-height: 48px;

  width: 100%;
  color: var(--prk-cf7-text);
  direction: rtl;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;
}

.wpcf7,
.wpcf7 *,
.wpcf7 *::before,
.wpcf7 *::after {
  box-sizing: border-box;
}

.wpcf7 .screen-reader-response {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wpcf7 .hidden-fields-container {
  display: none !important;
}

.wpcf7 form {
  position: relative;
  margin: 0;
}

.wpcf7 form > p {
  position: relative;
  margin: 0 0 18px;
}

.wpcf7 form > p:last-of-type {
  margin-bottom: 0;
}

.wpcf7 label {
  display: block;
  margin: 0;
  color: var(--prk-cf7-text);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.9;
  cursor: pointer;
}

.wpcf7 .wpcf7-form-control-wrap {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 7px;
}

.wpcf7 :is(
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="search"],
  input[type="password"],
  select,
  textarea
) {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 1px solid var(--prk-cf7-border);
  border-radius: var(--prk-cf7-radius);
  outline: 0;
  background-color: var(--prk-cf7-field-bg);
  box-shadow: none;
  color: var(--prk-cf7-text);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.wpcf7 :is(
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="search"],
  input[type="password"],
  select
) {
  height: var(--prk-cf7-height);
  padding: 0 14px;
}

.wpcf7 textarea {
  min-height: 148px;
  padding: 12px 14px;
  resize: vertical;
}

.wpcf7 select {
  padding-left: 42px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23767981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 17px;
}

.wpcf7 select[multiple] {
  height: auto;
  min-height: 120px;
  padding: 10px 14px;
  background-image: none;
}

.wpcf7 :is(input, select, textarea)::placeholder {
  color: var(--prk-cf7-placeholder);
  opacity: 1;
}

.wpcf7 :is(
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="search"],
  input[type="password"],
  select,
  textarea
):hover:not(:disabled):not([readonly]) {
  border-color: var(--prk-cf7-border-hover);
}

.wpcf7 :is(
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="search"],
  input[type="password"],
  select,
  textarea
):focus {
  border-color: var(--prk-cf7-primary);
  box-shadow: 0 0 0 3px rgba(255, 91, 14, 0.12);
}

.wpcf7 :is(input, select, textarea):disabled,
.wpcf7 :is(input, select, textarea)[readonly] {
  border-color: #e4e6e9;
  background: var(--prk-cf7-disabled-bg);
  color: #8c8f96;
  cursor: not-allowed;
}

.wpcf7 :is(input[type="email"], input[type="url"], input[type="tel"], input[type="number"]) {
  direction: ltr;
  text-align: right;
  unicode-bidi: plaintext;
}

.wpcf7 input:-webkit-autofill,
.wpcf7 input:-webkit-autofill:hover,
.wpcf7 input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--prk-cf7-text);
  box-shadow: 0 0 0 1000px var(--prk-cf7-field-bg) inset;
  transition: background-color 9999s ease-out 0s;
}

.wpcf7 :is(input[type="checkbox"], input[type="radio"]) {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--prk-cf7-primary);
  vertical-align: middle;
  cursor: pointer;
}

.wpcf7 .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px 18px;
}

.wpcf7 .wpcf7-list-item:last-child {
  margin-left: 0;
}

.wpcf7 .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.wpcf7 .wpcf7-list-item-label {
  line-height: 1.7;
}

.wpcf7 input[type="file"] {
  display: block;
  width: 100%;
  min-height: var(--prk-cf7-height);
  padding: 5px;
  border: 1px dashed var(--prk-cf7-border);
  border-radius: var(--prk-cf7-radius);
  background: #fafafa;
  color: var(--prk-cf7-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.wpcf7 input[type="file"]::file-selector-button {
  height: 36px;
  margin-left: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: #eceef1;
  color: #4b4e55;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.wpcf7 input[type="file"]:hover::file-selector-button {
  background: #e1e3e7;
  color: var(--prk-cf7-text);
}

.wpcf7 :is(input[type="submit"], button[type="submit"], .wpcf7-submit) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: var(--prk-cf7-height);
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: var(--prk-cf7-radius);
  outline: 0;
  background: linear-gradient(110deg, var(--prk-cf7-primary), var(--prk-cf7-primary-2));
  box-shadow: 0 8px 20px rgba(255, 91, 14, 0.16);
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease,
    opacity 160ms ease;
}

.wpcf7 :is(input[type="submit"], button[type="submit"], .wpcf7-submit):hover:not(:disabled) {
  filter: saturate(1.05) brightness(0.98);
  box-shadow: 0 10px 24px rgba(255, 91, 14, 0.22);
  transform: translateY(-1px);
}

.wpcf7 :is(input[type="submit"], button[type="submit"], .wpcf7-submit):active:not(:disabled) {
  box-shadow: 0 5px 14px rgba(255, 91, 14, 0.16);
  transform: translateY(0);
}

.wpcf7 :is(input[type="submit"], button[type="submit"], .wpcf7-submit):focus-visible {
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px rgba(255, 91, 14, 0.22);
}

.wpcf7 :is(input[type="submit"], button[type="submit"], .wpcf7-submit):disabled,
.wpcf7 form.submitting :is(input[type="submit"], button[type="submit"], .wpcf7-submit) {
  opacity: 0.68;
  cursor: wait;
  pointer-events: none;
  transform: none;
}

.wpcf7 .wpcf7-spinner {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 10px 0 0;
  border: 2px solid #e1e3e7;
  border-top-color: var(--prk-cf7-primary);
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  vertical-align: middle;
  animation: prk-cf7-spin 700ms linear infinite;
}

.wpcf7 form.submitting .wpcf7-spinner {
  opacity: 1;
  visibility: visible;
}

.wpcf7 .wpcf7-spinner::before {
  display: none;
}

@keyframes prk-cf7-spin {
  to {
    transform: rotate(360deg);
  }
}

.wpcf7 .wpcf7-not-valid {
  border-color: var(--prk-cf7-danger) !important;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.08) !important;
}

.wpcf7 .wpcf7-not-valid-tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 7px;
  color: var(--prk-cf7-danger);
  font-size: 11px;
  font-weight: 550;
  line-height: 1.8;
}

.wpcf7 .wpcf7-not-valid-tip::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  background: currentColor;
}

.wpcf7 .wpcf7-response-output {
  position: relative;
  display: none;
  min-height: 48px;
  margin: 18px 0 0 !important;
  padding: 12px 16px 12px 42px !important;
  border: 0 !important;
  border-right: 4px solid var(--prk-cf7-warning) !important;
  border-radius: 12px;
  background: #25282d;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.9;
}

.wpcf7 form:is(.invalid, .unaccepted, .payment-required, .spam, .sent, .failed, .aborted) .wpcf7-response-output {
  display: block;
}

.wpcf7 .wpcf7-response-output::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translateY(-50%);
}

.wpcf7 form.sent .wpcf7-response-output {
  border-right-color: var(--prk-cf7-success) !important;
}

.wpcf7 form.sent .wpcf7-response-output::after {
  border: 0;
  border-radius: 50%;
  background: var(--prk-cf7-success);
  box-shadow: 0 0 0 4px rgba(7, 148, 85, 0.18);
}

.wpcf7 form:is(.failed, .aborted, .spam) .wpcf7-response-output {
  border-right-color: var(--prk-cf7-danger) !important;
}

.wpcf7 form:is(.failed, .aborted, .spam) .wpcf7-response-output::after {
  border: 0;
  background: var(--prk-cf7-danger);
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.18);
}

.wpcf7 form:is(.invalid, .unaccepted, .payment-required) .wpcf7-response-output {
  border-right-color: var(--prk-cf7-warning) !important;
}

.wpcf7 form .wpcf7-response-output:empty {
  display: none;
}

.wpcf7 .wpcf7-character-count {
  display: block;
  margin-top: 5px;
  color: var(--prk-cf7-muted);
  font-size: 10px;
  line-height: 1.6;
}

.wpcf7 .wpcf7-character-count.down.too-long {
  color: var(--prk-cf7-danger);
}

.wpcf7 .wpcf7-free-text {
  margin-right: 8px;
}

.wpcf7 .wpcf7-quiz-label {
  display: block;
  margin-bottom: 7px;
  color: var(--prk-cf7-muted);
  font-size: 12px;
}

@media (max-width: 767px) {
  .wpcf7 {
    --prk-cf7-height: 46px;
    --prk-cf7-radius: 11px;
  }

  .wpcf7 form > p {
    margin-bottom: 15px;
  }

  .wpcf7 textarea {
    min-height: 132px;
  }

  .wpcf7 :is(input[type="submit"], button[type="submit"], .wpcf7-submit) {
    width: 100%;
    min-width: 0;
  }

  .wpcf7 .wpcf7-spinner {
    position: absolute;
    left: 14px;
    bottom: 13px;
    margin: 0;
    border-color: rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
  }

  .wpcf7 .wpcf7-list-item {
    display: flex;
    margin-left: 0;
  }

  .wpcf7 .wpcf7-response-output {
    padding: 11px 14px 11px 38px !important;
  }

  .wpcf7 .wpcf7-response-output::after {
    left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wpcf7 *,
  .wpcf7 *::before,
  .wpcf7 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
