.pge-crm-frontend-form,
.pge-crm-success {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid rgba(31, 156, 90, 0.18);
  border-radius: 24px;
  background: #fff;
  padding: 24px;
  color: #263042;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 24px 60px rgba(24, 45, 102, 0.14);
}

.pge-crm-frontend-form *,
.pge-crm-success * {
  box-sizing: border-box;
}

.pge-crm-frontend-form {
  display: grid;
  gap: 18px;
}

.pge-crm-form-error {
  border: 1px solid rgba(196, 49, 49, 0.2);
  border-radius: 18px;
  background: #fff5f5;
  padding: 14px 16px;
  color: #9b1c1c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.pge-crm-form-section {
  display: grid;
  gap: 12px;
}

.pge-crm-form-section > strong {
  color: #182d66;
  font-size: 16px;
  font-weight: 800;
}

.pge-crm-form-options {
  display: grid;
  gap: 10px;
}

.pge-crm-form-options-inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pge-crm-option-row,
.pge-crm-option-card {
  position: relative;
  cursor: pointer;
}

.pge-crm-option-row input,
.pge-crm-option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pge-crm-option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #e7e9ef;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pge-crm-option-row:has(input:checked) {
  border-color: #1f9c5a;
  background: #eaf8ef;
  box-shadow: 0 8px 20px rgba(31, 156, 90, 0.08);
}

.pge-crm-option-control {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid rgba(102, 112, 133, 0.45);
  border-radius: 50%;
  flex: 0 0 auto;
}

.pge-crm-option-control::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f9c5a;
  content: "";
  opacity: 0;
}

.pge-crm-option-row:has(input:checked) .pge-crm-option-control {
  border-color: #1f9c5a;
}

.pge-crm-option-row:has(input:checked) .pge-crm-option-control::after {
  opacity: 1;
}

.pge-crm-option-card {
  display: grid;
  min-height: 116px;
  place-items: center;
  gap: 8px;
  border: 2px solid #e7e9ef;
  border-radius: 18px;
  background: #fff;
  padding: 16px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #182d66;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pge-crm-option-card:has(input:checked) {
  border-color: #1f9c5a;
  background: #eaf8ef;
  box-shadow: 0 10px 24px rgba(31, 156, 90, 0.08);
}

.pge-crm-option-card-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #f5f9f6;
  color: #1f9c5a;
}

.pge-crm-option-card-icon svg,
.pge-crm-input-icon svg {
  width: 22px;
  height: 22px;
}

.pge-crm-input {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e7e9ef;
  border-radius: 14px;
  padding: 13px 14px;
}

.pge-crm-input:focus-within {
  border-color: #1f9c5a;
  box-shadow: 0 0 0 4px rgba(31, 156, 90, 0.08);
}

.pge-crm-input-icon {
  display: inline-grid;
  color: #667085;
}

.pge-crm-input-phone {
  gap: 14px;
}

.pge-crm-phone-prefix {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  border-right: 1px solid #e7e9ef;
  padding-right: 14px;
  min-width: 96px;
}

.pge-crm-phone-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(24, 45, 102, 0.08);
  overflow: hidden;
  flex: 0 0 auto;
}

