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

:root {
    --gold: #C9A962;
    --gold-light: #E8D5A3;
    --gold-dark: #A68B4B;
    --white: #FFFFFF;
    --off-white: #FDFCFA;
    --gray-light: #F5F4F2;
    --gray: #9A9A9A;
    --gray-dark: #666666;
    --text-dark: #2C2C2C;
    --shadow: rgba(201, 169, 98, 0.15);
}

body {
    font-family: 'Noto Serif TC', serif;
    background: linear-gradient(180deg, var(--off-white) 0%, var(--gray-light) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.cover-banner {
    position: relative;
    margin: -20px -20px 0 -20px;
    height: 140px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}
.cover-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cover-banner-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, var(--off-white) 0%, transparent 100%);
    pointer-events: none;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px var(--shadow);
    border: 1px solid rgba(201, 169, 98, 0.2);
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.diamond-icon {
    font-size: 28px;
    color: var(--gold);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.tagline {
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 2px;
    margin-top: 8px;
}

.activity-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.4;
}

.fullimage-banner-section {
    margin: 20px -20px;
    line-height: 0;
}
.fullimage-banner-section.fullimage-no-top-gap {
    margin-top: 0;
}
.fullimage-banner-section.fullimage-no-bottom-gap {
    margin-bottom: 0;
}
.fullimage-banner-section:first-child {
    margin-top: -20px;
}
.fullimage-banner-img {
    width: 100%;
    display: block;
}

.section {
    background: var(--white);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid rgba(201, 169, 98, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.gold-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-dark);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.required {
    color: var(--gold);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-family: 'Noto Serif TC', serif;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    background: var(--off-white);
    transition: all 0.3s ease;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
    background: var(--white);
}

.form-group input::placeholder,
.form-textarea::placeholder {
    color: #CCCCCC;
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-prefix {
    width: 100px;
    padding: 16px 8px;
    font-size: 14px;
    font-family: 'Noto Serif TC', serif;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    background: var(--off-white);
    color: var(--text-dark);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
}

.phone-prefix:focus {
    outline: none;
    border-color: var(--gold);
}

.phone-input-group input[type="tel"] {
    flex: 1;
}

.radio-grid,
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.radio-row {
    display: flex;
    gap: 12px;
}

.radio-row .radio-card {
    flex: 1;
}

.radio-card,
.checkbox-card {
    position: relative;
    cursor: pointer;
}

.radio-card input,
.checkbox-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-label,
.checkbox-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: var(--off-white);
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 60px;
}

.radio-card input:checked + .radio-label,
.checkbox-card input:checked + .checkbox-label {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.08) 0%, rgba(232, 213, 163, 0.15) 100%);
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.2);
}

.radio-card:hover .radio-label,
.checkbox-card:hover .checkbox-label {
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

.checkbox-card {
    grid-column: span 2;
}

.checkbox-label {
    padding: 20px;
}

.service-name {
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

.question {
    font-size: 14px;
    color: var(--gray-dark);
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--white);
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.submit-btn {
    width: 100%;
    padding: 18px 32px;
    font-family: 'Noto Serif TC', serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(201, 169, 98, 0.4);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(201, 169, 98, 0.5);
}

.btn-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Services Showcase */
.services-showcase-section {
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(var(--desktop-cols, 2), 1fr);
    gap: 16px;
}

.service-showcase-card {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.04) 0%, rgba(232, 213, 163, 0.08) 100%);
    border: 1px solid rgba(201, 169, 98, 0.15);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    cursor: default;
    text-decoration: none;
    color: inherit;
}

.service-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.2);
}

