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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans TC', sans-serif;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e6 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
}

.form-section {
    padding: 25px 20px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 10px;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active {
    background: #e91e63;
    color: #fff;
}

.step.completed {
    background: #4caf50;
    color: #fff;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #e91e63;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: border-color 0.3s ease;
    appearance: none;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #e91e63;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.flavor-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flavor-option {
    position: relative;
}

.flavor-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.flavor-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flavor-option input:checked + .flavor-card {
    border-color: #e91e63;
    background: #fff5f7;
}

.flavor-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 14px;
    overflow: hidden;
    background: #f5f5f5;
}

.flavor-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flavor-icon.peach {
    background: #ffe5b4;
}

.flavor-icon.chocolate {
    background: #4a3728;
}

.flavor-icon.strawberry {
    background: #ffcdd2;
}

.flavor-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.flavor-info p {
    font-size: 12px;
    color: #888;
}

.flavor-info .limited {
    display: inline-block;
    background: #e91e63;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.flavor-info .unavailable {
    display: inline-block;
    background: #9e9e9e;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.flavor-option.disabled .flavor-card {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-line {
    background: #06c755;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-line:hover {
    background: #05b04a;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(6, 199, 85, 0.4);
}

.btn-line svg {
    width: 24px;
    height: 24px;
}

.login-desc {
    color: #888;
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

.welcome-user {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.welcome-user .form-group {
    margin-bottom: 16px;
}

.welcome-user .form-group:last-child {
    margin-bottom: 0;
}

.welcome-user .form-group label {
    color: #2e7d32;
}

.field-hint {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

.time-info-box {
    background: #f3e5f5;
    border: 2px solid #ce93d8;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #7b1fa2;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.date-option {
    position: relative;
}

.date-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.date-card {
    padding: 14px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-option input:checked + .date-card {
    border-color: #e91e63;
    background: #fff5f7;
}

.date-card .weekday {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.date-card .day {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.date-card .month {
    font-size: 11px;
    color: #666;
}

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

.time-option {
    position: relative;
}

.time-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.time-card {
    padding: 20px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-option input:checked + .time-card {
    border-color: #e91e63;
    background: #fff5f7;
}

.time-card .time-text {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

.time-card .time-range {
    font-size: 13px;
    color: #666;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

.success-message h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.success-message p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.booking-summary {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    text-align: left;
}

.booking-summary h3 {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.summary-item .label {
    color: #666;
    font-size: 14px;
}

.summary-item .value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

.loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #e91e63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

@media (max-width: 360px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 20px;
    }

    .form-section {
        padding: 20px 15px;
    }

    .date-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
