.cf-form {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, calc(0.8rem + 1vw), 1.5rem);
}

.cf-field {
  position: relative;
}

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

.cf-field input,
.cf-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  padding: 0.75rem 2.5rem 0.75rem 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(0.8657rem, calc(0.7917rem + 0.3704vw), 1.125rem);
  color: #fff;
}

.cf-field textarea {
  height: 7.5rem;
  resize: none;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: #fff;
  opacity: 1;
  font-size: 0.9em;
}

.cf-field input:focus,
.cf-field textarea:focus {
  border-bottom-color: #fff;
  border-bottom-width: 2px;
}

.cf-icon {
  position: absolute;
  top: 0.75rem;
  right: 0;
  max-width: none;
  pointer-events: none;
}

@media (max-width: 767px) {
  .cf-icon {
    scale: 1.25;
    transform-origin: right center;
  }
}

.cf-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* loader */
/* hide CF7's default grey spinner */
.cf-actions .wpcf7-spinner {
  display: none !important;
}

/* spinner inside the submit button while sending */
.wpcf7 form.submitting .cf-actions .wpcf7-submit {
  color: transparent !important;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' stroke-dasharray='90 150'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 1.4rem 1.4rem !important;
}

.outline-btn {
  display: inline-flex;
  justify-content: center;
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(0.9954rem, calc(0.9583rem + 0.1852vw), 1.125rem);
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 30px;
  min-width: 8rem;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.15s ease;
}

.outline-btn:hover {
  background-color: #fff;
  color: #193285;
}

.outline-btn:active {
  transform: scale(0.97);
}

.wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #fff;
  margin-top: 0.25rem;
}

.wpcf7 form .wpcf7-response-output {
  margin: 1rem 0 0;
  color: #fff;
  font-size: 0.875rem;
}

.pri-cot {
  padding: 14px 60px;
  line-height: 1;
}

@media (max-width: 767px) {
  .pri-cot {
    padding: 14px 0px;
    line-height: 1;
  }

  .cf-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    width: 100%;
  }

  .cf-actions > * {
    flex: 1 1 50%;
    min-width: 0;
  }

  .cf-actions .wpcf7-submit,
  .cf-actions .outline-btn {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* Social Icons Smooth Hover Effect */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease;
}

.social-link:hover {
  box-shadow: 0 8px 18px -2px rgba(25, 50, 133, 0.28);
}

.social-link:active {
  transform: translateY(-1px) scale(1.02);
}

.social-link svg {
  display: block;
  transition: transform 0.25s ease;
}

.social-link .social-bg {
  transition:
    fill 0.28s ease,
    stroke 0.28s ease;
}

.social-link .social-icon {
  transition:
    stroke 0.28s ease,
    fill 0.28s ease;
}

.social-link:hover .social-bg {
  fill: #193285;
  stroke: #193285;
}

.social-link:hover .social-icon {
  stroke: #ffffff;
}

.social-link:hover .social-icon-fill {
  fill: #ffffff;
}

/* cf7 thing */
.cf-form .wpcf7-not-valid {
  border-color: #ff6b6b !important;
}

.cf-form .wpcf7-not-valid-tip {
  color: #ff6b6b;
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

/* cf7 response message (success / error) - same position, softer look */
.wpcf7 form .wpcf7-response-output {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.875rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid #fff;
  border-radius: 10px;
  animation: cf-msg-in 0.35s ease;
}

.wpcf7 form .wpcf7-response-output::before {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

/* success */
.wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(255, 255, 255, 0.2);
  border-left-color: #2ecc71;
}

.wpcf7 form.sent .wpcf7-response-output::before {
  content: "\2713";
  background: #2ecc71;
}

/* errors (validation, acceptance, spam, failed) */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: rgba(255, 255, 255, 0.2);
  border-left-color: #ff6b6b;
}

.wpcf7 form.invalid .wpcf7-response-output::before,
.wpcf7 form.unaccepted .wpcf7-response-output::before,
.wpcf7 form.payment-required .wpcf7-response-output::before,
.wpcf7 form.spam .wpcf7-response-output::before,
.wpcf7 form.failed .wpcf7-response-output::before,
.wpcf7 form.aborted .wpcf7-response-output::before {
  content: "!";
  background: #ff6b6b;
}

/* hidden until CF7 has something to say */
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
  display: none;
}

@keyframes cf-msg-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
