/**
 * LT Contact Form frontend design system.
 * Scoped classes reuse the same LT form markup layer used by LT Divi Jobs and
 * LT Find My Tool, but include a self-contained skin so the plugin works even
 * without child-theme CSS.
 */

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

.ltcf {
  --ltcf-yellow: #ffe100;
  --ltcf-bg: #141414;
  --ltcf-panel: rgba(255, 255, 255, 0.026);
  --ltcf-border: rgba(255, 255, 255, 0.12);
  --ltcf-border-strong: rgba(255, 225, 0, 0.56);
  --ltcf-text: rgba(255, 255, 255, 0.93);
  --ltcf-muted: rgba(255, 255, 255, 0.66);
  --ltcf-danger: #ff6a7a;
  --ltcf-success: #82efaa;
  position: relative;
  width: min(var(--ltcf-max-width, 980px), 100%);
  margin-inline: auto;
  padding: clamp(24px, 3.6vw, 42px);
  color: var(--ltcf-text);
  border: 1px solid var(--ltcf-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 225, 0, 0.055), transparent 36%),
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.06), transparent 34%),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    0 55px 135px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ltcf.lt-shadow::after,
.ltcf .lt-shadow::after {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 18px rgba(255, 255, 255, 0.18);
}

.ltcf.lt-glass-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.74), transparent);
  opacity: 0.78;
  pointer-events: none;
}

.ltcf__head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.ltcf__title {
  margin: 0;
  color: var(--ltcf-text);
  font-family: "Conduit ITC Pro", "Conduit ITC", "Conduit", Helvetica, Arial, Lucida, sans-serif;
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.ltcf__subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--ltcf-muted);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.62;
}

.ltcf .lt-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
  position: relative;
  z-index: 3;
}

.ltcf .lt-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ltcf .lt-form__field--full {
  grid-column: 1 / -1;
}

.ltcf .lt-form__field--third {
  grid-column: span 1;
}

.ltcf .lt-form__field label:not(.lt-form__sr-only):not(.lt-form__checkbox):not(.lt-form__file-control) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ltcf .lt-form__sr-only {
  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;
}

.ltcf input[type="text"],
.ltcf input[type="email"],
.ltcf input[type="tel"],
.ltcf input[type="number"],
.ltcf select,
.ltcf textarea {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 15px 16px;
  color: var(--ltcf-text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(20, 20, 20, 0.72);
  box-shadow: none;
  outline: none;
  font: inherit;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ltcf textarea {
  min-height: 146px;
  resize: vertical;
}

.ltcf select {
  appearance: auto;
}

.ltcf input::placeholder,
.ltcf textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.ltcf input:focus,
.ltcf select:focus,
.ltcf textarea:focus {
  border-color: rgba(255, 225, 0, 0.92);
  background: rgba(20, 20, 20, 0.86);
  box-shadow: 0 0 0 1px rgba(255, 225, 0, 0.62);
}

.ltcf .lt-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ltcf-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ltcf .lt-form__checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ltcf-yellow);
}

.ltcf .ltcf-choice-group {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(20, 20, 20, 0.42);
}

.ltcf .ltcf-choice-group legend {
  padding-inline: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.ltcf .lt-form__native-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ltcf .lt-form__file-control {
  display: grid;
  grid-template-columns: max-content 1fr;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(20, 20, 20, 0.72);
  cursor: pointer;
}

.ltcf .lt-form__file-button {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #111;
  background: var(--ltcf-yellow);
  font-weight: 850;
  white-space: nowrap;
}

.ltcf .lt-form__file-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.56);
}

.ltcf .lt-form__file-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.ltcf .lt-form__file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 20px;
  color: #111;
  border-radius: 999px;
  background: var(--ltcf-yellow);
  font-size: 10px;
  font-weight: 900;
}

.ltcf .lt-form__description {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
}

.ltcf .lt-form__message {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.ltcf .lt-form__message--success {
  color: var(--ltcf-success);
  border-color: rgba(130, 239, 170, 0.28);
  background: rgba(130, 239, 170, 0.07);
}

.ltcf .lt-form__message--error {
  color: var(--ltcf-danger);
  border-color: rgba(255, 106, 122, 0.32);
  background: rgba(255, 106, 122, 0.08);
}

.ltcf .lt-form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.ltcf .lt-form__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 56px 14px 26px;
  color: #111 !important;
  border: 0 !important;
  border-radius: 999px;
  background: var(--ltcf-yellow) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(255, 225, 0, 0.22);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transform: none !important;
  transition: box-shadow 180ms ease, filter 180ms ease;
}

.ltcf .lt-form__button::after {
  content: "›";
  position: absolute;
  right: 21px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  color: var(--ltcf-yellow);
  border-radius: 50%;
  background: #111;
  font-size: 22px;
  line-height: 22px;
  text-align: center;
}

.ltcf .lt-form__button:hover,
.ltcf .lt-form__button:focus {
  filter: brightness(1.03);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 28px rgba(255, 225, 0, 0.3);
}

.ltcf .lt-form__button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.ltcf--light {
  --ltcf-bg: #ffffff;
  --ltcf-panel: rgba(0, 0, 0, 0.03);
  --ltcf-border: rgba(0, 0, 0, 0.12);
  --ltcf-text: rgba(0, 0, 0, 0.88);
  --ltcf-muted: rgba(0, 0, 0, 0.62);
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.14);
}

.ltcf--light input[type="text"],
.ltcf--light input[type="email"],
.ltcf--light input[type="tel"],
.ltcf--light input[type="number"],
.ltcf--light select,
.ltcf--light textarea,
.ltcf--light .lt-form__file-control {
  color: #111;
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.035);
}

.ltcf-divi5-preview {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #141414;
  color: #fff;
}

.ltcf-divi5-preview__eyebrow {
  color: #ffe100;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ltcf-divi5-preview__title {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 850;
}

.ltcf-divi5-preview__subtitle,
.ltcf-divi5-preview__meta {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.65);
}

.ltcf-divi5-preview__fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.ltcf-divi5-preview__fields span {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 760px) {
  .ltcf {
    padding: 22px;
    border-radius: 20px;
  }

  .ltcf .lt-form {
    grid-template-columns: 1fr;
  }

  .ltcf .lt-form__actions {
    justify-content: stretch;
  }

  .ltcf .lt-form__button {
    width: 100%;
  }

  .ltcf .lt-form__file-control {
    grid-template-columns: 1fr;
  }

  .ltcf .lt-form__file-button {
    min-height: 42px;
    justify-content: center;
  }
}
