/* ── like-buy Refill Requests – Frontend CSS ── */

.lbr-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Form header (hero area) */
.lbr-form-header {
    display: none; /* Ausgeblendet, da Seite bereits eigene Überschrift hat */
    margin-bottom: 24px;
    text-align: center;
}
.lbr-form-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}
.lbr-form-subtitle {
    margin: 0;
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

/* Login notice */
.lbr-login-notice {
    background: #f0f4ff;
    border: 1.5px solid #c7d2fe;
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    color: #374151;
}
.lbr-login-notice p { margin: 0 0 16px; font-size: 15px; }
.lbr-login-notice a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4f46e5;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s;
}
.lbr-login-notice a:hover { background: #3730a3; }

/* Form card */
.lbr-form {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

.lbr-form h3 {
    margin: 0 0 28px;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

/* Rows / 2-col grid */
.lbr-form-row {
    margin-bottom: 20px;
}
.lbr-form-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 600px) {
    .lbr-form { padding: 28px 20px; }
    .lbr-form-row--2 { grid-template-columns: 1fr; }
}

/* Labels */
.lbr-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: .02em;
}
.lbr-label .required { color: #dc2626; margin-left: 2px; }

/* Inputs */
.lbr-input,
.lbr-select,
.lbr-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    color: #111827;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    font-family: inherit;
    appearance: none;
}
.lbr-input:focus,
.lbr-select:focus,
.lbr-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}
.lbr-input[readonly] {
    background: #f8fafc;
    color: #64748b;
    cursor: default;
}
.lbr-input[readonly]:focus { border-color: #d1d5db; box-shadow: none; }
.lbr-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
    min-height: 48px;
    font-size: 16px;
}
.lbr-select:hover:not(:disabled) {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}
.lbr-select:focus {
    background-color: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}
.lbr-textarea { resize: vertical; min-height: 100px; }

/* Checkbox group (Privacy & Terms) */
.lbr-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
}
.lbr-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.lbr-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #6366f1;
}
.lbr-checkbox-item input[type="checkbox"]:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}
.lbr-checkbox-label {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}
.lbr-checkbox-label a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}
.lbr-checkbox-label a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Helper text */
.lbr-hint {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Submit button */
.lbr-btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    transition: all .25s;
    font-family: inherit;
}
.lbr-btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #3730a3, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, .35);
}
.lbr-btn--primary:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner inside button */
.lbr-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lbr-spin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes lbr-spin { to { transform: rotate(360deg); } }

/* Notice messages */
.lbr-notice {
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
    margin-top: 16px;
    display: none;
    align-items: flex-start;
    gap: 12px;
    font-weight: 600;
    line-height: 1.5;
}
.lbr-notice.visible { display: flex; }
.lbr-notice--info    { background: #eff6ff; border: 1.5px solid #bfdbfe; color: #1e40af; }
.lbr-notice--success { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; }
.lbr-notice--error   { background: #fef2f2; border: 1.5px solid #fca5a5; color: #991b1b; }
.lbr-notice-icon { font-size: 20px; flex-shrink: 0; }

/* Success Screen (with Confetti) */
.lbr-success-screen {
    position: relative;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 24px;
    padding: 40px 40px;
    text-align: center;
    overflow: hidden;
    animation: lbr-fade-in 0.6s ease-out;
}

.lbr-confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* Hinter dem Content */
}

.lbr-success-content {
    position: relative;
    z-index: 10; /* Vor dem Konfetti */
}

.lbr-success-icon {
    font-size: 70px;
    margin-bottom: 20px;
    animation: lbr-bounce 1s ease-in-out infinite;
}

.lbr-success-title {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
}

.lbr-success-subtitle {
    font-size: 17px;
    color: #475569;
    margin: 0 0 32px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lbr-success-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto 28px;
}

.lbr-success-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.lbr-success-info-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.lbr-success-info-text {
    font-size: 15px;
    color: #334155;
    line-height: 1.5;
}

.lbr-success-info-text strong {
    color: #0f172a;
    font-weight: 700;
}

.lbr-success-request-id {
    display: inline-block;
    background: #4f46e5;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.lbr-success-request-id strong {
    font-weight: 800;
}

/* Animations */
@keyframes lbr-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lbr-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 600px) {
    .lbr-success-screen {
        padding: 32px 20px;
    }
    .lbr-success-icon {
        font-size: 50px;
        margin-bottom: 16px;
    }
    .lbr-success-title {
        font-size: 22px;
    }
    .lbr-success-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    .lbr-success-info {
        gap: 12px;
    }
    .lbr-success-info-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 14px 16px;
    }
}
