/* MailerLite (classic) look for the Course Progress forms.
   Colours were sampled from the MailerLite screenshot. */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
    --green: #00a154;
    --green-dark: #01904c;
    --page: #eeeeee;
    --line: #e3e3e3;
    --field: #cccccc;
    --text: #333333;
    --muted: #666666;
    --btn-grey: #dddddd;
    --warn-bg: #fcf8e3;
    --warn-line: #e7dead;
    --warn-text: #8a6d3b;
    --ok-bg: #e7f9f1;
    --ok-line: #c9ecd9;
    --ok-text: #101828;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

/* ---- green navigation bar ---- */
.ml-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    background: var(--green);
    color: #fff;
}
.ml-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 0 24px;
    background: var(--green-dark);
    font-size: 16px;
    font-weight: 700;
}
.ml-nav-item svg { width: 22px; height: 22px; }
.ml-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 20px;
    font-weight: 700;
}
.ml-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: var(--green);
    font-weight: 700;
}

/* ---- white title band ---- */
.ml-head {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 30px 0 24px;
}
.ml-head h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}
.ml-wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.ml-main { padding: 24px 0 48px; }

/* ---- cards and fields ---- */
.ml-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
}
.ml-field + .ml-field { margin-top: 18px; }
.ml-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.ml-input {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--field);
    border-radius: 3px;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
}
textarea.ml-input { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; }
.ml-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 161, 84, .15);
}
.ml-hint { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---- buttons ---- */
.ml-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn {
    display: inline-block;
    height: 40px;
    padding: 0 26px;
    border: 0;
    border-radius: 3px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-grey { background: var(--btn-grey); color: var(--muted); }
.btn-grey:hover { background: #d0d0d0; }
.btn:disabled { opacity: .6; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ---- notices ---- */
.ml-notice {
    display: block;
    margin-bottom: 20px;
    padding: 16px 20px;
    border: 1px solid var(--warn-line);
    border-radius: 4px;
    background: var(--warn-bg);
    color: var(--warn-text);
}
.ml-notice.ok {
    border-color: var(--ok-line);
    background: var(--ok-bg);
    color: var(--ok-text);
}

/* ---- frmViewProgress ---- */
.ml-summary { display: flex; align-items: baseline; gap: 12px; padding: 16px 24px; }
.ml-summary .k { font-weight: 600; color: var(--muted); }
.ml-summary .v { font-size: 20px; font-weight: 700; }
.ml-subject { margin-bottom: 12px; font-size: 17px; font-weight: 700; }
.ml-remarks {
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid #eeeeee;
    border-radius: 3px;
    background: #f7f7f7;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.ml-remarks.empty { color: #999999; }
.ml-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}
.ml-meta strong { color: var(--text); }

@media (max-width: 520px) {
    .ml-school { display: none; }
    .ml-card { padding: 18px; }
    .ml-actions .btn { flex: 1; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
