:root {
    --gold: #FFB700;
    --deep-red: #8B1E12;
    --burnt-orange: #E65100;
    --dark-brown: #3E1F15;
    --cream: #FFF8E1;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--cream);
    color: var(--dark-brown);
    margin: 0;
    line-height: 1.6;
}

header {
    background: linear-gradient(rgba(62, 31, 21, 0.8), rgba(62, 31, 21, 0.8)), url('food-bg.jpg'); /* Optional background image */
    background-size: cover;
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 5px solid var(--gold);
}

.logo {
    max-width: 250px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin: 0; }

.container { max-width: 900px; margin: auto; padding: 20px; }

/* Menu Styling */
.menu-section { background: white; padding: 30px; border-radius: 15px; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.menu-grid { display: grid; gap: 20px; margin-top: 20px; }
.menu-item { border-bottom: 1px dashed #ccc; padding-bottom: 15px; }
.dish-name { font-weight: bold; font-size: 1.2rem; color: var(--deep-red); }
.price { float: right; font-weight: bold; background: var(--gold); padding: 2px 10px; border-radius: 5px; }
.description { font-style: italic; color: #666; font-size: 0.9rem; margin-top: 5px; }

/* Form Styling */
.form-card { background: var(--dark-brown); color: white; padding: 30px; border-radius: 15px; }
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; color: var(--gold); font-weight: bold; }
input, textarea { width: 100%; padding: 12px; border-radius: 8px; border: none; box-sizing: border-box; }

.submit-btn {
    width: 100%;
    background: var(--gold);
    color: var(--dark-brown);
    font-weight: bold;
    font-size: 1.2rem;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.menu-category-header {
    grid-column: 1 / -1; /* Ensures it stretches across all columns */
    text-align: center;
    padding: 20px 0 10px 0;
    border-bottom: 2px solid #eee; /* Optional: adds a subtle line like in your screenshot */
    margin-bottom: 20px;
}

.menu-category-header h3 {
    font-family: 'Playfair Display', serif; /* Matches your main headers */
    color: #8B261A; /* The deep red/brown used in your dish names */
    font-size: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.item-info { flex: 2; }

.item-selection {
    flex: 1;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.item-selection input {
    width: 60px;
    margin-left: 10px;
    padding: 8px;
    border: 2px solid var(--gold);
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

/* Container for the soda options */
.soda-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee; /* Subtle line as seen in your screenshot */
    justify-content: flex-start;
}

/* Styling the radio labels */
.soda-radio {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 25px;
}

/* Hide default radio and style custom one */
.soda-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #e65100; /* Match Add to Cart button color */
    border-radius: 50%;
}

.soda-radio input:checked ~ .custom-radio {
    background-color: #e65100;
}

/* Inner dot for selection */
.custom-radio:after {
    content: "";
    position: absolute;
    display: none;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.soda-radio input:checked ~ .custom-radio:after {
    display: block;
}

/* Hide the arrows on the number input for a cleaner look */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Container styling */
.payment-section {
    margin: 20px 0;
}

.payment-label {
    color: #ffcc00; /* Matching your gold label color */
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.payment-options {
    display: flex;
    gap: 30px;
}

/* The label wrapper */
.radio-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 18px;
    color: white;
    user-select: none;
    font-family: 'Lato', sans-serif;
}

/* Hide the browser's default radio button */
.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom radio button (the ring) */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: transparent;
    border: 2px solid #ffcc00;
    border-radius: 50%;
}

/* On mouse-over, add a subtle glow */
.radio-container:hover input ~ .checkmark {
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

/* When the radio button is checked, fill the background gold */
.radio-container input:checked ~ .checkmark {
    background-color: #ffcc00;
}

/* Create the indicator (the inner dot) - hidden when not checked */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator when checked */
.radio-container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the indicator (dark brown dot) */
.radio-container .checkmark:after {
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3d1a0e; /* This should match your dark brown background */
}

select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--gold); /* Matches your menu theme */
    background-color: white;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--dark-brown);
    cursor: pointer;
    appearance: none; /* Removes default browser styling */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%233E1F15" d="M5 7l5 5 5-5z"/></svg>'); /* Custom down arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
}

select:focus {
    outline: none;
    border-color: var(--deep-red);
}

/* Ensure the phone input and instructions match the name field */
input[type="tel"], 
textarea#instructions {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background-color: white;
    font-family: 'Lato', sans-serif;
    color: var(--dark-brown);
    box-sizing: border-box;
}

textarea#instructions {
    resize: vertical; /* Allows users to expand the box if they have a long request */
    min-height: 80px;
}

/* Add a little breathing room between groups */
.form-group {
    margin-bottom: 20px;
}

/* Thank You Page Specifics */
.thank-you-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.thank-you-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    border-top: 8px solid var(--gold);
}

.logo-small {
    max-width: 120px;
    margin-bottom: 20px;
}

.payment-box {
    background: var(--cream);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    border: 1px dashed var(--burnt-orange);
}

.payment-btn {
    display: inline-block;
    background: var(--deep-red);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: 0.3s;
}

.payment-btn:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
}

.next-steps {
    text-align: left;
    margin: 20px 0;
}

.next-steps ul {
    padding-left: 20px;
    font-size: 0.9rem;
}

.back-link {
    display: block;
    margin-top: 20px;
    color: var(--dark-brown);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
}

.closed-card {
    border-top: 8px solid #666; /* Grey border instead of gold to show it's "off" */
}

.hours-box {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #ccc;
    text-align: center;
}

.hours-box h3 {
    margin-top: 0;
    color: var(--dark-brown);
}

.hours-box p {
    margin: 5px 0;
    font-size: 0.95rem;
}

/* Cart Drawer Styles */
.cart-nav {
    margin-top: 15px;
}

.cart-toggle-btn {
    background: var(--gold);
    color: var(--dark-brown);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90%;
    height: 100%;
    background: var(--cream);
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.drawer.open { transform: translateX(0); }

.drawer-header {
    background: var(--dark-brown);
    color: var(--gold);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-cart {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
}

#cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.drawer-footer {
    padding: 20px;
    border-top: 2px solid var(--gold);
    background: white;
}

.add-btn {
    background: var(--burnt-orange);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.add-btn:hover { background: var(--deep-red); }

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 1500;
}

.overlay.active { display: block; 

}

.submit-btn:hover { background: white; color: var(--deep-red); }

footer { text-align: center; padding: 40px; font-size: 0.8rem; opacity: 0.7; }