@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;700&family=Manrope:wght@400;500&display=swap');
*{
    font-family: 'Fredoka One', cursive;
}
:root {
    --primary-color: #ff5a00;
    --secondary-color: #f8f8f8;
    --border-color: #e0e0e0;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --success-color: #4caf50;
    --font-family: 'Arial', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background-color: #fddfcf;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-logo {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0; /* Remove any line height spacing */
}

.header-logo img {
    width: 100%;
    height: auto;
    display: block; /* Remove any default spacing */
}

.form-header h1 {
    width: 100%;
    background-color: white;
    color: #8a1b1b;
    margin: 0;
    padding: 15px 0;
    font-size: 2rem;
}

.pizza-order-form {
    padding: 20px;
}

/* Product Styles */
.product-grid {
    color: #8a1b1b;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.product-item {
    color: #8a1b1b;
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9ff; /* Light blue background like the image */
    position: relative;
    padding: 15px;
}

.product-checkbox {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.product-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.checkbox-label {
    display: block;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.checkbox-label::after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid var(--primary-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:checked + .checkbox-label::after {
    display: block;
}

.product-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 20px;
    margin-left: 30px; /* Space after checkbox */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keep aspect ratio */
    display: block;
}

.product-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.product-details h3 {
    margin: 0 0 5px;
    color: #8a1b1b;
    font-size: 1.2rem;
}

.product-details p {
    margin: 0 0 20px;
    color: #8a1b1b;
    font-size: 0.9rem;
}

.product-price {
    position: absolute;
    top: 0;
    right: 0;
    font-weight: bold;
    font-size: 1.1rem;
    color: #8a1b1b;
}

.product-options {
    margin-top: auto; /* Push to bottom */
}

.option-group {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.option-group label {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #8a1b1b;
    font-weight: normal;
    width: 70px;
}

select {
    flex-grow: 1;
    max-width: 150px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-family: var(--font-family);
}

.product-subtotal {
    font-size: 0.9rem;
    color: #777;
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.subtotal-price {
    font-weight: bold;
    color: var(--text-color);
}

.order-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #FFF8F0;
    border-radius: 5px;
}

.total-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 15px;
}

.total-amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Form Fields */
.form-section {
    color: #8a1b1b;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-row {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 5px;
    width: 100%;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #8a1b1b;
}

.double-input-container {
    display: flex;
    gap: 15px;
    width: 100%;
}

.form-group.half {
    width: 50%;
}

/* Date Input Styling */
.date-input-container {
    position: relative;
}

.calendar-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
}

/* Time Picker Styling */
.time-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-input-group {
    display: flex;
    align-items: center;
    flex: 1;
}

.time-input-group input {
    flex: 1;
    margin-right: 5px;
}

.am-pm-select {
    width: 70px;
    padding: 8px 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

.time-separator {
    font-weight: normal;
    color: #666;
    padding: 0 5px;
}

.time-labels {
    display: flex;
    width: 100%;
}

.field-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

.time-end-label {
    margin-left: auto;
    padding-right: 75px; /* Adjust based on your layout */
}

/* Input Styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-family);
    background-color: #fff;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Button Styles */
.form-actions {
    text-align: center;
    padding: 20px;
}

.btn-submit {
    background-color: #8a1b1b; /* Bright green from the image */
    color:#FFF8F0;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
    min-width: 150px;
}

.btn-submit:hover {
    background-color: #680e0e;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .form-group.half {
        width: 100%;
        margin-right: 0;
    }
    
    .product-item {
        color: #8a1b1b;
        flex-direction: column;
    }
    
    .product-image {
        width: 100%;
        height: auto;
        margin: 20px 0;
    }
    
    .product-checkbox {
        top: 15px;
        left: 15px;
    }
    
    .product-price {
        position: static;
        margin-top: 10px;
    }
    
    .double-input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .double-input-container .form-group.half {
        width: 100%;
    }
    
    .time-picker {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .time-input-group {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .time-labels {
        flex-direction: column;
    }
    
    .time-end-label {
        margin-left: 0;
        padding-right: 0;
    }
}