/* Public request pages (tickets, status links, applications, contracts, payments) inside the public-site shell.
   Loaded after portal.css; everything is scoped to main.pf so the rest of the site is untouched.
   Contrast first: panels lift off the page, fields are darker than their panel with a visible edge, labels are full
   white, help text is the only muted text. */
.pf { --text: var(--ink); --field: #0a0f1c; --field-line: rgba(255,255,255,.24); --panel-line: rgba(255,255,255,.15);
  max-width: 860px; }
main.wrap.pf { max-width: 860px; }
.pf > h1:first-child, .pf > h1, .pf > form > h1 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em;
  font-size: clamp(2rem, 4.6vw, 2.8rem); line-height: 1.08; margin: 6px 0 10px; }
.pf h2 { font-size: 1.3rem; margin: 0 0 10px; }
.pf p { margin: 0 0 14px; }
.pf > p, .pf > h1 + p { color: var(--muted); font-size: 16.5px; max-width: 46em; }
.pf .app-logo, .pf .home-divider { display: none; }
.pf center { text-align: left; }

/* panels */
.pf .card, .pf .form-panel, .pf .rq-sec, .pf .pf-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)); border: 1px solid var(--panel-line);
  border-radius: var(--radius); padding: 24px; margin: 20px 0 0; box-shadow: 0 18px 44px rgba(0,0,0,.35); }
.pf .card .card, .pf .form-panel .card { box-shadow: none; background: rgba(0,0,0,.18); }
@media (max-width: 560px) { .pf .card, .pf .form-panel, .pf .rq-sec, .pf .pf-panel { padding: 18px 16px; border-radius: 18px; } }
.pf .rq-sec > h2 { font-size: 1.15rem; margin-bottom: 14px; }

/* fields */
.pf label:not(.rq-tile):not(.rq-pill):not(.rq-switch-row):not(.toggle-option):not(.rq-drop), .pf legend { display: block; font-size: 14.5px; font-weight: 650; color: var(--ink); margin: 0 0 6px; }
.pf input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), .pf select, .pf textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px; background: var(--field); color: var(--ink);
  border: 1px solid var(--field-line); border-radius: 14px; font: 16px/1.4 var(--font); transition: border-color .15s, box-shadow .15s; }
.pf textarea { min-height: 120px; resize: vertical; }
.pf select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.pf input::placeholder, .pf textarea::placeholder { color: rgba(255,255,255,.4); }
.pf input:hover:not([type=checkbox]):not([type=radio]), .pf select:hover, .pf textarea:hover { border-color: rgba(255,255,255,.36); }
.pf input:focus, .pf select:focus, .pf textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(95,212,255,.22); }
.pf form > p, .pf .form-panel > p { margin-bottom: 16px; }
.pf .field { display: block; margin: 0 0 16px; }
.pf .form-grid { display: grid; gap: 4px 16px; }
@media (min-width: 720px) { .pf .form-grid { grid-template-columns: 1fr 1fr; } .pf .span-2 { grid-column: 1 / -1; } }
.pf .help, .pf .helptext { display: block; font-size: 13.5px; color: var(--muted); margin: 4px 0 0; line-height: 1.45; }
.pf .error, .pf .err, .pf .errorlist { color: #ffb0ba; font-size: 13.5px; font-weight: 600; margin: 6px 0 0; }
.pf .errorlist { list-style: none; padding: 0; }
.pf .alert { border-radius: 14px; }

/* checkboxes are toggles everywhere on these pages */
.pf input[type=checkbox]:not(.rq-switch) { appearance: none; -webkit-appearance: none; flex: none; width: 42px; height: 24px; margin: 0 10px 0 0;
  vertical-align: middle; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); position: relative; cursor: pointer; transition: background .15s; }
