/**
 * EventBooking Invoice Pro – Public Styles
 * Modern card-based design with gold/warm accent theme.
 */

/* ===== Reset ===== */
.ebip-anmeldung *,
.ebip-anmeldung *::before,
.ebip-anmeldung *::after {
    box-sizing: border-box;
}

/* ===== Container ===== */
.ebip-anmeldung {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 0 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ===== Step Progress Bar ===== */
.ebip-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    position: relative;
    padding: 0 40px;
}

.ebip-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.ebip-step-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ebip-step.active .ebip-step-label,
.ebip-step.completed .ebip-step-label {
    color: #c8960c;
    font-weight: 700;
}

.ebip-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #adb5bd;
}

.ebip-step.active .ebip-step-dot {
    background: #c8960c;
    border-color: #c8960c;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(200, 150, 12, 0.15);
}

.ebip-step.completed .ebip-step-dot {
    background: #c8960c;
    border-color: #c8960c;
    color: #fff;
}

.ebip-steps-line {
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e9ecef;
    z-index: 0;
    transform: translateY(8px);
    border-radius: 2px;
}

.ebip-steps-line-active {
    position: absolute;
    top: 50%;
    left: 40px;
    height: 3px;
    background: linear-gradient(90deg, #c8960c, #daa520);
    z-index: 1;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(8px);
    border-radius: 2px;
}

/* ===== Title ===== */
.ebip-anmeldung-title {
    font-size: 26px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 28px;
    line-height: 1.3;
}

/* ===== Step Panels (Card style) ===== */
.ebip-form-step {
    display: none;
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    animation: ebip-fade-in 0.3s ease;
}

.ebip-form-step.active {
    display: block;
}

@keyframes ebip-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Form Layout ===== */
.ebip-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

@media (max-width: 600px) {
    .ebip-form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Form Groups ===== */
.ebip-fg {
    margin-bottom: 20px;
}

.ebip-fg-full {
    margin-bottom: 20px;
}

.ebip-fg label,
.ebip-fg .ebip-label,
.ebip-fg-full label,
.ebip-fg-full .ebip-label {
    display: block;
    font-size: 13px;
    color: #596775;
    margin-bottom: 6px;
    font-weight: 500;
}

.ebip-required {
    color: #e74c3c;
    margin-left: 1px;
}

/* ===== Inputs ===== */
.ebip-anmeldung input[type="text"],
.ebip-anmeldung input[type="email"],
.ebip-anmeldung input[type="tel"],
.ebip-anmeldung input[type="date"],
.ebip-anmeldung input[type="number"],
.ebip-anmeldung select,
.ebip-anmeldung textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
    border: 1.5px solid #dce1e8;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    color: #333;
    -webkit-appearance: none;
    appearance: none;
}

.ebip-anmeldung input::placeholder,
.ebip-anmeldung textarea::placeholder {
    color: #adb5bd;
}

.ebip-anmeldung select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23868e96' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.ebip-anmeldung input:focus,
.ebip-anmeldung select:focus,
.ebip-anmeldung textarea:focus {
    border-color: #c8960c;
    box-shadow: 0 0 0 3px rgba(200, 150, 12, 0.12);
}

.ebip-anmeldung textarea {
    min-height: 100px;
    resize: vertical;
}

.ebip-anmeldung input.ebip-invalid,
.ebip-anmeldung select.ebip-invalid,
.ebip-anmeldung textarea.ebip-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Disabled options (sold out) */
.ebip-anmeldung select option:disabled {
    color: #bbb;
}

/* ===== Field Errors ===== */
.ebip-field-error {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    min-height: 0;
    font-weight: 500;
}

/* ===== Event Details Box ===== */
.ebip-event-details-box {
    background: linear-gradient(135deg, #fefbf3 0%, #fef6e4 100%);
    border: 1px solid #f0e4c4;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 24px;
}

.ebip-event-detail-name {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.ebip-event-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.ebip-detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ebip-detail-item strong {
    color: #596775;
    font-weight: 500;
}

.ebip-detail-item small {
    color: #868e96;
    font-size: 12px;
}

/* ===== Info Box ===== */
.ebip-info-box {
    background: #fef9e7;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    border-left: 4px solid #c8960c;
    border-radius: 0 8px 8px 0;
    white-space: pre-line;
}

.ebip-info-box-label {
    font-size: 12px;
    color: #868e96;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Legal Section (DSGVO / AGB) ===== */
.ebip-legal-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.ebip-legal-block {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    margin-bottom: 20px;
    align-items: start;
    background: #fafbfc;
    border-radius: 10px;
    padding: 16px 20px;
}

@media (max-width: 600px) {
    .ebip-legal-block {
        grid-template-columns: 1fr;
    }
}

.ebip-legal-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.ebip-legal-text strong {
    color: #444;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.ebip-legal-text a {
    color: #c8960c;
    text-decoration: none;
    font-weight: 500;
}

.ebip-legal-text a:hover {
    text-decoration: underline;
}

.ebip-legal-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
}

.ebip-legal-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #c8960c;
    cursor: pointer;
    flex-shrink: 0;
}

/* ===== Buttons ===== */
.ebip-btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0.2px;
}

.ebip-btn-primary {
    background: linear-gradient(135deg, #daa520, #c8960c);
    color: #fff;
    box-shadow: 0 2px 8px rgba(200, 150, 12, 0.25);
}

.ebip-btn-primary:hover {
    background: linear-gradient(135deg, #c8960c, #a67b00);
    box-shadow: 0 4px 14px rgba(200, 150, 12, 0.35);
    transform: translateY(-1px);
}

.ebip-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(200, 150, 12, 0.2);
}

.ebip-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ebip-btn-back {
    background: transparent;
    color: #596775;
    border: 1.5px solid #dce1e8;
}

.ebip-btn-back:hover {
    background: #f5f7fa;
    border-color: #c8960c;
    color: #c8960c;
}

/* ===== Button Row ===== */
.ebip-btn-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
    gap: 12px;
}

.ebip-btn-row-split {
    justify-content: space-between;
}

/* ===== Loading State ===== */
.ebip-btn.ebip-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.ebip-btn.ebip-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ebip-spin 0.6s linear infinite;
}

