/* /certification-partners — page sections, application dialog and 2-step form. Loaded only by that page. */

/* ---- About + who we want ---- */
.cp-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.cp-about h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 16px 0 14px; }
.cp-about .prose p { color: var(--slate-600); margin: 0 0 14px; max-width: 62ch; }
.cp-about .prose a:not(.btn) { color: var(--orange); font-weight: 600; }
.cp-about .btn { margin-top: 6px; }
.cp-sub { font-size: 1.15rem; margin: 6px 0 14px; }
.cp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cp-card h4 { font-size: 1.02rem; margin: 0 0 6px; }
.cp-card p { margin: 0; color: var(--slate-600); font-size: .92rem; }

/* ---- Standards ---- */
.cp-std { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cp-std-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.cp-std-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(91, 46, 224, .25); }
.cp-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.15rem; color: #fff; background: var(--grad-brand); margin-bottom: 14px; }
.cp-std-card h3 { font-size: 1.08rem; margin: 0; }
.cp-scope { margin: 2px 0 12px; font-size: .85rem; font-weight: 600; color: var(--orange); }
.cp-std-card dl { margin: 0; display: grid; gap: 4px; }
.cp-std-card dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-500); margin-top: 8px; }
.cp-std-card dd { margin: 0; font-size: .89rem; color: var(--slate-700); }
.cp-also { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: center; }
.cp-also b { font-size: .92rem; color: var(--navy); }
.cp-also ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cp-also li { font-size: .82rem; font-weight: 600; color: var(--slate-700); background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 6px 13px; }

/* ---- Final CTA ---- */
.cp-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.cp-nojs { position: relative; margin: 20px 0 0; color: #dbe4f3; }
.cp-nojs a { color: #fff; text-decoration: underline; }

/* ---- Dialog ---- */
html:has(dialog.cp-dlg[open]) { overflow: hidden; }
dialog.cp-dlg { margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink); width: min(820px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 40px); overflow: visible; }
dialog.cp-dlg::backdrop { background: rgba(7, 11, 36, .64); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.cp-dlg[open] { animation: cpIn .22s ease-out; }
@keyframes cpIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.cp-dlg-in { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); overflow: hidden; }
.cp-dlg-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 14px; border-bottom: 1px solid var(--line); }
.cp-dlg-h h2 { font-size: clamp(1.3rem, 2.3vw, 1.6rem); margin: 6px 0 0; line-height: 1.2; }
.cp-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.cp-x { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 1rem; }
.cp-x:hover { border-color: var(--navy); }

/* ---- Form ---- */
.cp-dlg [hidden] { display: none !important; }
.pf { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.pf-steps { list-style: none; margin: 0; padding: 14px 24px 0; display: flex; gap: 8px; }
.pf-steps li { flex: 1; min-width: 0; font-size: .82rem; font-weight: 700; color: var(--slate-500); display: flex; flex-direction: column; gap: 7px; }
.pf-steps li::before { content: ""; height: 5px; border-radius: 5px; background: var(--line); transition: background .2s; }
.pf-steps li.on { color: var(--ink); }
.pf-steps li.on::before { background: var(--orange); }
.pf-steps li.ok { color: var(--ink); cursor: pointer; }
.pf-steps li.ok::before { background: #0e9e6e; }
.pf-body { padding: 18px 24px 22px; overflow: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.pf fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pf-step > legend { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--navy); padding: 0; margin: 0; }
.pf .lead-in { color: var(--slate-600); font-size: .92rem; margin: 4px 0 18px; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.pf .full { grid-column: 1 / -1; }
.pf .l { display: block; font-size: .85rem; font-weight: 700; color: var(--slate-700); margin: 0 0 7px; padding: 0; }
.pf .l i, .pf .tick i { color: #b42318; font-style: normal; }
.pf input:not([type=checkbox]):not([type=file]), .pf select, .pf textarea { width: 100%; border: 1.5px solid var(--slate-200); border-radius: 11px; background: #fff; color: var(--ink); font-family: inherit; font-size: .95rem; font-weight: 500; line-height: 1.4; padding: 11px 12px; transition: border-color .15s, box-shadow .15s; }
.pf textarea { min-height: 84px; resize: vertical; }
.pf input:focus, .pf select:focus, .pf textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(91, 46, 224, .14); }
.pf .hint { font-size: .8rem; color: var(--slate-600); margin: 6px 0 0; }
.pf .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf .chips label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--slate-200); border-radius: 999px; padding: 8px 13px; font-size: .86rem; font-weight: 600; color: var(--slate-700); cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.pf .chips label:hover { border-color: var(--slate-500); }
.pf .chips label:has(input:checked) { border-color: var(--orange); background: rgba(91, 46, 224, .08); color: var(--navy); }
.pf .chips label:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.pf input[type=checkbox] { accent-color: var(--orange); width: 16px; height: 16px; margin: 0; flex: none; }
.pf .tick { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--slate-700); cursor: pointer; }
.pf .tick input { margin-top: 3px; }
.pf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pf .file { position: relative; }
.pf .file .fin { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pf .file .drop { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--slate-300); border-radius: 14px; padding: 14px; cursor: pointer; background: var(--bg-alt); transition: border-color .15s, background .15s; margin: 0; }
.pf .file .drop:hover { border-color: var(--orange); }
.pf .file .fi { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(91, 46, 224, .1); color: var(--orange); }
.pf .file .ft { min-width: 0; }
.pf .file .ft b { display: block; font-size: .9rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf .file .ft small { color: var(--slate-600); font-size: .78rem; }
.pf .file.has .drop { border-style: solid; border-color: #0e9e6e; background: #fff; }
.pf .file.has .fi { background: #e3f6eb; color: #0b7a3b; }
.pf .file.bad .drop { border-color: #b42318; background: #fdecec; }
.pf .file:has(.fin:focus-visible) .drop { outline: 3px solid var(--orange); outline-offset: 2px; }

.pf-err { margin: 16px 0 0; background: #fdecec; color: #8a1c1c; border: 1px solid #f5c2c2; border-radius: 11px; padding: 11px 13px; font-size: .9rem; }
.pf-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.pf-count { margin-right: auto; font-size: .82rem; color: var(--slate-600); }
.pf-nav .btn { padding: 12px 20px; }
.pf-nav .btn[disabled] { opacity: .7; cursor: progress; }
.pf-done { text-align: center; padding: 30px 8px; }
.pf-done:focus { outline: none; }
.pf-done .ok { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e3f6eb; color: #0b7a3b; font-size: 1.7rem; }
.pf-done h3 { font-size: 1.5rem; margin: 16px 0 8px; }
.pf-done p { color: var(--slate-600); margin: 6px auto; max-width: 46ch; }
.pf-done b { color: var(--ink); }
.pf-done a { color: var(--orange); font-weight: 600; }

@media (max-width: 1100px) { .cp-std { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .cp-about { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 760px) { .cp-std { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .cp-cards, .cp-std, .pf-grid { grid-template-columns: minmax(0, 1fr); }
    dialog.cp-dlg { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
    .cp-dlg-in { height: 100%; max-height: 100dvh; border-radius: 0; border: 0; }
    .cp-dlg-h { padding: 16px 16px 12px; }
    .pf-steps { padding: 12px 16px 0; }
    .pf-body { padding: 14px 16px 20px; }
    .pf-nav { padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .pf-nav .btn { flex: 1 1 0; padding: 12px 10px; }
    .pf-count { display: none; }
}
@media (prefers-reduced-motion: reduce) { dialog.cp-dlg[open] { animation: none; } .cp-std-card:hover { transform: none; } }
