@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

.lgdms-form-wrapper {
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
  width: 100%;
}

.lgdms-form-wrapper * {
  box-sizing: border-box;
}

.lgdms-form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

.lgdms-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -8px;
}

.lgdms-col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 8px;
}

.lgdms-col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 8px;
}

.lgdms-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.lgdms-required {
  color: #ef4444;
  margin-left: 2px;
}

.lgdms-input {
  width: 100%;
  font-family: 'Figtree', inherit;
  font-size: 14.5px;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  transition: all 0.2s ease-in-out;
}

.lgdms-input::placeholder {
  color: #94a3b8;
}

.lgdms-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.lgdms-textarea {
  min-height: 115px;
  resize: vertical;
}

.lgdms-select-wrapper {
  position: relative;
}

.lgdms-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}

.lgdms-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.lgdms-optional-tag {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.lgdms-connect-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lgdms-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.lgdms-hidden-radio {
  display: none;
}

.lgdms-pill-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  margin-left: auto;
  position: relative;
  transition: all 0.2s ease;
}

.lgdms-pill.lgdms-pill-active {
  border-color: #10b981;
  background-color: #f0fdf4;
  color: #065f46;
}

.lgdms-pill.lgdms-pill-active .lgdms-pill-dot {
  border-color: #10b981;
  background-color: #10b981;
  box-shadow: inset 0 0 0 2.5px #ffffff;
}

.lgdms-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #f97316;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 13px 24px;
  font-family: 'Figtree', inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.lgdms-submit-btn:hover {
  background-color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
}

.lgdms-submit-btn:active {
  transform: translateY(0);
}

.lgdms-privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.lgdms-privacy-note svg {
  color: #0f172a;
  flex-shrink: 0;
}

.lgdms-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.lgdms-recaptcha-col {
  display: flex;
  justify-content: flex-start;
  margin-top: 2px;
  margin-bottom: 4px;
}

.lgdms-form-response {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.lgdms-form-response.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.lgdms-form-response.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Responsividad */
@media (max-width: 640px) {
  .lgdms-col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .lgdms-connect-pills {
    grid-template-columns: 1fr;
  }
  .lgdms-form-card {
    padding: 20px 16px;
  }
}