@keyframes ebip-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Notices / Errors ===== */
.ebip-form-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    border: 1px solid #fecaca;
    font-weight: 500;
}

.ebip-error {
    color: #991b1b;
    background: #fef2f2;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.ebip-notice {
    color: #92400e;
    background: #fffbeb;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #fde68a;
}

/* ================================================================
   Event List Shortcode Styles
   ================================================================ */

.ebip-event-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.ebip-event-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ebip-event-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ebip-event-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.ebip-event-card-content {
    padding: 20px;
}

.ebip-event-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.ebip-event-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.ebip-event-card-title a:hover {
    color: #c8960c;
}

.ebip-event-card-date,
.ebip-event-card-location {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.ebip-event-card-price {
    margin: 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.ebip-price-free {
    color: #059669;
}

.ebip-event-card-excerpt {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
    line-height: 1.5;
}

.ebip-event-card-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #daa520, #c8960c);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(200, 150, 12, 0.2);
}

.ebip-event-card-btn:hover {
    background: linear-gradient(135deg, #c8960c, #a67b00);
    color: white;
    box-shadow: 0 4px 12px rgba(200, 150, 12, 0.3);
}

.ebip-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ebip-badge-sold-out {
    background: #fef2f2;
    color: #991b1b;
}

.ebip-badge-few {
    background: #fffbeb;
    color: #92400e;
}

/* ===== Dynamic Field Types ===== */

/* Radio button groups */
.ebip-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
}

.ebip-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1.5px solid #dce1e8;
    transition: all 0.2s;
}

.ebip-radio-label:hover {
    border-color: #c8960c;
    background: #fffdf5;
}

.ebip-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #c8960c;
}

.ebip-radio-label:has(input:checked) {
    border-color: #c8960c;
    background: #fffdf5;
}

/* Standalone checkbox field */
.ebip-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    padding: 8px 0;
}

.ebip-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #c8960c;
    cursor: pointer;
}

/* Heading / separator field */
.ebip-heading h3 {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0e4c4;
}

/* Country "other" text input */
.ebip-country-other {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
    border: 1.5px solid #dce1e8;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    color: #333;
    margin-top: 8px;
}

.ebip-country-other:focus {
    border-color: #c8960c;
    box-shadow: 0 0 0 3px rgba(200, 150, 12, 0.12);
}

/* ===== Coupon Section ===== */
.ebip-coupon-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #fafbfc;
    border-radius: 10px;
    border: 1px solid #eee;
}

.ebip-coupon-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ebip-coupon-input {
    flex: 1;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
    border: 1.5px solid #dce1e8;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ebip-coupon-input:focus {
    border-color: #c8960c;
    box-shadow: 0 0 0 3px rgba(200, 150, 12, 0.12);
}

.ebip-coupon-apply-btn {
    padding: 12px 24px;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 8px;
}

.ebip-coupon-message {
    margin-top: 10px;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
}

.ebip-coupon-message.ebip-coupon-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.ebip-coupon-message.ebip-coupon-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== Payment Method Selection ===== */
.ebip-payment-selection {
    margin: 24px 0;
    text-align: center;
}

.ebip-payment-label {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.ebip-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.ebip-payment-method-btn {
    padding: 14px 28px;
    background: #fff;
    border: 2px solid #dce1e8;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 160px;
}

.ebip-payment-method-btn:hover {
    border-color: #c8960c;
    background: #fffdf5;
    color: #c8960c;
    box-shadow: 0 2px 8px rgba(200, 150, 12, 0.15);
}

/* ===== Confirmation Page ===== */
.ebip-confirmation-page {
    max-width: 660px;
    margin: 40px auto;
    padding: 20px;
}

.ebip-confirmation-container {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ebip-confirmation-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 20px;
}

.ebip-icon-success {
    background: #ecfdf5;
    color: #059669;
}

.ebip-icon-warning {
    background: #fffbeb;
    color: #d97706;
}

.ebip-icon-error {
    background: #fef2f2;
    color: #dc2626;
}

/* ===== Accessibility ===== */

/* Focus-visible outlines for keyboard navigation */
.ebip-anmeldung input:focus-visible,
.ebip-anmeldung select:focus-visible,
.ebip-anmeldung textarea:focus-visible,
.ebip-anmeldung button:focus-visible,
.ebip-anmeldung a:focus-visible,
.ebip-anmeldung [type="checkbox"]:focus-visible,
.ebip-anmeldung [type="radio"]:focus-visible {
    outline: 2px solid #c8960c;
    outline-offset: 2px;
}

/* Skip link for keyboard users */
.ebip-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 100;
    padding: 10px 20px;
    background: #c8960c;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border-radius: 0 0 4px 4px;
}

.ebip-skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    display: inline-block;
    margin-bottom: 10px;
}

/* Screen reader only */
.ebip-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
