/* ── Infinia Student CRM — Public Tracking Widget ─────────────── */
:root {
    --icrm-black:   #0A0A0A;
    --icrm-panel:   #141210;
    --icrm-card:    #181410;
    --icrm-gold:    #E8C25A;
    --icrm-gold-dp: #C9962B;
    --icrm-gold-br: #FFE876;
    --icrm-cream:   #F3ECDC;
    --icrm-muted:   #A9A294;
    --icrm-line:    #2A2620;
    --icrm-green:   #25D366;
    --icrm-display: 'Cormorant Garamond', serif;
    --icrm-body:    'Jost', sans-serif;
}

.icrm-wrap {
    font-family: var(--icrm-body);
    max-width: 860px;
    margin: 0 auto;
}

/* ── Panel ── */
.icrm-panel {
    background: var(--icrm-panel);
    border: 1px solid var(--icrm-line);
    border-radius: 14px;
    padding: 36px 40px;
    margin-bottom: 24px;
}

/* ── Panel head ── */
.icrm-panel-head { text-align: center; margin-bottom: 28px; }
.icrm-logo-mark {
    font-size: 52px; line-height: 1;
    background: linear-gradient(135deg, var(--icrm-gold-dp), var(--icrm-gold-br));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    display: block; margin-bottom: 12px;
}
.icrm-panel-head h2 {
    font-family: var(--icrm-display);
    font-size: 34px; font-weight: 600; color: var(--icrm-cream);
    margin: 0 0 10px;
}
.icrm-panel-head p { color: var(--icrm-muted); font-size: 16px; line-height: 1.65; margin: 0; }
.icrm-panel-head strong { color: var(--icrm-gold); }

/* ── Form rows ── */
.icrm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .icrm-form-row { grid-template-columns: 1fr; } }

.icrm-field { margin-bottom: 16px; }
.icrm-field label {
    display: block; font-size: 13px; letter-spacing: .5px;
    color: var(--icrm-cream); margin-bottom: 6px; font-weight: 500;
}
.icrm-field input,
.icrm-field select,
.icrm-field textarea {
    width: 100%; background: var(--icrm-black); border: 1px solid var(--icrm-line);
    border-radius: 8px; padding: 13px 15px; color: var(--icrm-cream);
    font-family: var(--icrm-body); font-size: 15px; outline: none;
    transition: .2s; box-sizing: border-box;
}
.icrm-field input:focus,
.icrm-field select:focus,
.icrm-field textarea:focus { border-color: var(--icrm-gold); box-shadow: 0 0 0 2px rgba(232,194,90,.15); }
.icrm-field textarea { resize: vertical; }
.icrm-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23A9A294' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ── Buttons ── */
.icrm-btn-gold {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; background: linear-gradient(135deg, var(--icrm-gold-dp), var(--icrm-gold-br));
    color: var(--icrm-black); border: none; padding: 15px 24px;
    border-radius: 8px; font-family: var(--icrm-body); font-weight: 600;
    font-size: 15px; letter-spacing: .5px; cursor: pointer; transition: .25s;
}
.icrm-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,150,43,.35); }
.icrm-btn-ghost {
    background: transparent; border: 1px solid var(--icrm-line); color: var(--icrm-muted);
    padding: 8px 16px; border-radius: 6px; font-size: 13px; cursor: pointer;
    font-family: var(--icrm-body); transition: .2s; text-decoration: none; display: inline-block;
}
.icrm-btn-ghost:hover { border-color: var(--icrm-gold); color: var(--icrm-gold); }
.icrm-btn-wa {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--icrm-green); color: #fff; padding: 12px 22px;
    border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; transition: .2s;
}
.icrm-btn-wa:hover { background: #128C7E; color: #fff; transform: translateY(-2px); }

/* ── Error / Hint ── */
.icrm-error { background: rgba(214,54,56,.12); border: 1px solid rgba(214,54,56,.3); color: #f87171; border-radius: 6px; padding: 11px 14px; margin-top: 12px; font-size: 14px; }
.icrm-hint { text-align: center; color: var(--icrm-muted); font-size: 13px; margin-top: 14px; }
.icrm-hint a { color: var(--icrm-gold); text-decoration: none; }
.icrm-hint a:hover { text-decoration: underline; }

/* ── Result header ── */
.icrm-result-header {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-bottom: 26px; padding-bottom: 20px;
    border-bottom: 1px solid var(--icrm-line);
}
.icrm-result-logo {
    font-size: 36px; background: linear-gradient(135deg, var(--icrm-gold-dp), var(--icrm-gold-br));
    -webkit-background-clip: text; background-clip: text; color: transparent; flex-shrink: 0;
}
.icrm-result-header h2 { font-family: var(--icrm-display); font-size: 28px; color: var(--icrm-cream); margin: 0 0 4px; }
.icrm-result-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.icrm-result-meta span { background: var(--icrm-card); border: 1px solid var(--icrm-line); border-radius: 20px; padding: 4px 12px; font-size: 12.5px; color: var(--icrm-muted); }
.icrm-result-meta span:first-child { color: var(--icrm-gold); font-weight: 600; }
#icrm-new-search { margin-left: auto; }

/* ── Current stage banner ── */
.icrm-current-stage {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, rgba(201,150,43,.12), rgba(232,194,90,.08));
    border: 1px solid rgba(232,194,90,.25); border-radius: 10px;
    padding: 20px 24px; margin-bottom: 22px; gap: 16px; flex-wrap: wrap;
}
.icrm-cs-label { font-size: 11px; letter-spacing: 2px; color: var(--icrm-gold); font-weight: 600; text-transform: uppercase; margin-bottom: 5px; }
.icrm-cs-name { font-family: var(--icrm-display); font-size: 26px; font-weight: 600; color: var(--icrm-cream); margin-bottom: 5px; }
.icrm-cs-desc { color: var(--icrm-muted); font-size: 14px; line-height: 1.55; }
.icrm-current-stage-right { text-align: right; }
.icrm-cs-step { font-family: var(--icrm-display); font-size: 42px; font-weight: 700; color: var(--icrm-gold); line-height: 1; }
.icrm-cs-pct { font-size: 13px; color: var(--icrm-muted); margin-top: 3px; }

/* ── Progress bar ── */
.icrm-progress-wrap { margin-bottom: 30px; }
.icrm-progress-bar { background: var(--icrm-card); border-radius: 20px; height: 10px; overflow: hidden; border: 1px solid var(--icrm-line); }
.icrm-progress-fill { height: 10px; background: linear-gradient(90deg, var(--icrm-gold-dp), var(--icrm-gold-br)); border-radius: 20px; transition: width .6s ease; }
.icrm-progress-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--icrm-muted); }

