/* Overall layout */
body {
    font-family: "Roboto", Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

#cork-bean-booking-form {
    max-width: 65%;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    position: relative;
    z-index: 1;
}

h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 10px;
}

label {
    font-size: 1.4em;
    color: #34495e;
    margin-bottom: 5px;
    display: block;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    padding: 12px;
    font-size: 1.3em;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Custom Checkbox and Radio Button Styling */
input[type="checkbox"], input[type="radio"] {
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-right: 15px;
    appearance: none;
    background-color: #c5c5c5;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Checkbox checked state */
input[type="checkbox"]:checked {
    background-color: #4a4a4a;
}

/* Radio button custom styling */
input[type="radio"] {
    border-radius: 50%;
}

/* Radio checked state */
input[type="radio"]:checked {
    background-color: #4a4a4a;
}

/* Custom checkmark for checkboxes */
input[type="checkbox"]:checked::after {
    content: "";
    display: block;
    position: absolute;
    left: 9px;
    top: 5px;
    width: 8px;
    height: 16px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Remove the gap between the label and the number of people textbox */
.party-package-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
input[type="submit"] {
    background-color: #000;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.4em;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #444;
}

/* Party package options */
.party-packages {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.party-packages .inline-option {
    width: 48%;
    margin-bottom: 15px;
}

/* Price display for estimated cost */
#estimated_cost {
    color: #2ecc71;
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .party-packages .inline-option {
        width: 100%;
    }
}

/* Success Message */
#success-message {
    text-align: center;
    margin-top: 20px;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #4caf50;
    position: relative;
    margin: 0 auto 20px;
}

.checkmark-circle .checkmark {
    width: 40px;
    height: 20px;
    border-left: 6px solid white;
    border-bottom: 6px solid white;
    position: absolute;
    left: 30px;
    top: 50px;
    transform: rotate(-45deg);
}

/* Container for the booking form and cart */
.booking-container {
    display: flex;
    justify-content: space-between;
    max-width: 65%;
    margin: auto;
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

/* Ensure the entire page content container has appropriate layout */
.page-container {
    display: flex;
    justify-content: center;
}

#cart-summary {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    font-family: Arial, sans-serif;
}

#cart-summary h3 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#cart-summary p {
    margin: 10px 0;
}

#cart-summary strong {
    font-size: 1.2em;
    color: #333;
}

#cart-summary .green-discount {
    color: #28a745;
    text-decoration: line-through;
}

/* Sticky behavior for the cart */
.sticky-cart {
    position: fixed;
    top: unset;
    right: 20px;
    width: 300px;
    z-index: 1000;
}

/* Ensure the cart has some spacing on smaller screens */
@media (max-width: 768px) {
    .sticky-cart {
        position: relative;
        width: 100%;
        top: unset;
        right: unset;
    }
}

/* Custom Date Picker Styles */
.custom-datepicker {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 10px;
    display: none;
    width: 280px; /* Increased width for a more square shape */
    border-radius: 8px; /* Rounded borders as shown in the screenshot */
}

.flatpickr-months {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 2.5rem;
}

.flatpickr-month {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    line-height: 2rem;
    white-space: nowrap;
    position: relative;
}

.flatpickr-current-month {
    display: inline-block;
    vertical-align: middle;
}

.flatpickr-prev-month, .flatpickr-next-month {
    font-size: 1.5rem;
    width: 2rem;
    height: 2rem;
    background-color: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flatpickr-prev-month:hover, .flatpickr-next-month:hover {
    background-color: #e0e0e0;
}

.flatpickr-months .flatpickr-next-month,
.flatpickr-months .flatpickr-prev-month {
    position: absolute;
    top: 0;
    bottom: 0;
}

.flatpickr-prev-month {
    left: 0;
}

.flatpickr-next-month {
    right: 0;
}

.flatpickr-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    width: 100%; /* Takes full width of custom-datepicker */
}

.dayContainer {
    display: contents;
}

.flatpickr-day {
    text-align: center;
    padding: 6px; /* Adjusted padding for better spacing */
    border: 1px solid #e6e6e6;
    cursor: pointer;
    width: 32px; /* Explicit width to make cells more square */
    height: 32px; /* Explicit height to make cells more square */
    line-height: 32px; /* Center text vertically */
    box-sizing: border-box;
}

.flatpickr-day:hover {
    background-color: #f0f0f0;
}

.flatpickr-day.selected {
    background-color: #000;
    color: white;
}

.flatpickr-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.flatpickr-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

.flatpickr-weekday {
    padding: 5px;
    width: 32px; /* Match the width of the days */
    height: 32px;
    line-height: 32px;
    box-sizing: border-box;
}

/* Ensure parent elements don’t interfere */
.booking-container, .section-group, .name-email {
    position: relative;
    overflow: visible !important;
    z-index: 1;
}