.service-selectable {
    cursor: pointer;
    position: relative;
    border: 2px dashed rgba(201, 169, 98, 0.4);
    background: var(--white);
    transition: all 0.25s ease;
}
.service-selectable:hover {
    border-color: var(--gold);
    border-style: solid;
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.18);
}
.service-selectable:has(.svc-select-input:checked) {
    border-color: var(--gold);
    border-style: solid;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.06) 0%, rgba(232, 213, 163, 0.12) 100%);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15), 0 4px 20px rgba(201, 169, 98, 0.15);
}
.svc-select-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.svc-select-indicator {
    display: flex;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(201, 169, 98, 0.35);
    background: var(--white);
    position: absolute;
    top: 12px;
    right: 12px;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 14px;
    transition: all 0.2s ease;
    z-index: 2;
}
.svc-select-indicator::after {
    content: '✓';
}
.service-selectable:has(.svc-select-input:checked) .svc-select-indicator {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 2px 8px rgba(201, 169, 98, 0.4);
}
.svc-select-hint {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--gold);
    padding: 0 16px 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.service-selectable:has(.svc-select-input:checked) .svc-select-hint {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.service-showcase-img {
    width: 100%;
    overflow: hidden;
}

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

.service-showcase-body {
    padding: 16px;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
}

.service-showcase-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.service-showcase-desc {
    font-size: 13px;
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.service-showcase-desc * {
    max-width: 100% !important;
}

.service-showcase-desc font[size="7"] {
    font-size: clamp(18px, 4vw, 28px) !important;
}
.service-showcase-desc font[size="5"] {
    font-size: clamp(14px, 3vw, 20px) !important;
}

.service-showcase-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 6px 0;
    display: block;
}

.service-showcase-prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 6px;
}
.svc-show-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
}
.svc-show-price-old {
    font-size: 14px;
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
}
.svc-show-price-special {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
}

/* LINE Page */
.line-container {
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.line-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 28px 100px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 50px var(--shadow);
    border: 1px solid rgba(201, 169, 98, 0.1);
}

.line-icon {
    margin-bottom: 14px;
}

.line-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.line-completion-msg {
    font-size: 15px;
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.08) 0%, rgba(232, 213, 163, 0.12) 100%);
    border-radius: 12px;
    border: 1px solid rgba(201, 169, 98, 0.15);
}

.line-benefits {
    background: linear-gradient(135deg, rgba(6, 199, 85, 0.05) 0%, rgba(6, 199, 85, 0.1) 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 28px;
}

.benefit-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.benefit-icon {
    color: #06C755;
    font-weight: bold;
    font-size: 16px;
}

.line-btn-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(255,255,255,1) 60%, rgba(255,255,255,0));
    z-index: 100;
}

.line-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 32px;
    font-family: 'Noto Serif TC', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    background: #06C755;
    text-decoration: none;
    border-radius: 14px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(6, 199, 85, 0.4);
    animation: lineBtnPulse 2s ease-in-out infinite;
}

.line-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: lineIconWiggle 2.5s ease-in-out infinite;
}

@keyframes lineIconWiggle {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-8deg) scale(1.1); }
    30% { transform: rotate(6deg) scale(1.05); }
    45% { transform: rotate(-4deg); }
    60% { transform: rotate(2deg); }
    75% { transform: rotate(0deg); }
}

.line-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    text-align: left;
}
.line-btn-text span:first-child {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
}
.line-btn-text span:last-child {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.9;
}

@keyframes lineBtnPulse {
    0%, 100% { box-shadow: 0 6px 25px rgba(6, 199, 85, 0.4); }
    50% { box-shadow: 0 6px 35px rgba(6, 199, 85, 0.6); }
}

.line-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(6, 199, 85, 0.5);
    background: #05b34d;
}
.line-btn:hover .line-btn-icon {
    animation-play-state: paused;
}

.decorative-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto;
}

.info-card,
.services-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 6px 30px var(--shadow);
    border: 1px solid rgba(201, 169, 98, 0.1);
}

.card-header {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 15px;
}

.diamond-small {
    font-size: 12px;
    opacity: 0.8;
}

.info-content {
    padding: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: var(--gray);
}

.info-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    text-align: right;
    max-width: 60%;
}

.services-list {
    padding: 20px 24px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

.service-item:last-child {
    border-bottom: none;
}

.service-bullet {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.service-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
}

.form-closed-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 60px 20px;
}

.form-closed-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.form-closed-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-dark);
    line-height: 1.6;
}

@media (max-width: 480px) {
    .container { padding: 16px; }
    .header { padding: 30px 16px; }
    .section { padding: 24px 20px; }
    .fullimage-banner-section { margin-left: -16px; margin-right: -16px; }
    .fullimage-banner-section:first-child { margin-top: -16px; }
    .radio-grid { grid-template-columns: 1fr; }
    .radio-row { flex-direction: column; }
    .line-card { padding: 30px 20px; }
    .info-value { max-width: 55%; }
    .services-grid {
        grid-template-columns: repeat(var(--mobile-cols, 1), 1fr);
        gap: 12px;
    }
}