/* ── 15-step Timeline ── */
.icrm-section-title { font-family: var(--icrm-display); font-size: 22px; color: var(--icrm-cream); font-weight: 600; margin: 0 0 18px; }
.icrm-timeline {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
@media (max-width: 700px) { .icrm-timeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 440px) { .icrm-timeline { grid-template-columns: repeat(2, 1fr); } }

.icrm-step {
    background: var(--icrm-card); border: 1px solid var(--icrm-line);
    border-radius: 8px; padding: 12px 14px; position: relative;
    transition: .2s;
}
.icrm-step.completed {
    background: rgba(232,194,90,.07);
    border-color: rgba(232,194,90,.3);
}
.icrm-step.current {
    background: linear-gradient(135deg, rgba(201,150,43,.18), rgba(232,194,90,.1));
    border-color: var(--icrm-gold);
    box-shadow: 0 0 0 2px rgba(232,194,90,.2);
}
.icrm-step-num {
    font-family: var(--icrm-display); font-size: 20px; font-weight: 700;
    color: var(--icrm-line); line-height: 1; margin-bottom: 5px;
}
.icrm-step.completed .icrm-step-num { color: var(--icrm-gold-dp); }
.icrm-step.current   .icrm-step-num { color: var(--icrm-gold); }
.icrm-step-label { font-size: 12px; line-height: 1.4; color: var(--icrm-muted); }
.icrm-step.completed .icrm-step-label { color: var(--icrm-cream); }
.icrm-step.current   .icrm-step-label { color: var(--icrm-cream); font-weight: 600; }
.icrm-step-date { font-size: 11px; color: var(--icrm-gold-dp); margin-top: 5px; }
.icrm-step-check {
    position: absolute; top: 8px; right: 8px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--icrm-gold); color: var(--icrm-black);
    font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.icrm-step.current .icrm-step-check {
    background: var(--icrm-gold-br); animation: icrm-pulse 1.5s infinite;
}
@keyframes icrm-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232,194,90,.6); }
    50%       { box-shadow: 0 0 0 5px rgba(232,194,90,0); }
}

/* ── WhatsApp CTA ── */
.icrm-wa-cta {
    margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--icrm-line);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 14px;
}
.icrm-wa-cta p { color: var(--icrm-muted); font-size: 15px; margin: 0; }

/* ── Enquiry form ── */
.icrm-enquiry-wrap {}

/* ── Success panel ── */
.icrm-success-panel { text-align: center; }
.icrm-success-icon { font-size: 56px; color: #4ade80; margin-bottom: 14px; }
.icrm-success-panel h2 { font-family: var(--icrm-display); font-size: 32px; color: var(--icrm-cream); margin: 0 0 10px; }
.icrm-success-panel p { color: var(--icrm-muted); font-size: 15px; line-height: 1.65; max-width: 500px; margin: 0 auto 14px; }
.icrm-tracking-badge {
    display: inline-flex; flex-direction: column; align-items: center;
    background: var(--icrm-card); border: 1px solid var(--icrm-gold);
    border-radius: 10px; padding: 16px 32px; margin: 14px auto;
}
.icrm-tracking-label { font-size: 12px; letter-spacing: 2px; color: var(--icrm-muted); text-transform: uppercase; margin-bottom: 6px; }
.icrm-tracking-val { font-family: var(--icrm-display); font-size: 32px; font-weight: 700; color: var(--icrm-gold); letter-spacing: 2px; }
