/* Language2Go — public site overlay: lead modal + shared lead form */

.l2g-hidden {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* Shared form fields (used inside modal and on /contacts)            */
/* ------------------------------------------------------------------ */

.l2g-lead-form,
.l2g-lead-success {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}

.l2g-lead-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #60616b;
  margin-bottom: 14px;
}

.l2g-lead-input,
.l2g-lead-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  border: 1px solid #e6e1f0;
  border-radius: 10px;
  background: #fff;
  color: #202229;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 400;
  padding: 12px 14px;
  transition: border-color .25s, background .25s;
}

.l2g-lead-textarea {
  resize: vertical;
  min-height: 84px;
}

.l2g-lead-input:focus,
.l2g-lead-textarea:focus {
  outline: none;
  border-color: #a63cc4;
}

.l2g-lead-input-invalid {
  border-color: #e0507a !important;
}

.l2g-lead-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.l2g-lead-hint {
  margin-top: -6px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #60616b;
}

.l2g-lead-error {
  min-height: 0;
  font-size: 12px;
  color: #e0507a;
  margin: -10px 0 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height .2s, margin .2s;
}

.l2g-lead-error-visible {
  max-height: 40px;
  margin: -6px 0 12px;
}

.l2g-lead-form-error.l2g-lead-error-visible {
  margin: 4px 0 0;
}

.l2g-lead-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.l2g-lead-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #60616b;
  cursor: pointer;
}

.l2g-lead-checkbox input {
  margin-top: 3px;
  flex: none;
}

.l2g-lead-checkbox a {
  color: #7c2d91;
  text-decoration: underline;
}

.l2g-lead-submit {
  appearance: none;
  border: none;
  width: 100%;
  margin-top: 18px;
  border-radius: 10px;
  padding: 14px 24px;
  background: #7c2d91;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s, opacity .25s, transform .15s;
}

.l2g-lead-submit:hover {
  background: #a63cc4;
}

.l2g-lead-submit:active {
  transform: scale(.98);
}

.l2g-lead-submit-loading {
  opacity: .7;
  cursor: default;
}

/* Success state ------------------------------------------------------*/

.l2g-lead-success {
  text-align: center;
  padding: 8px 0 4px;
}

.l2g-lead-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #7c2d91;
  display: flex;
  align-items: center;
  justify-content: center;
}

.l2g-lead-success-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: #202229;
  margin: 0 0 18px;
}

.l2g-lead-success-close {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  background: #7c2d91;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s;
}

.l2g-lead-success-close:hover {
  background: #a63cc4;
}

/* ------------------------------------------------------------------ */
/* Modal                                                               */
/* ------------------------------------------------------------------ */

.l2g-lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 8, 40, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s ease;
}

.l2g-lead-overlay.l2g-lead-open {
  display: flex;
}

.l2g-lead-overlay.l2g-lead-visible {
  opacity: 1;
}

.l2g-lead-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(60, 20, 90, .08);
  padding: 40px 36px 32px;
  box-sizing: border-box;
  color: #202229;
  transform: scale(.94);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}

.l2g-lead-overlay.l2g-lead-visible .l2g-lead-modal {
  transform: scale(1);
  opacity: 1;
}

.l2g-lead-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f6f3fb;
  color: #60616b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s, color .25s;
}

.l2g-lead-close:hover {
  background: #e6e1f0;
  color: #7c2d91;
}

.l2g-lead-title {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 700;
  color: #202229;
  margin: 0 0 6px;
}

.l2g-lead-subtitle {
  font-size: 14px;
  color: #60616b;
  margin: 0 0 24px;
}

@media (max-width: 600px) {
  .l2g-lead-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .l2g-lead-modal {
    max-width: none;
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    padding: 32px 22px 26px;
    transform: translateY(24px);
  }

  .l2g-lead-overlay.l2g-lead-visible .l2g-lead-modal {
    transform: translateY(0);
  }

  .l2g-lead-row {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ */
/* /contacts inline form (sits inside the dark consultation block)    */
/* ------------------------------------------------------------------ */

.contacts .read-consultation form.contact-form-pg {
  display: none !important;
}

.l2g-contacts-form {
  width: 100%;
  max-width: 720px;
  margin-top: 4px;
}

.l2g-contacts-form .l2g-lead-label {
  color: rgba(255, 255, 255, .78);
}

.l2g-contacts-form .l2g-lead-input,
.l2g-contacts-form .l2g-lead-textarea {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
}

.l2g-contacts-form .l2g-lead-input::placeholder,
.l2g-contacts-form .l2g-lead-textarea::placeholder {
  color: rgba(255, 255, 255, .62);
}

.l2g-contacts-form .l2g-lead-input:focus,
.l2g-contacts-form .l2g-lead-textarea:focus {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .6);
}

.l2g-contacts-form .l2g-lead-input-invalid {
  border-color: #ffb4c6 !important;
}

.l2g-contacts-form .l2g-lead-hint {
  color: rgba(255, 255, 255, .62);
}

.l2g-contacts-form .l2g-lead-checkbox {
  color: rgba(255, 255, 255, .72);
}

.l2g-contacts-form .l2g-lead-checkbox a {
  color: #fff;
}

.l2g-contacts-form .l2g-lead-submit {
  background: #fff;
  color: #7c2d91;
}

.l2g-contacts-form .l2g-lead-submit:hover {
  opacity: .92;
  background: #fff;
}

.l2g-contacts-form .l2g-lead-error {
  color: #ffb4c6;
}

.l2g-contacts-form .l2g-lead-success-text {
  color: #fff;
}

.l2g-contacts-form .l2g-lead-success-icon {
  background: rgba(255, 255, 255, .18);
}

@media (max-width: 700px) {
  .l2g-contacts-form .l2g-lead-row {
    grid-template-columns: 1fr;
  }
}
