/* Additional mobile fixes for Betul's Bakery */

/* Contact items layout for mobile */
@media screen and (max-width: 768px) {
    .contact-item {
        width: calc(50% - 1rem);
        justify-content: center;
        padding: 1rem;
    }
    
    /* Keep social media items together */
    .contact-item.social-media {
        width: auto;
        min-width: 140px;
    }
    
    .social-media-container {
        gap: 1rem;
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .contact-item {
        width: 100%;
    }
    
    /* Keep social media items side by side even on small screens */
    .contact-item.social-media {
        width: auto;
        min-width: 130px;
        padding: 1rem 1.5rem;
    }
    
    .social-media-container {
        gap: 0.8rem;
    }
}

/* Mobile action buttons layout for two buttons */
@media screen and (max-width: 768px) {
    .mobile-actions {
        flex-direction: row;
        justify-content: center;
        bottom: 20px;
        left: 0;
        right: 0;
        gap: 20px;
    }
}

/* Logo link styling */
.nav-logo-link {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    align-items: center;
    border-bottom: none !important;
    outline: none !important;
}

/* Fix for mobile navigation menu */
@media screen and (max-width: 768px) {
    /* Ensure mobile menu is properly visible when active */
    .nav-menu.active {
        left: 0;
        z-index: 1000;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    /* Improve mobile form experience */
    .form-group {
        margin-bottom: 20px;
    }
    
    /* Make form labels more visible */
    .form-group label {
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
        color: var(--cocoa);
    }
    
    /* Improve touch targets */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 16px;
        border-radius: 8px;
    }
    
    /* Fix dropdown arrows on iOS */
    .form-group select {
        padding-right: 30px;
    }
    
    /* Improve form section visibility */
    .form-section {
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    /* Improve form section focus state */
    .form-section:focus-within,
    .form-section.active-section {
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-left: 3px solid var(--strawberry);
        background-color: var(--cream);
    }
    
    /* Make submit button more prominent */
    .form-actions .btn-primary {
        width: 100%;
        padding: 16px;
        font-size: 18px;
    }
    
    /* Improve confirmation container on mobile */
    .confirmation-container {
        padding: 15px !important;
    }
    
    /* Make email buttons stack on mobile */
    .email-buttons {
        flex-direction: column;
    }
    
    .email-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Fix calendar display on mobile */
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    /* Improve mobile menu item display */
    .menu-item {
        flex-direction: column;
    }
    
    .menu-image {
        width: 100%;
        height: 200px;
    }
    
    .menu-content {
        width: 100%;
        padding: 15px 0 0 0;
    }
    
    /* Fix pricing toggle buttons on mobile */
    .pricing-toggle {
        padding: 12px;
    }
    
    /* Improve order summary on mobile */
    .order-summary {
        padding: 12px;
    }
    
    .order-summary h4 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    /* Fix alternative instructions on mobile */
    .alternative-instructions {
        padding: 12px;
    }
    
    .alternative-instructions ol {
        padding-left: 20px;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    /* Further optimize for very small screens */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 20px;
    }
    
    /* Make sure form elements are large enough */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 14px;
    }
    
    /* Ensure pricing content is visible when active */
    .pricing-content.active {
        max-height: 600px; /* Increase max height for small screens */
    }
}
