:root {
    --oatmeal: #F2EFE9;
    --deep-grey: #4A4A4A;
    --muted-gold: #B5A48B;
}

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

body {
    background-color: var(--oatmeal);
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--deep-grey);
    overflow-x: hidden;
}

.serif {
    font-family: 'Noto Serif', serif;
}

.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

/* .serif-en { font-family: 'Playfair Display', serif; } */
.line-green { background-color: #06C755; }
.promo-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9f7f2 100%);
    border: 1px solid #eee;
}

/* 按鈕優化：微圓角與優雅過渡 */
.btn-link {
    background-color: transparent;
    border: 1px solid var(--deep-grey);
    transition: all 0.4s ease;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.btn-link:hover {
    background-color: var(--deep-grey);
    color: white;
    transform: translateY(-2px);
}

.fade-in {
    animation: slideIn 0.6s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(12px);
    }
    to {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        animation: none;
    }
}

.logo-ring {
    border: 1px solid var(--muted-gold);
    padding: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* 彈出視窗樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
}

/* 電腦屏幕時縮小價目表尺寸 */
@media (min-width: 768px) {
    #pricingModal .modal-content {
        max-width: 60vw;
        max-height: 90vh;
    }
}

@media (min-width: 1024px) {
    #pricingModal .modal-content {
        max-width: 40vw;
        max-height: 90vh;
    }
}

.pricing-img {
    display: block;
    width: 100%;
    height: auto;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    z-index: 10;
}

/* 改進的分類切換按鈕 */
.notice-btn {
    transition: all 0.3s ease;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    border: 1px solid #E5E7EB;
    cursor: pointer;
}

.notice-btn.active {
    background-color: white;
    color: var(--deep-grey);
    border-color: var(--muted-gold);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-weight: 500;
}

.content-scroll {
    scrollbar-width: thin;
    scrollbar-color: #E5E7EB transparent;
}

/* 強化版的術前術後分段控制器 */
.phase-selector {
    background-color: #F3F4F6;
    padding: 4px;
    border-radius: 9999px;
    display: flex;
    position: relative;
}

.phase-tab {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #6B7280;
    text-align: center;
    border-radius: 9999px;
    transition: all 0.3s;
    z-index: 1;
    border: none;
    background: none;
    cursor: pointer;
}

.phase-tab.active {
    background-color: white;
    color: var(--deep-grey);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Tailwind 相關的實用類 */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-5 > * + * {
    margin-top: 1.25rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.list-decimal {
    list-style-type: decimal;
}

.list-disc {
    list-style-type: disc;
}

.pl-5 {
    padding-left: 1.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-20 {
    margin-top: 5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-light {
    font-weight: 300;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.underline {
    text-decoration: underline;
}

.text-stone-400 {
    color: #a8a29e;
}

.text-stone-600 {
    color: #78716c;
}

.text-stone-700 {
    color: #57534e;
}

.text-stone-800 {
    color: #292524;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-blue-600 {
    color: #2563eb;
}

.text-red-700 {
    color: #b91c1c;
}

.text-red-900 {
    color: #7f1d1d;
}

.bg-white {
    background-color: #ffffff;
}

.bg-gray-300 {
    background-color: #d1d5db;
}

.bg-stone-50 {
    background-color: #fafaf9;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.border-t {
    border-top: 1px solid;
}

.border {
    border: 1px solid;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-stone-100 {
    border-color: #e7e5e4;
}

.border-stone-200 {
    border-color: #d6d3d1;
}

.border-stone-300 {
    border-color: #c8c7c1;
}

.border-red-200 {
    border-color: #fecaca;
}

.border-l-4 {
    border-left: 4px solid;
}

.border-l-2 {
    border-left: 2px solid;
}

.rounded-sm {
    border-radius: 0.125rem;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.h-24 {
    height: 6rem;
}

.h-5 {
    height: 1.25rem;
}

.w-24 {
    width: 6rem;
}

.w-5 {
    width: 1.25rem;
}

.w-12 {
    width: 3rem;
}

.w-full {
    width: 100%;
}

.max-w-md {
    max-width: 28rem;
}

.min-h-screen {
    min-height: 100vh;
}

.max-h-\[45vh\] {
    max-height: 45vh;
}

.max-h-\[70vh\] {
    max-height: 70vh;
}

.overflow-y-auto {
    overflow-y: auto;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.tracking-tighter {
    letter-spacing: -0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.tracking-\[0\.2em\] {
    letter-spacing: 0.2em;
}

.tracking-\[0\.3em\] {
    letter-spacing: 0.3em;
}

.tracking-\[0\.4em\] {
    letter-spacing: 0.4em;
}

.leading-relaxed {
    line-height: 1.625;
}

.hover\:underline:hover {
    text-decoration: underline;
}

.decoration-2 {
    text-decoration-thickness: 2px;
}

.underline-offset-4 {
    text-underline-offset: 4px;
}

.grid {
    display: grid;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.gap-y-2 {
    row-gap: 0.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.pb-1 {
    padding-bottom: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

/* SM media query */
@media (min-width: 640px) {
    .sm\:p-8 {
        padding: 2rem;
    }
}

/* ===== 表單驗證錯誤樣式 ===== */
.form-group .error-msg {
    display: none;
    color: #b94a48;
    font-size: 12px;
    margin-top: 6px;
    font-weight: normal;
}

.form-group.form-error {
    background-color: #fff5f5;
    border-left: 3px solid #b94a48;
    padding-left: 12px;
    border-radius: 4px;
}

.form-group.form-error .error-msg {
    display: block;
}

.form-group.form-error > label {
    color: #b94a48;
}

.form-group.form-error input[type="text"],
.form-group.form-error input[type="tel"],
.form-group.form-error input[type="date"],
.form-group.form-error textarea {
    border-color: #b94a48;
    background-color: #fff0f0;
}

.form-group.form-error .checkbox-group {
    box-shadow: 0 0 0 1.5px #b94a48;
    border-radius: 24px;
    padding: 6px;
}
body.form-page {
    background-color: var(--oatmeal);
    line-height: 1.6;
    padding: 20px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-container h1 {
    text-align: center;
    color: var(--deep-grey);
    font-size: 24px;
    border-bottom: 2px solid var(--muted-gold);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title {
    background: var(--oatmeal);
    padding: 8px 15px;
    border-left: 5px solid var(--muted-gold);
    margin: 20px 0 15px;
    font-weight: bold;
    color: var(--deep-grey);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--deep-grey);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d3c8;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #faf9f7;
    color: var(--deep-grey);
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--muted-gold);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d9d3c8;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    color: var(--deep-grey);
}

.checkbox-item:hover {
    background: var(--oatmeal);
    border-color: var(--muted-gold);
}

.checkbox-item input {
    margin-right: 5px;
    accent-color: var(--muted-gold);
}

.submit-btn {
    width: 100%;
    background: var(--deep-grey);
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
    letter-spacing: 0.05em;
    font-family: 'Noto Sans TC', sans-serif;
}

.submit-btn:hover {
    background: var(--muted-gold);
    transform: translateY(-2px);
}

.notice {
    font-size: 13px;
    color: #666;
    background: var(--oatmeal);
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    border: 1px solid var(--muted-gold);
}
