:root {
    --primary-color: #4A90E2;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --background-color: #f5f7fa;
    --card-background: #ffffff;
    --text-color: #2c3e50;
    --border-color: #dfe6e9;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.container {
    max-width: 600px;
    width: 100%;
    background-color: var(--card-background);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 20px var(--shadow-color);
    animation: slideUp 0.5s ease-out;
}

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

h1 {
    font-size: 2rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"],
select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    cursor: pointer;
}

button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.loading {
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#hiddenCanvas {
    display: none;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.response-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.character-count {
    font-size: 0.875rem;
    color: #666;
    text-align: right;
    margin-top: 0.25rem;
}

.field-hint {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .response-options {
        grid-template-columns: 1fr;
    }
}

.question-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.question-item p {
    margin: 5px 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox {
    margin-right: 10px;
}

.character-count {
    text-align: right;
    font-size: 12px;
    color: #666;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    justify-content:center;
    margin-bottom: -1.5rem;
}