/* ===== Blazor framework ===== */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 3.5rem;
    top: 0.5rem;
}
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after { content: "An error has occurred." }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #1a1a1a;
    background: #f5f5f0;
}

/* ===== Form container ===== */
.lc-form-container {
    max-width: 680px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    padding: 2rem 2.5rem;
}

.lc-form-container h1 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: #5a6a3a;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.lc-form-container h2 {
    margin: 0 0 1.5rem;
    font-size: 1.6rem;
}

/* ===== Step indicator ===== */
.step-indicator {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.step-indicator .step {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    background: #e8e8e8;
    color: #666;
}
.step-indicator .step.active {
    background: #5a6a3a;
    color: #fff;
    font-weight: 600;
}
.step-indicator .step.done {
    background: #c8d8a8;
    color: #2a3a1a;
}

/* ===== Form elements ===== */
.form-group {
    margin-bottom: 1rem;
}
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.form-row .form-group { flex: 1; min-width: 120px; }
.form-row .form-group--sm { flex: 0 0 90px; }

label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.3rem; }

.form-control {
    display: block;
    width: 100%;
    padding: 0.45rem 0.65rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: border-color .15s;
}
.form-control:focus {
    outline: none;
    border-color: #5a6a3a;
    box-shadow: 0 0 0 3px rgba(90,106,58,.15);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: #5a6a3a; color: #fff; }
.btn-primary:hover:not(:disabled) { background: #4a5a2a; }
.btn-secondary { background: #e8e8e8; color: #333; }
.btn-secondary:hover:not(:disabled) { background: #d8d8d8; }

/* ===== Alerts ===== */
.alert { padding: 0.8rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.alert-error { background: #fde8e8; border: 1px solid #f5a0a0; color: #7a1a1a; }
.alert-success { background: #e8f5e0; border: 1px solid #a0c880; color: #2a5a1a; }

/* ===== Membership info banner ===== */
.membership-info {
    background: #f0f5e8;
    border: 1px solid #c8d8a8;
    border-radius: 4px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

/* ===== Species / Animal selections ===== */
.species-block {
    border: 1px solid #e0e0d8;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}
.species-label { font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.sub-label { font-size: 0.8rem; color: #666; font-weight: 500; display: block; margin: 0.5rem 0 0.3rem; }
.breed-list, .product-list { padding-left: 1.25rem; }
.check-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; margin-bottom: 0.25rem; cursor: pointer; }
.check-label input { cursor: pointer; }

/* ===== Preference checkboxes ===== */
.check-group { border: 1px solid #e0e0d8; border-radius: 4px; padding: 0.75rem 1rem; margin-bottom: 1rem; }
.check-group legend { font-size: 0.875rem; font-weight: 500; padding: 0 0.4rem; }

/* ===== Review step ===== */
.review-section { margin-bottom: 1.25rem; }
.review-section h3 { font-size: 1rem; margin: 0 0 0.5rem; border-bottom: 1px solid #e0e0d8; padding-bottom: 0.3rem; }
.review-section p { margin: 0.25rem 0; font-size: 0.9rem; }

/* ===== Result pages ===== */
.lc-result .alert p { margin: 0.25rem 0; }

/* ===== Step description ===== */
.step-description { margin-top: 0; color: #555; margin-bottom: 1.25rem; }

.no-data { color: #888; font-style: italic; }
