/* 聯絡我們頁面樣式 */

/* 使用與首頁相同的容器設定 */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 50px;
}

/* 標題樣式 */
.C_title {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', sans-serif;
}

.C_title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 新的表單樣式 */
.contact-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', sans-serif;
}

.form-input, .form-select, .form-textarea {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Microsoft JhengHei', '微軟正黑體', Arial, sans-serif;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: #8b92a9;
}

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

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 50px;
    appearance: none;
}

.form-file {
    padding: 10px 16px;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-file:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.form-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
}

/* 驗證碼樣式 */
.captcha-group {
    position: relative;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    min-width: 100px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.captcha-input {
    width: 150px !important;
    height: 50px !important;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* 按鈕樣式 */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', sans-serif;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn i {
    font-size: 16px;
}

/* 必填標記 */
red {
    color: #e74c3c;
    font-weight: bold;
    margin-right: 3px;
}

/* 成功訊息樣式 */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .about-container {
        padding: 15px;
        margin-top: 20px;
    }
    
    .C_title {
        font-size: 1.5em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 5px;
    }
    
    .captcha-container {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .captcha-input {
        width: 100% !important;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 12px;
        margin-top: 20px;
    }
    
    .C_title {
        font-size: 1.3em;
    }
    
    .form-input, .form-select, .form-textarea {
        font-size: 16px;
    }
    
    .form-row {
        gap: 12px;
        margin-bottom: 12px;
    }
}

/* 動畫效果 */
.wow {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInLeft {
    animation-name: fadeInLeft;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 標題樣式 */
.C_title {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.C_title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mt50 {
    margin-top: 50px;
}

.mt20 {
    margin-top: 20px;
}

/* 表單樣式 */
form {
    max-width: 800px;
    margin: 0 auto;
}

/* 表單欄位佈局 */
.Bx1, .Bx2 {
    margin-bottom: 10px;
    width: 100%;
}

.Bx2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.Bx1 {
    display: flex;
    flex-direction: column;
}

/* 標籤樣式 */
.FL {
    font-weight: bold;
    color: #333;
    min-width: 80px;
    text-align: right;
    padding-right: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.Bx1 .FL {
    text-align: left;
    padding-right: 0;
    margin-bottom: 6px;
    justify-content: flex-start;
}

/* 輸入欄位容器 */
.FR {
    flex: 1;
    display: flex;
    align-items: center;
}

.Bx1 .FR {
    width: 100%;
}

/* 必填標記 */
red {
    color: #e74c3c;
    font-weight: bold;
    margin-right: 3px;
}

/* 輸入欄位樣式 */
.FR input, .FR textarea, .FR select {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: 'Microsoft JhengHei', '微軟正黑體', Arial, sans-serif;
    box-sizing: border-box;
    background: white;
}

.FR input:focus, .FR textarea:focus, .FR select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.FR textarea {
    min-height: 80px;
    resize: vertical;
}

/* 下拉選單專用樣式 */
.FR select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

.FR select::-ms-expand {
    display: none; /* 移除 IE 預設箭頭 */
}

/* 檔案上傳樣式 */
input[type="file"] {
    padding: 10px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #667eea;
}

/* 驗證碼樣式 */
.Bx2 .FR {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.Bx2 .FR span {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    letter-spacing: 2px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    min-width: 120px;
    text-align: center;
    flex-shrink: 0; /* 防止縮小 */
}

.Bx2 .FR input[name="UserInputPassCode"] {
    width: 120px;
    flex: none;
    flex-shrink: 0; /* 防止縮小 */
}

.Bx2 .FR input[type="hidden"] {
    display: none;
}

/* 分隔線 */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: 15px 0;
}

/* 按鈕樣式 */
.insubmit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.insubmit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.insubmit:active {
    transform: translateY(0);
}

/* 成功訊息樣式 */
.line[style*="text-align: center"] {
    font-size: 1.2em;
    color: #28a745;
    font-weight: bold;
    padding: 30px;
    text-align: center;
    background: #d4edda;
    border-radius: 10px;
    border: 1px solid #c3e6cb;
    margin: 20px 0;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .about-container {
        padding: 15px;
        margin-top: 20px;
    }
    
    .C_title {
        font-size: 1.5em;
    }
    
    .Bx1, .Bx2 {
        margin-bottom: 12px;
    }
    
    .Bx2 {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .FL {
        text-align: left !important;
        padding-right: 0 !important;
        min-width: auto;
        margin-bottom: 5px;
        justify-content: flex-start !important;
    }
    
    .FR {
        width: 100%;
    }
    
    .Bx2 .FR {
        flex-direction: row; /* 保持水平排列 */
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .Bx2 .FR span {
        align-self: center;
        min-width: auto;
        width: fit-content;
        flex-shrink: 0; /* 防止縮小 */
    }
    
    .Bx2 .FR input[name="UserInputPassCode"] {
        width: 120px; /* 保持固定寬度 */
        flex: none;
        flex-shrink: 0; /* 防止縮小 */
    }
    
    .Bx2 .FR input[type="hidden"] {
        display: none;
    }
    
    .FR input, .FR textarea, .FR select {
        width: 100%;
    }
    
    .insubmit {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 12px;
        margin-top: 20px;
    }
    
    .C_title {
        font-size: 1.3em;
    }
    
    .FR input, .FR textarea, .FR select {
        font-size: 16px; /* 防止 iOS 放大 */
    }
    
    .Bx1, .Bx2 {
        margin-bottom: 10px;
    }
    
    /* 小螢幕時驗證碼區塊可以換行顯示 */
    .Bx2 .FR {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .Bx2 .FR span {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .Bx2 .FR input[name="UserInputPassCode"] {
        width: 100%;
        max-width: 200px;
    }
}

/* 動畫效果 */
.wow {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInLeft {
    animation-name: fadeInLeft;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Into 區塊樣式 */
.Intro {
    line-height: 1.6;
    color: #666;
}

.Intro p {
    margin-bottom: 20px;
}
