/* QR Memorial Video - Website Improvements */

/* Focus styles for better accessibility */
.focused {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Form improvements */
.form-group {
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid #7cd1db;
    outline-offset: 2px;
    border-color: #7cd1db;
    box-shadow: 0 0 0 3px rgba(124, 209, 219, 0.1);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Improved button hover effects */
button:hover,
a:hover {
    transform: translateY(-1px);
}

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

/* Better mobile responsiveness */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 1rem;
    }
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Improved error messages */
.error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Better loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #7cd1db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Better text contrast */
.text-contrast {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Improved form styling */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #7cd1db;
    box-shadow: 0 0 0 3px rgba(124, 209, 219, 0.1);
}

/* File upload improvements */
input[type="file"] {
    border: 2px dashed #7cd1db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: rgba(124, 209, 219, 0.05);
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #5bb5c5;
    background: rgba(124, 209, 219, 0.1);
}

/* Improved mobile menu */
@media (max-width: 1280px) {
    .mobile-menu {
        backdrop-filter: blur(10px);
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Better accessibility for screen readers */
.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;
}

/* Improved focus indicators */
*:focus {
    outline: 2px solid #7cd1db;
    outline-offset: 2px;
}

/* Better button states */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Improved animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Better error handling */
.error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
}

.success-message {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #059669;
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
}
