/* Additional CSS for PHP version */

/* Form success and error messages */
.form-success {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #d6e9c6;
}

.form-error {
    background-color: #f2dede;
    color: #a94442;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #ebccd1;
}

/* 404 Error Page */
.error-content {
    text-align: center;
    padding: 80px 0;
}

.error-message h1 {
    font-size: 120px;
    color: #e63946;
    margin-bottom: 0;
    line-height: 1;
}

.error-message h2 {
    font-size: 36px;
    margin-top: 0;
}

.error-message p {
    font-size: 18px;
    max-width: 600px;
    margin: 20px auto 40px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.error-actions a:not(.cta-button) {
    display: inline-block;
    padding: 12px 24px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.error-actions a:not(.cta-button):hover {
    background-color: #f5f5f5;
}

.popular-pages {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.page-link a {
    display: block;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-link a:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    color: #e63946;
}

.page-link i {
    margin-right: 10px;
    color: #e63946;
}

/* Footer Social Links */
.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: #fff;
    color: #333;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #e63946;
    color: #fff;
}

/* Footer modifications */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .error-message h1 {
        font-size: 80px;
    }
    
    .error-message h2 {
        font-size: 24px;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 10px;
    }
}
