/* ── ICM Frontend Styles ──────────────────────────────────────── */
.icm-wrap { font-family: 'Segoe UI', sans-serif; }

/* ── Apply Button ─────────────────────────────────────────────── */
.icm-btn-apply {
    background: linear-gradient(135deg, #1a237e, #1565c0);
    color: #fff; border: none; padding: 14px 34px;
    font-size: 15px; font-weight: 600; border-radius: 10px;
    cursor: pointer; letter-spacing: .4px;
    box-shadow: 0 4px 18px rgba(21,101,192,.35);
    transition: transform .2s, box-shadow .2s;
}
.icm-btn-apply:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(21,101,192,.5); }

/* ── Modal ────────────────────────────────────────────────────── */
.icm-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.55);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.icm-modal-box {
    background: #fff; border-radius: 16px; padding: 36px 38px;
    width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 16px 56px rgba(0,0,0,.25); position: relative;
    animation: icm-fadeIn .25s ease;
}
@keyframes icm-fadeIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

.icm-modal-close {
    position: absolute; top: 16px; right: 20px;
    background: #f0f0f0; border: none; border-radius: 50%;
    width: 32px; height: 32px; font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: #555;
}
.icm-modal-close:hover { background: #e0e0e0; }
.icm-modal-box h2 { font-size: 22px; color: #1a237e; margin-bottom: 20px; }

/* ── Form ─────────────────────────────────────────────────────── */
.icm-form-row { display: flex; gap: 16px; margin-bottom: 14px; }
.icm-field { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.icm-field label { font-size: 13px; font-weight: 600; color: #444; }
.icm-field label span { color: #e53935; }
.icm-field input[type="text"],
.icm-field input[type="tel"],
.icm-field input[type="email"],
.icm-field input[type="date"],
.icm-field input[type="file"] {
    border: 1px solid #cdd; border-radius: 8px; padding: 10px 12px;
    font-size: 14px; transition: border-color .2s; outline: none;
    background: #fafafa;
}
.icm-field input:focus { border-color: #1565c0; background: #fff; }
.icm-field small { font-size: 11px; color: #888; }

.icm-btn-submit {
    width: 100%; margin-top: 10px; padding: 13px;
    background: linear-gradient(135deg, #1a237e, #1565c0);
    color: #fff; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: opacity .2s;
}
.icm-btn-submit:hover { opacity: .9; }
.icm-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── Notice ───────────────────────────────────────────────────── */
.icm-notice {
    padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px;
}
.icm-notice.success { background: #e8f5e9; color: #1b5e20; border-left: 4px solid #43a047; }
.icm-notice.error   { background: #ffebee; color: #b71c1c; border-left: 4px solid #e53935; }

/* ── Download Page ─────────────────────────────────────────────── */
.icm-download-wrap h2 { color: #1a237e; margin-bottom: 6px; }
.icm-download-wrap p  { color: #555; margin-bottom: 16px; }
.icm-dl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.icm-dl-form input[type="text"] {
    flex: 1; min-width: 240px; border: 1px solid #ccc; border-radius: 8px;
    padding: 11px 14px; font-size: 14px; outline: none;
}
.icm-dl-form input:focus { border-color: #1565c0; }

.icm-result-card {
    background: #f0f4ff; border: 1px solid #c5cae9;
    border-radius: 12px; padding: 18px 22px; margin-top: 16px;
}
.icm-result-card h4 { color: #1a237e; margin-bottom: 8px; }
.icm-result-card p  { font-size: 13px; margin-bottom: 6px; color: #333; }
.icm-dl-btns { margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.icm-dl-link {
    display: inline-block; padding: 9px 20px; background: #1a237e;
    color: #fff; border-radius: 7px; text-decoration: none; font-size: 13px;
}
.icm-dl-link:hover { background: #1565c0; color: #fff; }
.icm-status { font-size: 12px; font-weight: 700; }
.icm-status.approved { color: #2e7d32; }
.icm-status.pending  { color: #e65100; }
.icm-status.rejected { color: #b71c1c; }

@media (max-width: 540px) {
    .icm-form-row { flex-direction: column; }
    .icm-modal-box { padding: 24px 20px; }
}
