/* The Patrick School - Online Admissions Application v1.5 (lifted from WP 2026-08-31) */

  @import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

  .tps-app{
    /* primary theme - defaults to TPS - Main Campus (green); overridden per campus below */
    --tps-green:#0c5a30;
    --tps-green-deep:#08401f;
    --tps-primary:#0c5a30;
    --tps-primary-deep:#08401f;
    --tps-gold:#c9a227;
    --tps-gold-soft:#e9d9a3;
    --tps-paper:#f4f4ee;
    --tps-ink:#1d2520;
    --tps-line:#cfd4c8;
    --tps-error:#a4262c;
    --tps-ok:#0c5a30;
    --tps-campus-label:"";
    font-family:'Public Sans',Arial,sans-serif;
    color:var(--tps-ink);
    background:var(--tps-paper);
    max-width:880px;margin:0 auto;padding:0 0 56px;
    border:1px solid var(--tps-line);
    box-shadow:0 18px 50px rgba(8,64,31,.12);
    position:relative;line-height:1.5;font-size:16px;
  }
  /* ===== Campus color-coding ===== */
  .tps-app[data-campus="main"]{
    --tps-green:#0c5a30; --tps-green-deep:#08401f;
    --tps-primary:#0c5a30; --tps-primary-deep:#08401f;
  }
  .tps-app[data-campus="busche"]{
    --tps-green:#1b4f9c; --tps-green-deep:#143a73;
    --tps-primary:#1b4f9c; --tps-primary-deep:#143a73;
  }
  .tps-app[data-campus="bball"]{
    --tps-green:#c2570c; --tps-green-deep:#93420a;
    --tps-primary:#c2570c; --tps-primary-deep:#93420a;
  }
  .tps-app[data-campus="other"]{
    --tps-green:#4a5568; --tps-green-deep:#2d3748;
    --tps-primary:#4a5568; --tps-primary-deep:#2d3748;
  }
  .tps-app *,.tps-app *::before,.tps-app *::after{box-sizing:border-box;}

  /* emergency-contact alert + field hints + prominent required picker */
  .tps-alert{
    background:#fff6ec;border:1px solid var(--tps-gold);border-left:5px solid var(--tps-gold);
    padding:13px 16px;font-size:13.5px;line-height:1.55;color:#5a4a1f;
  }
  .tps-alert strong{display:block;color:#7a5e12;margin-bottom:3px;}
  .tps-field-note{font-size:12px;color:#6b756d;margin:2px 0 0;font-style:italic;}
  .tps-required-pick{
    background:#fff;border:1px solid var(--tps-primary);padding:12px 14px;
  }
  .tps-required-pick legend{color:var(--tps-primary-deep);}
  .tps-campus-badge{
    display:inline-block;margin-top:12px;padding:5px 14px;border-radius:999px;
    background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.5);
    color:#fff;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  }
  .tps-campus-badge[hidden]{display:none;}

  /* ---------- masthead ---------- */
  .tps-mast{
    background:
      radial-gradient(1200px 300px at 80% -80px, rgba(201,162,39,.25), transparent 60%),
      linear-gradient(135deg,var(--tps-green-deep),var(--tps-green) 70%);
    color:#fff;padding:44px 48px 38px;position:relative;overflow:hidden;
  }
  .tps-mast::after{
    content:"";position:absolute;inset:auto 0 0 0;height:6px;
    background:repeating-linear-gradient(90deg,var(--tps-gold) 0 18px,var(--tps-green-deep) 18px 24px);
  }
  .tps-mast .tps-kicker{
    font-size:12px;letter-spacing:.28em;text-transform:uppercase;
    color:var(--tps-gold-soft);margin:0 0 10px;font-weight:600;
  }
  .tps-mast h1,.tps-mast h2{
    font-family:'Fraunces',Georgia,serif;font-weight:700;
    font-size:clamp(28px,4.5vw,42px);margin:0 0 6px;line-height:1.08;color:#fff;
  }
  .tps-mast .tps-tag{margin:0;color:#e8efe9;font-size:15px;font-style:italic;}

  /* ---------- progress strip ---------- */
  .tps-steps{
    display:flex;flex-wrap:wrap;gap:6px 18px;
    padding:14px 48px;background:#fff;border-bottom:1px solid var(--tps-line);
    font-size:12px;letter-spacing:.06em;text-transform:uppercase;font-weight:600;color:#6b756d;
  }
  .tps-steps span::before{content:"\25C6";color:var(--tps-gold);margin-right:6px;font-size:9px;vertical-align:1px;}

  /* ---------- sections ---------- */
  .tps-form{padding:8px 48px 0;}
  .tps-sec{margin-top:40px;}
  .tps-sec-head{
    display:flex;align-items:baseline;gap:14px;border-bottom:2px solid var(--tps-green);
    padding-bottom:8px;margin-bottom:22px;
  }
  .tps-sec-num{
    font-family:'Fraunces',Georgia,serif;font-size:30px;font-weight:600;color:var(--tps-gold);
    line-height:1;min-width:34px;
  }
  .tps-sec-head h2{
    font-family:'Fraunces',Georgia,serif;font-size:22px;font-weight:600;
    margin:0;color:var(--tps-green-deep);letter-spacing:.01em;
  }
  .tps-sec-note{font-size:13.5px;color:#5a655d;margin:-12px 0 18px;}

  .tps-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px 18px;}
  .tps-f{display:flex;flex-direction:column;gap:5px;}
  .c12{grid-column:span 12;} .c8{grid-column:span 8;} .c6{grid-column:span 6;}
  .c4{grid-column:span 4;} .c3{grid-column:span 3;}
  @media (max-width:680px){
    .tps-form,.tps-mast,.tps-steps,.tps-foot{padding-left:20px;padding-right:20px;}
    .c8,.c6,.c4,.c3{grid-column:span 12;}
  }

  .tps-f label{font-size:13px;font-weight:600;letter-spacing:.02em;color:var(--tps-green-deep);}
  .tps-f label .req{color:var(--tps-error);font-weight:700;}
  .tps-f input[type=text],.tps-f input[type=email],.tps-f input[type=tel],
  .tps-f input[type=date],.tps-f select,.tps-f textarea{
    font-family:'Public Sans',Arial,sans-serif;font-size:15px;color:var(--tps-ink);
    background:#fff;border:1px solid var(--tps-line);border-radius:0;
    padding:10px 12px;width:100%;transition:border-color .15s, box-shadow .15s;
    -webkit-appearance:none;appearance:none;
  }
  .tps-f select{
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%230c5a30'/></svg>");
    background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;
  }
  .tps-f textarea{min-height:96px;resize:vertical;}
  .tps-f input:focus,.tps-f select:focus,.tps-f textarea:focus{
    outline:none;border-color:var(--tps-green);box-shadow:0 0 0 3px rgba(12,90,48,.15);
  }
  .tps-f input.tps-invalid,.tps-f select.tps-invalid,.tps-f textarea.tps-invalid{
    border-color:var(--tps-error);box-shadow:0 0 0 3px rgba(164,38,44,.12);
  }

  /* choices */
  .tps-choices{display:flex;flex-wrap:wrap;gap:8px 18px;padding-top:2px;}
  .tps-choices label{
    display:inline-flex;align-items:center;gap:8px;font-size:14.5px;font-weight:500;
    color:var(--tps-ink);cursor:pointer;letter-spacing:0;
  }
  .tps-choices input{accent-color:var(--tps-green);width:16px;height:16px;cursor:pointer;}
  .tps-choices.tps-stack{flex-direction:column;gap:9px;}

  fieldset.tps-fs{border:0;padding:0;margin:0;min-width:0;}
  fieldset.tps-fs legend{
    font-size:13px;font-weight:600;color:var(--tps-green-deep);padding:0;margin-bottom:6px;letter-spacing:.02em;
  }

  /* sub-blocks (parent cards, school rows, sibling rows) */
  .tps-card{
    border:1px solid var(--tps-line);background:#fff;
    padding:20px;margin-bottom:18px;position:relative;
  }
  .tps-card::before{
    content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--tps-gold);
  }
  .tps-card h3{
    font-family:'Fraunces',Georgia,serif;font-size:17px;font-weight:600;
    margin:0 0 14px;color:var(--tps-green-deep);
  }

  .tps-addrow{
    background:none;border:1px dashed var(--tps-green);color:var(--tps-green);
    font:600 13.5px 'Public Sans',Arial,sans-serif;padding:8px 16px;cursor:pointer;
    letter-spacing:.03em;transition:background .15s,color .15s;
  }
  .tps-addrow:hover{background:var(--tps-green);color:#fff;}

  /* international reveal */
  #tps-intl{display:none;border:1px solid var(--tps-gold);background:#fdfaf0;padding:22px;margin-top:6px;}
  #tps-intl.tps-open{display:block;}
  #tps-intl .tps-intl-title{
    font-family:'Fraunces',Georgia,serif;font-size:18px;color:var(--tps-green-deep);
    margin:0 0 4px;font-weight:600;
  }
  .tps-smallprint{font-size:13px;color:#5a655d;line-height:1.55;margin:10px 0 14px;}

  /* certification */
  .tps-cert{
    background:#fff;border:1px solid var(--tps-line);padding:22px;margin-top:8px;
  }
  .tps-cert p{font-size:13.5px;color:#3c463f;margin:0 0 12px;line-height:1.6;}
  .tps-cert .tps-choices label{align-items:flex-start;font-size:14px;line-height:1.5;}
  .tps-cert .tps-choices input{margin-top:2px;flex:none;}

  /* submit */
  .tps-actions{margin-top:34px;display:flex;flex-wrap:wrap;align-items:center;gap:18px;}
  .tps-submit{
    font-family:'Fraunces',Georgia,serif;font-size:18px;font-weight:600;letter-spacing:.02em;
    background:var(--tps-green);color:#fff;border:none;padding:15px 38px;cursor:pointer;
    box-shadow:0 6px 0 var(--tps-green-deep);transition:transform .12s, box-shadow .12s, background .15s;
  }
  .tps-submit:hover{background:var(--tps-green-deep);}
  .tps-submit:active{transform:translateY(4px);box-shadow:0 2px 0 var(--tps-green-deep);}
  .tps-submit:disabled{opacity:.55;cursor:wait;transform:none;}
  .tps-status{font-size:14.5px;font-weight:600;min-height:1.4em;}
  .tps-status.err{color:var(--tps-error);}
  .tps-status.ok{color:var(--tps-ok);}

  /* success panel */
  .tps-done{display:none;padding:64px 48px;text-align:center;}
  .tps-done.tps-open{display:block;}
  .tps-done .tps-done-mark{
    width:64px;height:64px;border-radius:50%;background:var(--tps-green);color:#fff;
    font-size:30px;line-height:64px;margin:0 auto 18px;
  }
  .tps-done h2{font-family:'Fraunces',Georgia,serif;color:var(--tps-green-deep);font-size:26px;margin:0 0 10px;}
  .tps-done p{color:#3c463f;max-width:520px;margin:0 auto 8px;}
  .tps-done a{color:var(--tps-green);font-weight:600;}

  .tps-foot{
    margin-top:44px;padding:18px 48px 0;border-top:1px solid var(--tps-line);
    font-size:12.5px;color:#6b756d;display:flex;flex-wrap:wrap;gap:4px 24px;justify-content:space-between;
  }
  .tps-hp{display:none !important;}
