/* COD Order Form v1.0 */
.cof-form {
    background: #fff;
    border: 3px solid #f0c040;
    border-radius: 16px;
    padding: 24px 20px;
    max-width: 520px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

/* ── Header ── */
.cof-header { text-align: center; margin-bottom: 16px; }
.cof-title  { font-size: 28px; font-weight: 900; color: #0066cc; margin: 0 0 4px; letter-spacing: 1px; }
.cof-subtitle { font-size: 14px; color: #444; margin: 0 0 12px; }

/* ── Đồng hồ ── */
.cof-clock {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 4px;
}
.cof-clock-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cof-clock-box {
    background: #111; border-radius: 6px; width: 56px; height: 52px;
    display: flex; align-items: center; justify-content: center;
}
.cof-clock-num   { font-size: 24px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.cof-clock-label { font-size: 11px; font-weight: 600; color: #333; }

/* ── Fields ── */
.cof-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.cof-input {
    width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 14px; outline: none; box-sizing: border-box; transition: border-color .2s;
    font-family: inherit;
}
.cof-input:focus { border-color: #0066cc; }
.cof-textarea { min-height: 72px; resize: vertical; }

/* ── Tỉnh/Huyện/Xã ── */
.cof-location { display: flex; gap: 6px; }
.cof-select {
    flex: 1; padding: 10px 6px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 13px; outline: none; cursor: pointer; background: #fff;
    box-sizing: border-box; font-family: inherit;
}
.cof-select:focus { border-color: #0066cc; }

/* ── Gói sản phẩm ── */
.cof-packages { display: flex; flex-direction: column; gap: 8px; }
.cof-pkg {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px; border: 1.5px solid #ddd; border-radius: 8px;
    cursor: pointer; transition: border-color .2s, background .2s;
    font-size: 13px; line-height: 1.4;
}
.cof-pkg input[type="radio"] { margin-top: 2px; flex-shrink: 0; accent-color: #0066cc; }
.cof-pkg--checked { border-color: #0066cc; background: #f0f7ff; }
.cof-pkg:hover    { border-color: #0066cc; }

/* ── Nút ── */
.cof-btn {
    width: 100%; padding: 15px; background: #1e90ff; color: #fff;
    border: none; border-radius: 8px; font-size: 20px; font-weight: 800;
    cursor: pointer; letter-spacing: 1px; transition: filter .2s;
    font-family: inherit; margin-bottom: 10px;
}
.cof-btn:hover    { filter: brightness(.9); }
.cof-btn:disabled { filter: brightness(.7); cursor: not-allowed; }

/* ── Messages ── */
.cof-error {
    background: #fff0f0; color: #c0392b; border: 1px solid #f5c6c6;
    border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-top: 6px;
}
.cof-success-box {
    background: #f0fdf4; border: 2px solid #86efac; border-radius: 10px;
    padding: 20px; text-align: center;
}
.cof-success-icon { font-size: 40px; margin-bottom: 8px; }
.cof-success-box h3 { color: #16a34a; margin: 0 0 10px; font-size: 18px; }
.cof-success-box p  { margin: 4px 0; font-size: 14px; color: #333; }
.cof-total          { color: #ee4d2d; font-size: 16px; }
.cof-cod-note       { color: #555; font-size: 12px; margin-top: 10px !important; }

/* ── Responsive ── */
@media(max-width:480px){
    .cof-clock-box  { width: 46px; height: 44px; }
    .cof-clock-num  { font-size: 20px; }
    .cof-location   { flex-wrap: wrap; }
    .cof-select     { min-width: 45%; }
    .cof-title      { font-size: 22px; }
    .cof-btn        { font-size: 17px; }
}
