/* External CSS for Liberia Business Awards */
.modal-form-container {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 8px;
}

.modal-form-container::-webkit-scrollbar {
    width: 6px;
}

.modal-form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-form-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-form-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    flex-shrink: 0;
}

.modal-footer {
    flex-shrink: 0;
}

.border-red-500 {
    border-color: #ef4444 !important;
}

.field-error {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #ef4444;
}

button:focus, 
input:focus, 
select:focus, 
textarea:focus {
    outline: 2px solid #87CEEB;
    outline-offset: 2px;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-logo img {
    content-visibility: auto;
}

.hero-bg {
    background-image: 
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
        image-set(
            url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') 1x,
            url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80') 2x
        );
}

img[loading="lazy"] {
    content-visibility: auto;
}

.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;
}

.sr-only:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #000;
    color: #fff;
    z-index: 10000;
}
/* Loading state styles */
button.loading {
    position: relative;
    overflow: hidden;
}

button.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Disabled form state */
form.loading input,
form.loading textarea,
form.loading select {
    opacity: 0.7;
    cursor: not-allowed;
}