/* COMMON STYLES FOR ALL PAGES */

/* Watermark - Small and Repetitive */
body::before {
    content: "AV © Onestepforthelife AV © Onestepforthelife AV © Onestepforthelife AV © Onestepforthelife AV © Onestepforthelife AV © Onestepforthelife AV © Onestepforthelife AV © Onestepforthelife";
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    font-size: 8px;
    font-weight: 400;
    color: rgba(102, 126, 234, 0.02);
    pointer-events: none;
    z-index: 0;
    line-height: 2;
    word-wrap: break-word;
    user-select: none;
    transform: rotate(-45deg);
    transform-origin: center;
}

/* Back Links - Larger Font */
.back-btn, .back-link, .back-button {
    font-size: 18px !important;
    padding: 15px 35px !important;
}

/* Hero Images - Proper Display */
.hero-image {
    position: relative;
}
.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    width: 90%;
}


/* UX Enhancements */
* {
    scroll-behavior: smooth;
}

button, a, input, textarea {
    transition: all 0.3s ease;
}

button:hover, a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

button:active, a:active {
    transform: translateY(0);
}

input:focus, textarea:focus {
    outline: 2px solid #5a6c7d;
    outline-offset: 2px;
}

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #5a6c7d;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message::before {
    content: '⚠️';
}

.success-message {
    color: #388e3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message::before {
    content: '✅';
}

/* Accessibility Enhancements */
:focus-visible {
    outline: 3px solid #5a6c7d;
    outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
    }
}
