/* Mobile-specific improvements */
@media (max-width: 640px) {

    /* Improve touch targets */
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better text readability on mobile */
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    /* Prevent horizontal scroll */
    html,
    body {
        overflow-x: hidden;
    }
}

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
}

/* Better focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid #FF6A13;
    outline-offset: 2px;
}

/* Form Styling and Validation */
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: #0C2D48;
    box-shadow: 0 0 0 3px rgba(12, 45, 72, 0.1);
}

#contact-form input.border-red-500,
#contact-form select.border-red-500,
#contact-form textarea.border-red-500 {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

#contact-form .error-message {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form button states */
#contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#contact-form button[type="submit"]:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 106, 19, 0.3);
}

/* Notification animations */
.notification {
    animation: slideInRight 0.3s ease-out;
}

.notification.translate-x-full {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

/* Scroll to Top Button Responsive Design */
#scroll-to-top {
    min-height: 44px;
    min-width: 44px;
}

@media (max-width: 640px) {
    #scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    #scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3.5rem;
        height: 3.5rem;
    }
}

@media (min-width: 1025px) {
    #scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
}