/* modal.css 獨立抽離，風格參考 UIkit3 modal */
.uk-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
    box-sizing: border-box;
}
.uk-modal.open {
    opacity: 1;
    visibility: visible;
}
.uk-modal-dialog {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.25s ease;
    padding: 30px;
    box-sizing: border-box;
}
.uk-modal.open .uk-modal-dialog {
    transform: translateY(0);
}
.uk-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: #333;
}

/* 前4項：label 左，input 右，同一行，對齊 */
.modal-form-item-inline {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}
.modal-form-item-inline label {
    width: 70px; /* 固定標籤寬度，全部對齊 */
    flex-shrink: 0;
}
.modal-form-item-inline input {
    flex-grow: 1;
    box-sizing: border-box;
    border: 2px solid #ccc;
    padding: 3px 6px;
}

/* 下方 Message、Captcha 維持標籤在上、輸入框滿版 */
.modal-form-item {
    margin-bottom: 14px;
}
.modal-form-item label {
    display: block;
    margin-bottom: 4px;
}
.modal-form-item textarea {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #ccc;
    padding: 6px 8px;
    min-height: 120px;
    resize: vertical;
}
.modal-captcha-row {
    display: flex;
    gap:12px;
    align-items:center;
    margin:14px 0;
}
.modal-send-btn {
    margin-top:12px;
    padding:8px 20px;
    border:none;
    background:#B1BAC1;
    color:#fff;
    cursor:pointer;
}
