/* =========================================================
   TechSky Media — Shared Lead / Enquiry Form
   Used on: contact.php, index.php, blog.php, post.php
========================================================= */
.techsky-lead-form {
  position: relative;
  background: #fff;
  color: var(--color-text, #0B1F33);
  border-radius: 20px;
  padding: 30px 32px;
  box-shadow: 0 24px 60px rgba(6, 33, 61, .12), 0 2px 8px rgba(6, 33, 61, .06);
  border: 1px solid rgba(11, 31, 51, .06);
}

.techsky-lead-form--dark {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
}

.techsky-lead-form .tlf-title {
  font-size: 1.2rem;
  margin: 0 0 6px;
  line-height: 1.35;
  color: inherit;
  font-weight: 800
}

.techsky-lead-form .tlf-subtitle {
  font-size: .8rem;
  line-height: 1.6;
  margin: 0 0 20px;
  color: var(--color-text-muted, #5B7186)
}

.techsky-lead-form--dark .tlf-subtitle {
  color: #d9e3f0
}

.tlf-form {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.tlf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important
}

.tlf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.tlf-row>* {
  min-width: 0
}

.tlf-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .74rem;
  font-weight: 700;
  color: inherit
}

.tlf-field>span:first-child {
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .66rem;
  color: var(--color-text-muted, #5B7186)
}

.techsky-lead-form--dark .tlf-field>span:first-child {
  color: rgba(255, 255, 255, .65)
}

.tlf-field>span:first-child i {
  color: var(--color-accent, #FF6B2C);
  font-style: normal;
  margin-left: 2px
}

/* Icon-prefixed input wrapper */
.tlf-input-wrap {
  position: relative;
  display: block
}

.tlf-ic {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .82rem;
  color: var(--color-text-muted, #9AAAB8);
  pointer-events: none;
  transition: color .2s ease;
}

.tlf-ic--top {
  top: 16px;
  transform: none
}

.tlf-field input,
.tlf-field textarea,
.tlf-field select {
  font: inherit;
  font-size: .88rem;
  font-weight: 500;
  border: 1.5px solid var(--color-border, rgba(11, 31, 51, .12));
  border-radius: 11px;
  padding: 12px 14px 12px 38px;
  background: #f8fafc;
  color: #0B1F33;
  width: 100%;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.tlf-field:not(.has-icon) input,
.tlf-field:not(.has-icon) textarea {
  padding-left: 14px
}

.tlf-field input::placeholder,
.tlf-field textarea::placeholder {
  color: #9AAAB8;
  font-weight: 400
}

.tlf-field input:hover,
.tlf-field textarea:hover {
  border-color: rgba(11, 31, 51, .22)
}

.tlf-field input:focus,
.tlf-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-primary, #0069BC);
  box-shadow: 0 0 0 4px rgba(0, 105, 188, .12);
}

.tlf-input-wrap:focus-within .tlf-ic {
  color: var(--color-primary, #0069BC)
}

.techsky-lead-form--dark .tlf-field input,
.techsky-lead-form--dark .tlf-field textarea {
  background: rgba(255, 255, 255, .94);
}

.tlf-field textarea {
  resize: vertical;
  min-height: 88px
}

.tlf-field--textarea .tlf-ic {
  top: 16px;
  transform: none
}

/* Phone field — country-code flag dropdown combined with number input (one unified row) */
.tlf-phone-wrap {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  position: relative;
  border: 1.5px solid var(--color-border, rgba(11, 31, 51, .12));
  border-radius: 11px;
  background: #f8fafc;
  overflow: visible;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.tlf-phone-wrap .tlf-ic {
  position: static !important;
  transform: none;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 14px;
  color: var(--color-text-muted, #9AAAB8)
}

.tlf-phone-wrap:focus-within {
  border-color: var(--color-primary, #0069BC);
  box-shadow: 0 0 0 4px rgba(0, 105, 188, .12);
  background: #fff
}

.tlf-phone-wrap input {
  display: block !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 12px 14px 12px 10px !important;
  margin: 0;
}

.tlf-phone-wrap input:focus {
  background: transparent !important
}

/* Country-code flag dropdown (closed = flag only, open list = flag + name + code) */
.tlf-cc-dd {
  position: relative;
  flex: 0 0 auto;
  border-right: 1.5px solid var(--color-border, rgba(11, 31, 51, .12))
}

.tlf-cc-dd__toggle {
  display: flex !important;
  align-items: center;
  gap: 6px;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 10px 0 8px;
  cursor: pointer;
}

.tlf-cc-dd__toggle span {
  font-size: 1.05rem;
  line-height: 1
}

.tlf-cc-dd__toggle .fi {
  font-size: 1.15rem;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(11, 31, 51, .08)
}

.tlf-cc-dd__toggle i {
  font-size: .62rem;
  color: var(--color-text-muted, #9AAAB8);
  transition: transform .16s ease
}

.tlf-cc-dd.is-open .tlf-cc-dd__toggle i {
  transform: rotate(180deg)
}

.tlf-cc-dd__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: 240px;
  max-width: calc(100vw - 60px);
  background: #fff;
  border: 1px solid rgba(11, 31, 51, .1);
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(6, 33, 61, .18);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary, #0069BC) #e7edf2;
}

.tlf-cc-dd__panel::-webkit-scrollbar {
  width: 6px
}

.tlf-cc-dd__panel::-webkit-scrollbar-track {
  background: #e7edf2;
  border-radius: 99px
}

.tlf-cc-dd__panel::-webkit-scrollbar-thumb {
  background: var(--color-primary, #0069BC);
  border-radius: 99px
}

.tlf-cc-dd__panel[hidden] {
  display: none
}

.tlf-cc-dd__option {
  display: flex !important;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  transition: background .12s ease;
}

.tlf-cc-dd__option:hover,
.tlf-cc-dd__option.is-active {
  background: var(--color-sky-soft, #E6F4FC)
}

.tlf-cc-dd__option-flag {
  font-size: 1.1rem;
  flex: 0 0 auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(11, 31, 51, .08)
}

.tlf-cc-dd__option-name {
  flex: 1;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text, #0B1F33);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.tlf-cc-dd__option-code {
  flex: 0 0 auto;
  font-size: .76rem;
  font-weight: 700;
  color: var(--color-text-muted, #8496A6)
}

/* Services — searchless multi-select dropdown (WebHopers-style) */
.tlf-svc-dd {
  position: relative
}

.tlf-svc-dd__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text, #0B1F33);
  background: #f8fafc;
  border: 1.5px solid var(--color-border, rgba(11, 31, 51, .12));
  border-radius: 11px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.tlf-svc-dd__toggle span {
  color: var(--color-text-muted, #8496A6);
  font-weight: 500
}

.tlf-svc-dd__toggle span.has-selection {
  color: var(--color-text, #0B1F33);
  font-weight: 600
}

.tlf-svc-dd__toggle i {
  font-size: .7rem;
  color: var(--color-text-muted, #9AAAB8);
  transition: transform .18s ease
}

.tlf-svc-dd__toggle:hover {
  border-color: var(--color-primary, #0069BC)
}

.tlf-svc-dd.is-open .tlf-svc-dd__toggle {
  border-color: var(--color-primary, #0069BC);
  box-shadow: 0 0 0 4px rgba(0, 105, 188, .12)
}

.tlf-svc-dd.is-open .tlf-svc-dd__toggle i {
  transform: rotate(180deg)
}

.tlf-svc-dd__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  background: #fff;
  border: 1px solid rgba(11, 31, 51, .1);
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(6, 33, 61, .16);
  max-height: 230px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary, #0069BC) #e7edf2;
}

.tlf-svc-dd__panel::-webkit-scrollbar {
  width: 6px
}

.tlf-svc-dd__panel::-webkit-scrollbar-track {
  background: #e7edf2;
  border-radius: 99px
}

.tlf-svc-dd__panel::-webkit-scrollbar-thumb {
  background: var(--color-primary, #0069BC);
  border-radius: 99px
}

.tlf-svc-dd__panel[hidden] {
  display: none
}

.tlf-svc-dd__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 500;
  color: var(--color-text, #0B1F33);
  transition: background .12s ease, color .12s ease;
}

.tlf-svc-dd__option input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  accent-color: var(--color-accent, #FF6B2C);
  cursor: pointer
}

.tlf-svc-dd__option:hover {
  background: #fff3ec
}

.tlf-svc-dd__option:has(input:checked) {
  background: #fff1e7;
  color: var(--color-accent-dark, #E4551A);
  font-weight: 700
}

.tlf-captcha {
  align-items: flex-start
}

/* Blog sidebars are narrower than the fixed-width reCAPTCHA widget. Keep it
   inside the form and reserve its scaled height so the submit button cannot overlap it. */
.techsky-blog-page .tlf-captcha {
  min-height: 62px;
  overflow: hidden;
}

.techsky-blog-page .tlf-captcha .g-recaptcha {
  transform: scale(.78);
  transform-origin: left top;
}

.tlf-submit {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  padding: 15px 20px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--color-primary, #0069BC), var(--color-sky, #17AEEB));
  box-shadow: 0 14px 30px rgba(0, 105, 188, .28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.tlf-submit i {
  transition: transform .18s ease
}

.tlf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 105, 188, .34)
}

.tlf-submit:hover i {
  transform: translateX(3px)
}

.tlf-submit:active {
  transform: translateY(0)
}

.tlf-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none
}

.tlf-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin: -6px 0 0;
  font-size: .68rem;
  color: var(--color-text-muted, #8496A6);
}

.techsky-lead-form--dark .tlf-privacy {
  color: rgba(255, 255, 255, .55)
}

.tlf-success {
  display: none;
  align-items: center;
  gap: 8px;
  background: #e9f8ee;
  color: #1e7a3f;
  border: 1px solid #bfe8cb;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .78rem;
  font-weight: 600
}

.tlf-success.is-visible {
  display: flex
}

.tlf-error {
  display: none;
  background: #fdecec;
  color: #b3261e;
  border: 1px solid #f6c6c3;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .78rem;
  font-weight: 600
}

/* Compact variant used inside narrower sidebars */
.techsky-lead-form--compact {
  padding: 22px
}

.techsky-lead-form--compact .tlf-title {
  font-size: 1.04rem;
  margin-bottom: 4px
}

.techsky-lead-form--compact .tlf-subtitle {
  margin-bottom: 16px
}

.techsky-lead-form--compact .tlf-form {
  gap: 12px
}

.techsky-lead-form--compact .tlf-row {
  grid-template-columns: 1fr;
  gap: 12px
}

.techsky-lead-form--compact .tlf-field {
  gap: 5px
}

.techsky-lead-form--compact .tlf-field input,
.techsky-lead-form--compact .tlf-field select {
  padding: 10px 12px 10px 36px;
  font-size: .82rem
}

.techsky-lead-form--compact .tlf-field textarea {
  padding: 10px 12px 10px 36px;
  font-size: .82rem;
  min-height: 64px
}

.techsky-lead-form--compact .tlf-svc-dd__toggle {
  padding: 10px 12px;
  font-size: .8rem
}

.techsky-lead-form--compact .tlf-svc-dd__panel {
  max-height: 170px
}

.techsky-lead-form--compact .tlf-phone-wrap .tlf-ic {
  padding-left: 10px;
  font-size: .76rem
}

.techsky-lead-form--compact .tlf-cc-dd__toggle {
  padding: 0 8px 0 6px
}

.techsky-lead-form--compact .tlf-cc-dd__toggle .fi {
  font-size: 1rem
}

.techsky-lead-form--compact .tlf-phone-wrap input {
  padding: 10px 12px 10px 8px !important;
  font-size: .82rem
}

.techsky-lead-form--compact .tlf-cc-dd__panel {
  width: 210px
}

.techsky-lead-form--compact .tlf-submit {
  padding: 12px 16px
}

@media(max-width:700px) {
  .tlf-row {
    grid-template-columns: 1fr
  }

  .techsky-lead-form {
    padding: 24px 22px
  }
}
