.booking {
    max-width: 900px;
    width: 90%;
    margin: 0 auto; /* 水平居中 */
    padding: 15px;
    box-sizing: border-box;
    box-shadow: 0px 5px 5px rgba(202, 202, 202, 0.5);
    margin-bottom: 30px;
}

.booking h1 {
    text-align: center;
}

form {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
}

.form_1{
    margin: auto;
    margin-bottom: 15px;
}

.form_1 h1,h2 {
    margin: auto;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.form_1 label {
    white-space: nowrap; /* 防止文本换行 */
    color: #666;
    height: 30px;
}

.next_button {
    min-width: 170px;
    margin: auto;
    display: inline-block;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    box-sizing: border-box;
    transition: background-color 0.5s;
}

.next_button:hover {
    min-width: 200px;
    background-color: #0056b3; /* 按钮在悬停时的颜色变化 */
}

.form_1 input[type="text"]{
    height: 30px;
    width: 100%; /* 充满容器宽度 */
    max-width: 400px;
    border: 1px solid #ddd; /* 边框 */
    border-radius: 4px; /* 边框圆角 */
}

.form_2 th, .form_2 td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.form_2 .head {
    text-align: center;
    background-color: #f2f2f2;
}

.form_2 input[type="text"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #eee; /* 更浅的边框颜色 */
    background-color: #f9f9f9; /* 浅灰色背景 */
    box-sizing: border-box;
    color: #666; /* 深灰色文本颜色 */
    pointer-events: none; /* 禁止鼠标事件 */
    user-select: none; /* 禁止文本选择 */
}

.form_2 input[type="checkbox"] {
    margin-left: 5px;
    width: 20px; /* 增加复选框的宽度 */
    height: 20px; /* 增加复选框的高度 */
    cursor: pointer; /* 鼠标悬停时显示指针，增强用户体验 */
}

.form_2 tfoot td {
    font-weight: bold;
    background-color: #e7e7e7;
    text-align: right;
}

.form_2 tfoot input[type="text"] {
    font-weight: bold;
    text-align: right;
}

.form_2{
    margin: auto;
    margin-bottom: 15px;
}

.form_2 table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.form_2 img{
    width: 30px;
    height: auto;
}
/* 通用按钮样式 */
.icon-button {
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 10px 15px;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background-color: rgba(193, 255, 142, 0.5);
    border-radius: 5px;
    transition: background-color 0.3s;
    animation: pulse 2s infinite;
}

.icon-button:hover {
    background-color: #66ff00;
}

.icon-button:nth-child(1) { animation-delay: 0s; }
.icon-button:nth-child(2) { animation-delay: 0.2s; }
.icon-button:nth-child(3) { animation-delay: 0.4s; }
.icon-button:nth-child(4) { animation-delay: 0.6s; }
.icon-button:nth-child(5) { animation-delay: 0.8s; }

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.2);
    }
}

/* 删除按钮样式 */
.delete-button {
    background-color: rgba(255, 0, 0, 0.5);
}

.delete-button:hover {
    background-color: rgb(255, 0, 0);
}

/* Material Icons 样式 */
.material-icons {
    font-size: 24px;
    vertical-align: middle;
}

.booking ul {
    list-style-type: none; /* Removes the default list styling */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

.booking li {
    margin-bottom: 10px; /* Adds space between each list item */
}

.booking a {
    display: block; /* Makes the link fill the entire list item for easier clicking */
    padding: 10px; /* Adds some padding for aesthetics and better clickability */
    background-color: #f2f2f2; /* A light grey background color */
    color: #000000; /* Sets the text color to black */
    text-decoration: none; /* Removes the underline from links */
    border-radius: 5px; /* Optional: rounds the corners of the link boxes */
    transition: background-color 0.3s; /* Smooth background color change on hover */
}

.booking a:hover {
    background-color: #ddd; /* Slightly darker background on hover */
}

.wrong:hover{
    background-color: #ff0000;
}
.right:hover{
    background-color: #4af83b;
}
.id {
    max-width: 30px;
}
.discount {
    text-align: center; /* Center aligns the text */
    margin: 20px; /* Adds some space around the discount container */
}

.discount h1 {
    margin-bottom: 20px; /* Space below the heading */
    color: #333; /* Dark text color for the heading */
}

.box {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    /* 移除固定高度，改为最小高度 */
    min-height: 150px; /* 根据需要调整这个值 */
}

.box img {
    max-width: 100px; /* 调整为合适的尺寸 */
    max-height: 80px; /* 添加最大高度 */
    object-fit: contain; /* 保证图片比例 */
    margin-right: 20px;
}

.item_detail p {
    text-align: right;
    margin: 5px 0; /* Space above and below each paragraph */
}

.item_detail h1 {
    font-size: 16px;
}

.box button {
    background-color: #4CAF50; /* Green background color */
    color: white; /* White text color */
    border: none; /* No border */
    padding: 10px 20px; /* Padding inside the button */
    text-align: center; /* Center align text */
    text-decoration: none; /* No text decoration */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 5px; /* Rounded corners */
    /* Removed position and right properties */
}

input[type="date"],
input[type="time"] {
    border: 1px solid #ccc; /* 边框颜色 */
    border-radius: 5px; /* 边框圆角 */
    padding: 8px 10px; /* 内边距 */
    font-size: 16px; /* 字体大小 */
    color: #333; /* 字体颜色 */
    background-color: #f8f8f8; /* 背景颜色 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 阴影效果 */
    transition: border-color 0.3s, box-shadow 0.3s; /* 过渡效果 */
}

input[type="date"]:focus,
input[type="time"]:focus {
    border-color: #4d90fe; /* 焦点状态下的边框颜色 */
    box-shadow: 0 0 8px rgba(77,144,254,0.3); /* 焦点状态下的阴影效果 */
    outline: none; /* 移除默认轮廓 */
}

.question {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: center;
}

.question > div {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.question button {
    display: block;
    width: 100%;
    padding: 10px 20px;
    margin-bottom: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.question button:hover {
    background-color: #e0e0e0;
}

.question button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}