/**
 * 插件公共端樣式
 *
 * @since      1.0.0
 */

/* 問卷容器 */
.dolphin-survey-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 問卷標題和描述 */
.dolphin-survey-container .survey-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 20px;
}

.dolphin-survey-container .survey-header h2 {
    color: #0066cc;
    margin-bottom: 10px;
}

.dolphin-survey-container .survey-description {
    color: #666;
}

/* 進度條 */
.survey-navigation {
    margin-bottom: 20px;
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background-color: #0066cc;
    border-radius: 5px;
    width: 0;
    transition: width 0.3s ease;
}

.step-indicator {
    text-align: right;
    font-size: 14px;
    color: #666;
}

/* 問題部分 */
.survey-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.survey-section h3 {
    color: #0066cc;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.question-description {
    color: #666;
    margin-bottom: 15px;
}

/* 表單元素 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* 評分選項 */
.rating-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-option {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.rating-option input {
    margin-right: 5px;
}

/* 必填標記 */
.required {
    color: #e74c3c;
}

/* 按鈕 */
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.prev-btn,
.next-btn {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: #e0e0e0;
}

.submit-btn,
.submit-survey-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover,
.submit-survey-btn:hover {
    background-color: #004c99;
}

/* 感謝信息 */
.thank-you-message {
    text-align: center;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
}

.thank-you-message h3 {
    color: #0066cc;
    margin-top: 0;
}

.coupon-code {
    display: block;
    font-size: 24px;
    color: #0066cc;
    margin: 20px 0;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px dashed #0066cc;
    border-radius: 4px;
}

.coupon-details {
    margin: 20px 0;
    color: #666;
}

/* 訂閱表單 */
.dolphin-subscribe-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.dolphin-subscribe-container h3 {
    color: #0066cc;
    margin-top: 0;
    text-align: center;
}

.dolphin-subscribe-form {
    margin-top: 20px;
}

.subscribe-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.subscribe-btn:hover {
    background-color: #004c99;
}

.subscribe-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.subscribe-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.subscribe-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 聲明和同意部分 */
.consent-section {
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.consent-text {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.consent-text p {
    margin-bottom: 15px;
}

.consent-options {
    margin-top: 20px;
}

.consent-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.consent-option input[type="radio"] {
    margin-top: 5px;
    margin-right: 10px;
}

.consent-option label {
    font-weight: normal;
}

.consent-note {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* 錯誤信息 */
.dolphin-survey-error {
    color: #e74c3c;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .survey-section {
        padding: 20px;
    }

    .rating-group {
        flex-direction: column;
        gap: 5px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .prev-btn,
    .next-btn,
    .submit-btn,
    .submit-survey-btn {
        width: 100%;
    }
}
