/* === public/css/booking.css === */
/* 全域 reset 由 app.css 提供 */
:root {
    --primary: #f5821f;
    --primary-dark: #d86f15;
}

.page-head {
    margin-bottom: 12px;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.page-desc {
    font-size: 14px;
    color: #666;
}

/* Card / block */
.block {
    background: #fff;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
    padding: 16px 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.block-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.block-tag {
    font-size: 12px;
    color: var(--primary);
    background: #fff4e5;
    border-radius: 999px;
    padding: 2px 8px;
}

.block-body {
    font-size: 14px;
    color: #444;
}

.block-body h3 {
    font-size: 14px;
    font-weight: 600;
}

.block-body ul,
.block-body ol {
    padding-left: 1.2rem;
}

.block-body li+li {
    margin-top: 2px;
}

/* Form */
.booking-form .form-label {
    font-size: 14px;
    font-weight: 500;
}

.req::after {
    content: " *";
    color: #e53935;
}

.booking-form small {
    font-size: 12px;
    color: #666;
}

.booking-form fieldset {
    border-color: #e0e0e0 !important;
}

.booking-form legend {
    font-size: 13px;
    color: #777;
}

#msg {
    font-size: 13px;
    color: #666;
}

/* 勾選須知區塊置中 */
.form-check.agree-notice {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
}

.form-check.agree-notice .form-check-input {
    margin-top: 0.2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    touch-action: manipulation;
}

.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.btn-secondary {
    background: #fff;
    color: #333;
    border-color: #ccc;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #b5b5b5;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 13px;
}

.btn-confirm {
    background: #77c1a0;
    border-color: #77c1a0;
    color: #fff;
}

.btn-confirm:hover {
    background: #68b291;
    border-color: #5ea586;
    color: #fff;
}

/* Modal */
.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-backdrop-custom.show {
    display: flex;
}

.modal-content-custom {
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    padding: 16px 20px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header-custom {
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.modal-header-custom h5 {
    flex: 1;
    text-align: center;
    margin: 0;
}

.modal-body-custom {
    overflow-y: auto;
    padding-right: 4px;
    font-size: 14px;
    line-height: 1.6;
}

.modal-body-custom ol {
    padding-left: 1.5rem;
    list-style-position: inside;
}

.modal-footer-custom {
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 8px;
    text-align: center;
}

.btn-close-custom {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    color: #666;
    cursor: pointer;
}

.btn-close-custom:hover {
    color: #000;
}

.notice-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

.notice-link:hover {
    color: var(--primary-dark);
}

@media (max-width: 600px) {
    .app-main {
        padding: 0 10px 24px;
    }

    .page-title {
        font-size: 18px;
    }

    .modal-content-custom {
        max-width: 92%;
        padding: 12px 14px 10px;
    }
}