/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

body {
    margin: 0;
    border: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2d3436;
    line-height: 1.6;
}

header, footer {
    background: linear-gradient(135deg, #d63031 0%, #e17055 100%);
    color: white;
    text-align: center;
    font-size: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(214, 48, 49, 0.15);
}

header{
    background: linear-gradient(135deg, rgba(214, 48, 49, 0.9) 0%, rgba(225, 112, 85, 0.9) 100%), 
                url("../Img/bg.jpg") no-repeat fixed center/cover;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

header .container {
    position: relative;
    z-index: 2;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.95;
}

nav {
    background: #2d3436;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0 2rem;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: #d63031;
    color: white;
    transform: translateY(-2px);
}

.container {
    color: white;
    text-align: center;
}

.order-container {
    margin: 2rem auto;
    max-width: 900px;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(214, 48, 49, 0.1);
}

.order-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2d3436;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.order-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #d63031, #e17055);
    border-radius: 2px;
}

.user-input {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.user-input > div {
    margin-bottom: 1.5rem;
}

.user-input > div:last-child {
    margin-bottom: 0;
}

.user-input label {
    display: block;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.user-input input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.user-input input:focus {
    outline: none;
    border-color: #d63031;
    box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.1);
    transform: translateY(-1px);
}

.order-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    align-items: center;
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.order-item span {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #00b894;
    font-size: 1.1rem;
    min-width: 100px;
}
select, input[type="number"], input[type="tel"], input[type="text"] {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
    color: #2d3436;
}

select:focus, input[type="number"]:focus, input[type="tel"]:focus, input[type="text"]:focus {
    outline: none;
    border-color: #d63031;
    box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.1);
}

select {
    cursor: pointer;
    min-width: 150px;
}

input[type="number"] {
    max-width: 80px;
    text-align: center;
}

/* Button container styling */
.button-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Enhanced button styling */
button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #d63031 0%, #e17055 100%);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(214, 48, 49, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #d63031 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 48, 49, 0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(214, 48, 49, 0.2);
}

.remove-item {
    background: linear-gradient(135deg, #636e72 0%, #74b9ff 100%);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: auto;
}

.remove-item:hover {
    background: linear-gradient(135deg, #2d3436 0%, #0984e3 100%);
}

.amount {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.2);
}

.amount h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Payment section styling */
#payment-section {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

#payment-section h3 {
    font-family: 'Playfair Display', serif;
    color: #2d3436;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

#payment-method {
    width: 100%;
    margin-bottom: 1rem;
}

#payment-details {
    margin-top: 1.5rem;
}

/* Footer styling */
footer {
    margin-top: 3rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    nav ul {
        justify-content: center;
        padding: 0 1rem;
        gap: 1rem;
    }
    
    nav ul li a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .order-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .order-container h2 {
        font-size: 2rem;
    }
    
    .order-item {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .order-item span {
        text-align: center;
        justify-content: center;
    }
    
    select, input[type="number"] {
        width: 100%;
        min-width: auto;
        max-width: none;
    }
    
    .button-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    button {
        width: 100%;
        padding: 1rem;
    }
    
    .user-input {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .order-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .order-container h2 {
        font-size: 1.5rem;
    }
    
    .amount h3 {
        font-size: 1.4rem;
    }
}

/* Loading animation for better UX */
.loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Success/Error states */
.success {
    border-color: #00b894 !important;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1) !important;
}

.error {
    border-color: #d63031 !important;
    box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.1) !important;
}

/* Improved accessibility */
.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;
}

/* Focus indicators */
*:focus {
    outline: 2px solid #d63031;
    outline-offset: 2px;
}

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

/* Print styles */
@media print {
    header, nav, footer, .button-container, #payment-section {
        display: none;
    }
    
    .order-container {
        box-shadow: none;
        border: 1px solid #000;
    }
}