.pge-crm-phone-flag--de {
  background: linear-gradient(180deg, #1c1c1c 0 33.33%, #d92f2f 33.33% 66.66%, #f3c434 66.66% 100%);
}

.pge-crm-phone-flag--pl {
  background: linear-gradient(180deg, #ffffff 0 50%, #d93b58 50% 100%);
}

.pge-crm-phone-flag--at {
  background: linear-gradient(180deg, #d93737 0 33.33%, #ffffff 33.33% 66.66%, #d93737 66.66% 100%);
}

.pge-crm-phone-flag--ch {
  position: relative;
  background: #d62828;
}

.pge-crm-phone-flag--ch::before,
.pge-crm-phone-flag--ch::after {
  position: absolute;
  content: "";
  background: #ffffff;
}

.pge-crm-phone-flag--ch::before {
  top: 2px;
  bottom: 2px;
  left: 7px;
  width: 4px;
}

.pge-crm-phone-flag--ch::after {
  top: 4px;
  left: 4px;
  right: 4px;
  height: 4px;
}

.pge-crm-phone-prefix-select {
  min-width: 82px;
  color: #182d66;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  appearance: none;
}

.pge-crm-frontend-form input[type="text"],
.pge-crm-frontend-form input[type="tel"],
.pge-crm-frontend-form input[type="email"],
.pge-crm-frontend-form input[type="date"],
.pge-crm-frontend-form select {
  width: 100%;
  border: 0;
  background: transparent;
  color: #263042;
  padding: 0;
  font-size: 16px;
  outline: none;
}

.pge-crm-frontend-form select {
  cursor: pointer;
}

.pge-crm-booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pge-crm-booking-form .pge-crm-form-notice {
  text-align: center;
}

.pge-crm-booking-success {
  text-align: left;
}

.pge-crm-whatsapp-note,
.pge-crm-form-notice,
.pge-crm-consent {
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
}

.pge-crm-whatsapp-note {
  display: none;
  border: 1px solid rgba(249, 115, 22, 0.22);
  background: #f8ede0;
  padding: 14px 16px;
  color: #182d66;
}

.pge-crm-frontend-form:has(input[value="whatsapp"]:checked) .pge-crm-whatsapp-note {
  display: block;
}

.pge-crm-consent {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #e7e9ef;
  background: #fff;
  padding: 16px;
  color: rgba(38, 48, 66, 0.78);
}

.pge-crm-consent input {
  width: 15px;
  height: 15px;
  margin-top: 4px;
  accent-color: #1f9c5a;
}

.pge-crm-consent-copy {
  min-width: 0;
}

.pge-crm-consent-label {
  display: block;
  color: rgba(38, 48, 66, 0.78);
  cursor: pointer;
}

.pge-crm-consent a {
  color: #182d66;
  text-decoration: underline;
}

.pge-crm-consent-details {
  margin-top: 6px;
}

.pge-crm-consent-details summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #1f9c5a;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.pge-crm-consent-details summary::-webkit-details-marker {
  display: none;
}

.pge-crm-consent-less {
  display: none;
}

.pge-crm-consent-details[open] .pge-crm-consent-more {
  display: none;
}

.pge-crm-consent-details[open] .pge-crm-consent-less {
  display: inline;
}

.pge-crm-consent-details > div {
  margin-top: 6px;
  color: rgba(38, 48, 66, 0.78);
}

.pge-crm-frontend-form button {
  border: 0;
  border-radius: 18px;
  background: #1f9c5a;
  color: #fff;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(31, 156, 90, 0.2);
}

.pge-crm-form-notice {
  background: #eef8f1;
  padding: 14px 16px;
  color: #182d66;
  font-weight: 700;
}

.pge-crm-success {
  border-color: rgba(31, 156, 90, 0.35);
  background: #eaf8ef;
  color: #177945;
  font-weight: 700;
}

.pge-crm-success strong {
  display: block;
  margin-bottom: 10px;
}

.pge-crm-success p {
  margin: 0 0 10px;
  font-weight: 500;
}

.pge-crm-success-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.pge-crm-success a {
  color: inherit;
  font-weight: 700;
}

@media (max-width: 640px) {
  .pge-crm-form-options-inline {
    grid-template-columns: 1fr;
  }

  .pge-crm-booking-grid {
    grid-template-columns: 1fr;
  }

  .pge-crm-input-phone {
    gap: 10px;
  }

  .pge-crm-phone-prefix {
    gap: 6px;
    padding-right: 10px;
    min-width: 84px;
  }
}

/* v1.0.26 softer landing form treatment */
.pge-crm-frontend-form {
  border-color: #e7e9ef;
  box-shadow: 0 18px 38px rgba(24, 45, 102, 0.08);
  padding: 26px;
  gap: 22px;
}

.pge-crm-form-section {
  gap: 14px;
}

.pge-crm-form-section > strong {
  color: #182d66;
  font-size: 17px;
}

.pge-crm-form-options {
  gap: 12px;
}

.pge-crm-option-row {
  border-width: 1px;
  border-radius: 16px;
  background: #fff;
  padding: 16px 18px;
  color: #263042;
}

.pge-crm-option-row:has(input:checked) {
  border-color: #177945;
  background: #eaf8ef;
  box-shadow: none;
}

.pge-crm-option-control::after {
  background: #177945;
}

.pge-crm-option-card {
  min-height: 120px;
  border-width: 1px;
  border-radius: 18px;
  padding: 18px 14px;
  box-shadow: none;
}

.pge-crm-option-card:has(input:checked) {
  border-color: #177945;
  background: #eaf8ef;
  box-shadow: none;
}

.pge-crm-option-card-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(31, 156, 90, 0.18);
  background: #fff;
  color: #182d66;
}

.pge-crm-option-card:has(input:checked) .pge-crm-option-card-icon {
  border-color: rgba(23, 121, 69, 0.24);
  color: #177945;
}

.pge-crm-input {
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pge-crm-input:focus-within {
  border-color: #177945;
  background: #eaf8ef;
  box-shadow: 0 0 0 3px rgba(23, 121, 69, 0.08);
}

.pge-crm-whatsapp-note {
  border-color: rgba(31, 156, 90, 0.18);
  background: #f6fbf8;
  color: #263042;
}

.pge-crm-consent {
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  border-radius: 16px;
  padding: 14px 16px;
  color: #667085;
}

.pge-crm-consent input {
  width: 14px;
  height: 14px;
}

.pge-crm-consent-label,
.pge-crm-consent-details > div {
  color: #667085;
}

.pge-crm-consent-details summary {
  color: #177945;
}

.pge-crm-frontend-form button {
  border-radius: 18px;
  background: #1f9c5a;
  padding: 16px 20px;
  box-shadow: 0 14px 28px rgba(31, 156, 90, 0.18);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.pge-crm-frontend-form button:hover {
  background: #177945;
  transform: translateY(-1px);
}

.pge-crm-form-notice {
  background: #f6fbf8;
  color: #667085;
  font-weight: 600;
}

.pge-crm-success {
  border-color: rgba(23, 121, 69, 0.24);
  box-shadow: 0 16px 34px rgba(24, 45, 102, 0.08);
}

/* v1.0.27 form typography and icon warmth */
.pge-crm-form-section > strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pge-crm-option-row {
  font-size: 15px;
  font-weight: 500;
}

.pge-crm-option-card {
  font-size: 13px;
  font-weight: 600;
}

.pge-crm-option-card-icon {
  border-color: rgba(242, 232, 219, 0.92);
  background: rgba(247, 239, 228, 0.86);
  color: #177945;
}

.pge-crm-option-card:has(input:checked) .pge-crm-option-card-icon {
  border-color: rgba(23, 121, 69, 0.2);
  background: #f2fbf5;
  color: #177945;
}

.pge-crm-consent {
  font-size: 13px;
  line-height: 1.55;
}
