/* 表單樣式 */

h1 {
    text-align: center;
    color: #333;
    margin: 0px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group-inline {
    display: flex;
    gap: 20px;
}

.form-field-15 {
    flex: 0 0 15%;
    /* 讓兩個選項各佔 15% 空間 */
}

.form-field-30 {
    flex: 0 0 30%;
    /* 讓兩個選項各佔 30% 空間 */
}

.form-field-45 {
    flex: 0 0 45%;
    /* 讓兩個選項各佔 45% 空間 */
}

.form-field-60 {
    flex: 0 0 60%;
    /* 讓兩個選項各佔 60% 空間 */
}

.form-field-90 {
    flex: 0 0 90%;
}

.form-field-100 {
    flex: 0 0 100%;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.required {
    color: red;
}

input[type="text"],
input[type="url"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 calc(50% - 5px);
}

.checkbox-item label {
    flex: 0 0 120px;
    min-width: 120px;
    margin-bottom: 0;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
}

.checkbox-item input[type="url"] {
    flex: 1;
    min-width: 0;
}

.url-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.url-input input {
    flex: 1;
}

.iframe-container {
    margin-top: 10px;
}

.iframe-container input {
    margin-bottom: 10px;
}

.credit-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.credit-section h3 {
    margin-top: 0;
    color: #666;
}

.tag-input input {
    margin-bottom: 10px;
}

.content-hint {
    font-size: 12px;
    color: #666;
}

.faq-link {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 1px dashed #007bff;
    transition: all 0.2s;
}

.faq-link:hover {
    color: #0056b3;
    border-bottom-style: solid;
}

.faq-item.highlight {
    background-color: #fff9c4;
    transition: background-color 1s;
}

.tab-content button {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.tab-content button:hover {
    background-color: #0056b3;
}

input[type="text"]:disabled,
input[type="url"]:disabled,
button:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.section-title {
    background-color: #e9ecef;
    padding: 10px;
    margin: 20px 0 10px 0;
    border-radius: 5px;
    font-weight: bold;
    color: #495057;
}


/* 說明文字區 */
.description-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.qrcode-container {
    display: flex;
    justify-content: space-between;
    /* 將內容分開並排 */
    align-items: center;
    /* 垂直居中對齊 */
    gap: 20px;
    /* 說明文字和 QR 碼之間的間距 */
}

.qrcode-container p {
    margin: 0;
    /* 移除段落的預設外邊距 */
}

.qrcode-description {
    flex: 1;
    /* 讓說明文字區塊佔據可用空間 */
    width: 70%;
}

.qrcode-image {
    width: 30%;
}

/* Credit field dynamic buttons */
.credit-field-group {
    margin-bottom: 15px;
}

.credit-label {
    display: block;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.credit-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-credit-btn,
.remove-credit-btn {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    transition: opacity 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
}

.add-credit-btn {
    color: #28a745;
}

.add-credit-btn:hover {
    opacity: 0.7;
}

.add-credit-btn.disabled {
    color: #999;
    cursor: not-allowed;
}

.remove-credit-btn {
    color: #dc3545;
}

.remove-credit-btn:hover {
    opacity: 0.7;
}