/* Landing page: embedded event registration form (only rendered when enabled in the plugin) */
.lp-registration {
    --lp-accent: #06a7fb;
    --lp-accent-dark: #0293d1;
    background-color: #fff;
    color: #333;
    padding: 20px 16px;
    margin-top: 8px;
    scroll-margin-top: 24px;
}
@media (min-width: 768px) {
    .lp-registration { padding: 24px; }
}
.lp-registration__title { font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin: 0 0 12px; color: #111; }
.lp-registration__date { padding-bottom: 16px; }
.lp-registration__date label,
.lp-registration .form__label { display: block; font-weight: 700; padding-bottom: 4px; }

/* fields */
.lp-registration select,
.lp-registration .form__field--text,
.lp-registration .form__field--select {
    background-color: #f0f5f8; border: 1px solid #f0f5f8; border-radius: 0; color: #333;
    font-family: inherit; font-size: 1rem; padding: 9px 10px; width: 100%; outline: none; -webkit-appearance: none; appearance: none;
}
.lp-registration select {
    background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px;
}
.lp-registration select:focus,
.lp-registration .form__field--text:focus { border-color: var(--lp-accent); }
.lp-registration .form { position: relative; }
.lp-registration .form__section h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 8px; color: #111; }
.lp-registration .form__row { padding-bottom: 10px; }
.lp-registration .form__rows { display: none; }
.lp-registration .form__errors { color: #d0021b; font-size: 90%; padding-top: 4px; }
.lp-registration .required { color: #d0021b; }
.lp-registration .form__field--checkbox { margin-right: 6px; vertical-align: middle; }

/* compact layout: "Anmelder" and "Teilnehmer" stacked, fields two per row */
.lp-registration .columns__inner { display: block; }
.lp-registration .column--half,
.lp-registration .columns--gutter .column--half { width: 100%; }
.lp-registration .column--half + .column--half { margin-top: 4px; }
@media (min-width: 640px) {
    .lp-registration .column--half:first-child .form__section { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
    .lp-registration .column--half:first-child .form__section > h3 { grid-column: 1 / -1; }
}
.lp-registration .form-grid { display: flex; margin: 0 -6px; }
.lp-registration .form-grid .col-6 { width: 50%; padding: 0 6px; }

/* spam protection */
.lp-registration .form__row:has(.tx-srfreecap-image) { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 6px; }
.lp-registration .form__row:has(.tx-srfreecap-image) > input { width: 100%; }
.lp-registration .tx-srfreecap-image { display: block; margin: 0; height: 38px; width: auto; border: 1px solid #f0f5f8; }
.lp-registration .tx-srfreecap-cant-read { flex: 1 1 160px; font-size: 80%; line-height: 1.3; }
.lp-registration .tx-srfreecap-cant-read a { color: var(--lp-accent); text-decoration: underline; cursor: pointer; }

/* buttons */
.lp-registration .button--plus { display: inline-block; background: none !important; border: 0; padding: 0 !important; color: var(--lp-accent); font-family: inherit; font-size: .9375rem; font-weight: 700; text-decoration: none; }
.lp-registration .button--plus::before { content: "+ Weiteren Teilnehmer hinzufügen"; background: none !important; padding: 0 !important; margin: 0; font-family: inherit; }
.lp-registration .button--plus:hover { text-decoration: underline; }
.lp-registration .form__button[type="submit"] {
    font-family: inherit; background-color: var(--lp-accent); border: 0; border-left: 48px solid var(--lp-accent-dark); color: #fff; cursor: pointer;
    font-size: 1rem; font-weight: 700; padding: 10px 64px 10px 12px; position: relative;
}
.lp-registration .form__button[type="submit"]::before {
    content: "\2192"; position: absolute; left: -48px; top: 0; bottom: 0; width: 48px; display: flex; background-color: var(--lp-accent-dark);
    align-items: center; justify-content: center; font-size: 1.25rem;
}
.lp-registration .form__button[type="submit"]:hover { opacity: .9; }

/* processing / error overlay */
.lp-registration .overlay {
    background-color: rgba(255, 255, 255, .8); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 5;
}
.lp-registration .overlay[style*="display: none"] { display: none !important; }
.lp-registration .form__overlay--error .overlay__content { color: #d0021b; font-weight: 700; }
.lp-registration svg.svg-icon--spinner-negative { width: 48px; height: 48px; }