.pf input[type=checkbox]:not(.rq-switch)::before { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.pf input[type=checkbox]:not(.rq-switch):checked { background: #2fb5e8; border-color: #64d2ff; }
.pf input[type=checkbox]:not(.rq-switch):checked::before { transform: translateX(18px); }
.pf input[type=checkbox]:focus-visible { outline: 3px solid #64d2ff; outline-offset: 2px; }
.pf input[type=radio] { accent-color: var(--cyan); width: 18px; height: 18px; }

/* buttons: portal pills */
.pf .btn { min-height: 48px; border-radius: 999px; padding: 0 24px; font-weight: 700; }
.pf .btn-primary, .pf button[type=submit]:not(.btn):not([class*="ds-"]):not([class*="ap-"]):not([class*="pay-"]) {
  background: var(--grad); border: 0; color: #fff; box-shadow: 0 10px 30px rgba(182,111,221,.35); }
.pf .btn-primary:hover { background: var(--grad); box-shadow: 0 14px 36px rgba(95,212,255,.35); }
.pf .btn-secondary, .pf .btn-back { background: var(--glass2); border: 1px solid var(--stroke2); color: var(--ink); }
.pf .btn-danger { background: rgba(255,122,138,.12); border: 1px solid rgba(255,122,138,.5); color: #ffc2ca; }
.pf .rq-submit .btn-primary { background: var(--grad) !important; border: 0 !important; color: #fff !important; border-radius: 999px; }
.pf .row-actions, .pf .action-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }

/* choice tiles (Start a request, sections) */
.pf .tiles, .pf .topic-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 22px 0 6px; }
.pf .tile, .pf .topic-tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); border: 1px solid var(--panel-line);
  border-radius: var(--radius); transition: transform .15s, border-color .15s, background .15s; text-decoration: none; }
.pf .tile:hover, .pf .topic-tile:hover { transform: translateY(-2px); border-color: rgba(95,212,255,.6); background: rgba(95,212,255,.08); text-decoration: none; }
.pf .tile::before, .pf .topic-tile::before { display: none; }
.pf .tile .icon { font-size: 28px; line-height: 1; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px;
  background: rgba(182,111,221,.16); border: 1px solid rgba(182,111,221,.35); }
.pf .tile h2, .pf .topic-tile-title { font-size: 1.08rem; font-weight: 700; margin: 4px 0 0; color: var(--ink); }
.pf .tile p { color: var(--muted); font-size: 14px; margin: 0; }
.pf .tile .go { margin-top: auto; padding-top: 6px; color: var(--cyan); font-weight: 700; font-size: 14px; }

/* tables (payment summaries, request lists) */
.pf table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pf th, .pf td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--stroke); vertical-align: top; }
.pf th { color: var(--muted); font-weight: 600; font-size: 13px; }

/* payment method toggle */
.pf .payment-toggle { display: flex; flex-wrap: wrap; gap: 8px; }
.pf .toggle-option { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--stroke2); background: var(--field); cursor: pointer; }
.pf .toggle-option:has(input:checked) { border-color: var(--cyan); background: rgba(95,212,255,.14); }

/* the ticket number and status */
.pf .pf-ticket { display: inline-block; font: 800 1.5rem/1.2 var(--font); letter-spacing: .02em; padding: 10px 18px; border-radius: 14px;
  background: rgba(95,212,255,.1); border: 1px solid rgba(95,212,255,.45); color: #dff6ff; }

/* ticket list (status link page) */
.pf .tk-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.pf .tk { display: grid; gap: 6px; padding: 18px 22px; color: var(--ink); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)); border: 1px solid var(--panel-line);
  transition: transform .15s, border-color .15s; }
.pf .tk:hover { text-decoration: none; transform: translateY(-1px); border-color: rgba(95,212,255,.6); }
.pf .tk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf .tk-num { font-weight: 800; letter-spacing: .02em; color: #9be3ff; font-size: 14px; }
.pf .tk-title { font-size: 1.12rem; font-weight: 700; }
.pf .tk-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 2px 0 0; font-size: 13.5px; }
.pf .tk-meta dt { display: inline; color: var(--muted); } .pf .tk-meta dt::after { content: ": "; }
.pf .tk-meta dd { display: inline; margin: 0; }
.pf .tk-go { color: var(--cyan); font-weight: 700; font-size: 14px; }
.pf .tk-sum { display: grid; gap: 6px; }
.pf .pf-h { font-weight: 750; font-size: 1.05rem; margin: 0 0 10px; }
.pf .alert.warn { background: rgba(255,197,97,.1); border: 1px solid rgba(255,197,97,.45); }
