@charset "utf-8";

/* =====================================================
   GOOD TV 線上客服 — service_new.css
   ===================================================== */

:root {
    --blue:        #1057a7;
    --blue-dark:   #0d4690;
    --blue-light:  #e8f0fb;
    --border:      #d0dce8;
    --text:        #2c3e50;
    --hint:        #6c757d;
    --must:        #c0392b;
    --input-bg:    #fafafa;
    --card-shadow: 0 4px 20px rgba(16, 87, 167, .09);
}

/* ── 整體容器 ── */
.svc-wrap {
    max-width: 800px;
    margin: 40px auto 60px;
    padding: 0 16px;
}

/* ── 開場說明 ── */
.svc-intro {
    text-align: center;
    line-height: 2;
    font-size: 1rem;
    letter-spacing: 1.5px;
    color: var(--text);
    margin-bottom: 24px;
}
@media (max-width: 600px) {
    .svc-intro br { display: none; }
}

/* ── 卡片 ── */
.svc-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    padding: 32px 40px;
}
@media (max-width: 600px) {
    .svc-card  { padding: 22px 18px; }
    .svc-wrap  { margin: 20px auto 40px; }
}

/* ── Section 分隔 ── */
.svc-section {
    padding: 22px 0;
    border-bottom: 1px solid #eef2f7;
}
.svc-section:first-child { padding-top: 8px; }
.svc-section:last-child  { border-bottom: none; padding-bottom: 0; }

/* ── Label ── */
.svc-label {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: .95rem;
    margin-bottom: 10px;
    letter-spacing: .5px;
}
.svc-must {
    color: var(--must);
    font-size: .82rem;
    font-weight: 500;
    margin-left: 4px;
}

/* ── 提示文字 ── */
.svc-hint {
    font-size: .83rem;
    color: var(--hint);
    line-height: 1.65;
    margin-bottom: 8px;
}

/* ── 輸入框 ── */
.svc-input {
    display: block;
    width: 100%;
    padding: 9px 13px;
    font-size: 1rem;
    color: var(--text);
    background: var(--input-bg);
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.svc-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(16, 87, 167, .12);
    background: #fff;
}
.svc-input.warning {
    border-color: var(--must) !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}
.svc-captcha-input {
    width: 160px;
    margin-top: 10px;
    letter-spacing: 3px;
}

/* ── 問題分類 ── */
.classify_ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.classify_ul > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}
.classify_ul input[type=radio] {
    width: 1.15em;
    height: 1.15em;
    accent-color: var(--blue);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}
.classify_label {
    cursor: pointer;
    letter-spacing: 1px;
    color: var(--text);
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}
.classify_label a {
    text-decoration: none;
    color: inherit;
}
.unsubscribe_magazine {
    color: #1a7a3a;
    font-weight: 600;
}

/* 分類必填紅框 */
.warning-block {
    border: 2px solid var(--must);
    border-radius: 8px;
    padding: 8px 10px;
}

/* oid=31 子清單 */
.children_of_31 {
    display: none;
    width: 100%;
    padding-left: 24px;
    margin-top: 4px;
}
.children_of_31 ul {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #666;
}
.children_of_31 ul li {
    padding: 3px 0;
    font-size: .88rem;
}

/* ── 月刊快捷按鈕 ── */
.btn-magazine {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 8px;
    background: #147ac2;
    color: #fff !important;
    font-weight: 500;
    border-radius: 6px;
    letter-spacing: 1px;
    text-decoration: none !important;
    font-size: .88rem;
    transition: background .2s;
}
.btn-magazine:hover {
    background: #0f62a0;
}

/* ── 驗證碼區 ── */
.svc-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}
#verification_img {
    height: 44px;
    border-radius: 5px;
    border: 1px solid #ddd;
    vertical-align: middle;
}
.btn-refresh {
    padding: 5px 14px;
    font-size: .9rem;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background .2s;
}
.btn-refresh:hover { background: #e0e0e0; }

/* ── 建議內容 textarea ── */
.detail_container textarea {
    display: block;
    width: 100%;
    padding: 10px 13px;
    font-size: 1rem;
    color: var(--text);
    background: var(--input-bg);
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    resize: vertical;
    line-height: 1.7;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.detail_container textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(16, 87, 167, .12);
    background: #fff;
}
.detail_container.warning textarea {
    border-color: var(--must) !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}

/* ── 上傳檔案 ── */
.list_upload {
    list-style: none;
    margin: 0;
    padding: 0;
}
.list_upload > li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}
.list_upload > li:last-child { border-bottom: none; }

.upload-trigger {
    flex-shrink: 0;
}
.btn-upload {
    display: inline-block;
    padding: 6px 14px;
    background: #4682b4;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: .85rem;
    letter-spacing: 1px;
    user-select: none;
    white-space: nowrap;
    transition: background .2s;
    min-width: 80px;
    text-align: center;
}
.btn-upload:hover { background: #2c5f8a; }

/* 縮圖容器 */
.preview_container,
.file_content {
    width: 110px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.preview_container img {
    display: block;
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
}
.preview_container img.pdf_size {
    width: 36px;
    max-height: 36px;
}
.preview_container .file_name,
.file_content .file_name {
    font-size: .68rem;
    color: #555;
    margin-top: 3px;
    text-align: center;
    word-break: break-all;
    padding: 0 4px;
    line-height: 1.3;
}
.over_size {
    display: inline-block;
    font-size: .73rem;
    color: #fff;
    background: #e74c3c;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 2px;
    word-break: break-word;
    max-width: 110px;
    text-align: center;
}

/* ── 送出區 ── */
.svc-submit-area {
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.svc-feedback {
    display: inline-block;
    margin-bottom: 18px;
    padding: 10px 22px;
    border-radius: 7px;
    font-size: .97rem;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.6;
    max-width: 100%;
}
.svc-feedback-info  { background: #d1ecf1; color: #0c5460; }
.svc-feedback-error { background: #f8d7da; color: #721c24; }
.svc-feedback-ok    { background: #d4edda; color: #155724; }

.btn-send {
    padding: 11px 44px;
    background: #4682b4;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 4px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .15s, opacity .15s;
    box-shadow: 0 3px 10px rgba(16, 87, 167, .3);
}
.btn-send:hover:not(:disabled) {
    background: #2c5f8a;
    transform: translateY(-1px);
}
.btn-send:disabled {
    background: #8daed6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ── 完成頁 ── */
.svc-statement {
    font-size: 1rem;
    line-height: 2.1;
    letter-spacing: 1.5px;
    color: var(--text);
}
@media (max-width: 600px) {
    .svc-statement br { display: none; }
}
