/* Connect > Careers (VRP, internship) and Connect > Grievances forms. Matches write-to-us.css. */
.pf-card {
  max-width: 980px;
  margin: var(--spacing-8, 32px) auto var(--spacing-12, 48px);
  padding: clamp(20px, 4vw, 40px);
  background: #fff;
  border: 1px solid #e3e8f4;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(13, 22, 66, 0.08);
}

/* Tabs */
.pf-tabs { display: flex; gap: 8px; margin: 0 0 28px; padding: 0 0 2px; overflow-x: auto; border-bottom: 1px solid #e3e8f4; }
.pf-tab {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 18px; border-radius: 12px 12px 0 0; border-bottom: 3px solid transparent;
  color: var(--color-grey-700, #455a64); font-weight: 600; text-decoration: none; line-height: 1.3;
}
@media (max-width: 480px) { .pf-tab { padding: 10px 12px; font-size: .92rem; } }
.pf-tab small { font-weight: 400; font-size: .78rem; color: var(--color-grey-500, #78909c); }
.pf-tab:hover { background: #f5f7fd; color: var(--color-primary, #1a237e); }
.pf-tab.active { border-bottom-color: var(--color-accent, #f57c00); color: var(--color-primary, #1a237e); background: #f8faff; }
.pf-tab:focus-visible { outline: 3px solid var(--color-primary-light, #3949ab); outline-offset: -3px; }

.pf-title { margin: 0 0 6px; font-size: var(--font-size-2xl, 1.5rem); font-weight: 700; color: var(--color-primary-dark, #0d1642); }
.pf-title span { font-size: .95rem; font-weight: 500; color: var(--color-grey-500, #78909c); }
.pf-intro { margin: 0 0 24px; color: var(--color-grey-600, #546e7a); line-height: 1.6; }

/* Sections and fields */
.pf-section { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.pf-section > legend {
  width: 100%; margin: 0 0 16px; padding: 0 0 8px; border-bottom: 1px solid #e3e8f4;
  font-size: 1rem; font-weight: 700; color: var(--color-accent-dark, #e65100);
}
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.pf-field { display: flex; flex-direction: column; margin-bottom: 18px; min-width: 0; }
.pf-wide { grid-column: 1 / -1; }
.pf-field > label, .pf-checks > legend { margin-bottom: 7px; font-size: .9rem; font-weight: 600; color: var(--color-grey-800, #37474f); }
.pf-req { color: #dc2626; }

.pf-field input:not([type=checkbox]), .pf-field select, .pf-field textarea, .pf-track input {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d5dcef; border-radius: 12px; background: #f8faff;
  font: inherit; font-size: .95rem; color: var(--color-grey-900, #212121);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.pf-field input[type=file] { padding: 9px 12px; background: #fff; }
.pf-field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.pf-field input:focus, .pf-field select:focus, .pf-field textarea:focus, .pf-track input:focus {
  outline: none; background: #fff; border-color: var(--color-primary-light, #3949ab); box-shadow: 0 0 0 4px rgba(57, 73, 171, .14);
}
.pf-field.has-error input:not([type=checkbox]), .pf-field.has-error select, .pf-field.has-error textarea { border-color: #dc2626; background: #fff8f8; }
.pf-hint { margin-top: 5px; font-size: .8rem; color: var(--color-grey-500, #78909c); }
.pf-error { margin-top: 5px; font-size: .82rem; color: #dc2626; }
.pf-count { margin-top: 4px; font-size: .75rem; color: #94a3b8; text-align: right; }

.pf-checks { border: 0; padding: 0; }
.pf-check-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pf-check-list label, .pf-agree label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--color-grey-800, #37474f); cursor: pointer; }
.pf-check-list input, .pf-agree input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--color-primary, #1a237e); flex-shrink: 0; }
.pf-agree label { line-height: 1.55; }
.pf-agree.has-error label { color: #b91c1c; }
[data-anon-hide][hidden] { display: none; }

.pf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-note { margin: 0 0 18px; font-size: .85rem; color: var(--color-grey-500, #78909c); }

/* Buttons */
.pf-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 28px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary-dark, #0d1642), var(--color-primary, #1a237e));
  color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(26, 35, 126, .24); transition: transform .2s ease, box-shadow .2s ease;
}
.pf-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(26, 35, 126, .3); }
.pf-btn:disabled { opacity: .7; cursor: wait; }
.pf-btn-outline { background: #fff; color: var(--color-primary, #1a237e); border: 1.5px solid #c5cde8; box-shadow: none; }
.pf-btn-outline:hover:not(:disabled) { box-shadow: none; background: #f5f7fd; }
.pf-btn:focus-visible { outline: 3px solid #ffb74d; outline-offset: 2px; }

/* Alerts and confirmation */
.pf-alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; margin: 0 0 22px; border-radius: 12px; background: #fdecea; color: #b71c1c; border: 1px solid #f5c2c0; font-size: .95rem; }
.pf-alert i { margin-top: 3px; }
.pf-done { margin: 0 0 30px; padding: 22px; border-radius: 14px; background: #e8f5e9; border: 1px solid #b7dfb9; color: #1b5e20; }
.pf-done:focus { outline: none; }
.pf-done-head { display: flex; gap: 12px; align-items: flex-start; }
.pf-done-head i { font-size: 1.5rem; margin-top: 2px; }
.pf-done-head p { margin: 4px 0 0; color: #2e7d32; }
.pf-ref { margin: 16px 0; padding: 14px 18px; background: #fff; border: 1px dashed #66bb6a; border-radius: 12px; }
.pf-ref span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #558b2f; }
.pf-ref strong { font-size: 1.45rem; letter-spacing: .04em; color: #1b5e20; overflow-wrap: anywhere; }
.pf-done-actions { margin-bottom: 12px; }
.pf-summary summary { cursor: pointer; font-weight: 600; color: #1b5e20; }
.pf-summary table, .pf-track-result table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .9rem; background: #fff; border-radius: 10px; overflow: hidden; }
.pf-summary td, .pf-track-result td { padding: 9px 12px; border-bottom: 1px solid #eef1f8; vertical-align: top; color: #1e293b; overflow-wrap: anywhere; }
.pf-summary td:first-child, .pf-track-result td:first-child { width: 36%; color: #64748b; }
.pf-summary-sec th { padding: 10px 12px 6px; text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-accent-dark, #e65100); background: #fafbff; }

/* Tracking */
.pf-track { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.pf-track input { flex: 1 1 260px; text-transform: uppercase; }
.pf-track-result { border: 1px solid #e3e8f4; border-radius: 12px; overflow: hidden; }
.pf-track-result table { margin: 0; border-radius: 0; }
.pf-status { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #fff3e0; color: #b45309; font-weight: 600; font-size: .82rem; }
.pf-status.is-closed { background: #e8f5e9; color: #1b5e20; }

@media (max-width: 640px) {
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-actions .pf-btn, .pf-track .pf-btn { width: 100%; }
  .pf-summary td:first-child, .pf-track-result td:first-child { width: 42%; }
}

/* Printing the confirmation: only the confirmation box, with the answers expanded. */
@media print {
  body.pf-printing * { visibility: hidden; }
  body.pf-printing .pf-done, body.pf-printing .pf-done * { visibility: visible; }
  body.pf-printing .pf-done { position: absolute; inset: 0 auto auto 0; width: 100%; background: #fff; border: 0; }
  body.pf-printing .pf-done-actions { display: none; }
}
