/* CelebrateWithRia — Brand Styles */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    background: #5A6B50;
    color: white;
    border-radius: 0 0 0.5rem 0.5rem;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* Focus visible styles for keyboard navigation */
*:focus-visible {
    outline: 2px solid #7A8B6F;
    outline-offset: 2px;
    border-radius: 2px;
}
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid #7A8B6F;
    outline-offset: 2px;
}

h1:focus { outline: none; }

/* Form validation */
.valid.modified:not([type=checkbox]) { outline: 1px solid #7A8B6F; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; font-size: 0.875rem; }

/* Blazor error boundary */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 0.5rem;
}
.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F5F0E8; }
::-webkit-scrollbar-thumb { background: #A8B89E; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7A8B6F; }

/* Pipeline stage colours — text darkened for WCAG AA contrast */
.stage-enquiry { background-color: #F59ADB20; color: #9b4585; border: 1px solid #F59ADB40; }
.stage-discoverycall { background-color: #7A8B6F20; color: #3d4a35; border: 1px solid #7A8B6F40; }
.stage-bookingconfirmed { background-color: #7A8B6F30; color: #3d4a35; border: 1px solid #7A8B6F60; }
.stage-gettoknowyou { background-color: #F59ADB25; color: #9b4585; border: 1px solid #F59ADB40; }
.stage-questionnaire { background-color: #A8B89E30; color: #3d4a35; border: 1px solid #A8B89E50; }
.stage-firstdraft { background-color: #F59ADB30; color: #9b4585; border: 1px solid #F59ADB50; }
.stage-approved { background-color: #5A6B5020; color: #3d4a35; border: 1px solid #5A6B5060; }
.stage-eventdate { background-color: #F5F0E8; color: #4a4a4a; border: 1px solid #6B6B6B40; }

/* Ceremony type badges — text darkened for WCAG AA contrast */
.type-wedding { background-color: #F59ADB20; color: #9b4585; }
.type-babynaming { background-color: #A8B89E30; color: #3d4a35; }
.type-funeral { background-color: #6B6B6B20; color: #4a4a4a; }
.type-celebrationoflife { background-color: #F5F0E8; color: #4d5e44; }
.type-vowrenewal { background-color: #F59ADB15; color: #9b4585; }

/* Sidebar active link */
.nav-link-active {
    background-color: #7A8B6F15;
    color: #5A6B50 !important;
    border-left: 3px solid #7A8B6F;
}

/* Message bubbles */
.msg-ria {
    background-color: #7A8B6F15;
    border-radius: 1rem 1rem 1rem 0.25rem;
}
.msg-customer {
    background-color: #F59ADB15;
    border-radius: 1rem 1rem 0.25rem 1rem;
}

/* Timeline connector */
.timeline-line {
    position: absolute;
    left: 1.25rem;
    top: 2.5rem;
    bottom: 0;
    width: 2px;
    background-color: #A8B89E;
}
