/* ============================================================
   apply.css — 只保留 /apply 頁面實際使用的樣式
   （舊版有大量 .ship-form / .form-row / .custom-select-* /
     .row-group / .address-hint 等選擇器，HTML 早已不用，已移除）
   ============================================================ */

/* ===== 1. 呼號查詢輸入框 ===== */
#queryCallsignInput {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#queryCallsignInput:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
    outline: none;
}

#queryCallsignInput::placeholder {
    color: #a0b2c6;
    font-weight: 400;
}

/* ===== 2. 收件資訊表單排版 ===== */
.ship-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.ship-grid .span-2 {
    grid-column: span 2;
}

.ship-grid label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a3a5c;
}

.ship-grid input,
.ship-grid select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ship-grid input:focus,
.ship-grid select:focus {
    border-color: #0066cc !important;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
    outline: none;
}

/* ===== 3. 手機版 ===== */
@media (max-width: 640px) {
    .ship-grid {
        grid-template-columns: 1fr;
    }

    .ship-grid .span-2 {
        grid-column: auto;
    }
}

/* ===== 4. 手機版表格（欄位多，縮小內距） ===== */
@media (max-width: 600px) {
    #queryResultCard th,
    #queryResultCard td,
    #myRequestsBody th,
    #myRequestsBody td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    #queryResultCard td:last-child {
        white-space: normal;
        word-break: break-word;
    }
}

/* ===== 5. 深色模式（由 js/theme.js 設定 html[data-theme]） ===== */
html[data-theme="dark"] .ship-grid input,
html[data-theme="dark"] .ship-grid select {
    background: #141d2f !important;
    color: #d7e3f4 !important;
    border-color: #2f405c !important;
}

html[data-theme="dark"] #btnNoPhone {
    background: #1e2b42 !important;
    color: #cfe0f2 !important;
    border-color: #3a4a66 !important;
}
