.hcpa-upload-form{max-width:720px;padding:24px;border:1px solid #e3e6ea;border-radius:12px;background:#fff;box-shadow:0 4px 18px rgba(0,0,0,.05)}
.hcpa-field{margin-bottom:20px}.hcpa-field label{display:block;font-weight:600;margin-bottom:7px}.hcpa-field input[type=file],.hcpa-field select,.hcpa-field textarea{width:100%;box-sizing:border-box}.hcpa-field select,.hcpa-field textarea{padding:10px;border:1px solid #cfd5dc;border-radius:6px}.hcpa-field small{display:block;margin-top:6px;color:#5d6670}.hcpa-static-value{padding:10px 12px;background:#f5f7f9;border-radius:6px}.hcpa-submit{border:0;border-radius:6px;padding:12px 20px;font-weight:700;cursor:pointer;background:#0057b8;color:#fff}.hcpa-submit:hover,.hcpa-submit:focus{filter:brightness(.94)}.hcpa-notice{max-width:720px;margin:0 0 18px;padding:12px 14px;border-radius:6px}.hcpa-success{background:#ecf8ef;border:1px solid #b8e2c1}.hcpa-error{background:#fff1f1;border:1px solid #efc0c0}.hcpa-empty{padding:16px;background:#f6f7f8;border-radius:8px}

/* HCPA three-image signature carousel.
 * The desktop grid is exactly 0.6 : 1 : 0.6 so each side image is 60% of
 * the center image's width. A common aspect ratio makes the height scale too.
 */
.hcpa-g2s-carousel{--hcpa-blue:#0057b8;--hcpa-yellow:#ffd700;--hcpa-charcoal:#1a1a1a;position:relative;width:100%;font-family:Open Sans,Arial,sans-serif}
.hcpa-g2s-carousel-stage{position:relative;width:100%;padding:22px 58px 14px;box-sizing:border-box;overflow:hidden;perspective:1400px;perspective-origin:center center}
.hcpa-g2s-carousel-track{display:grid;grid-template-columns:minmax(0,.6fr) minmax(0,1fr) minmax(0,.6fr);gap:clamp(12px,2vw,28px);align-items:center;width:100%;min-height:360px}
.hcpa-g2s-carousel-slide{display:none;margin:0;min-width:0;background:transparent;border-radius:0;overflow:visible;box-shadow:none;opacity:.88;cursor:pointer;transition:transform .28s ease;align-self:center;transform:perspective(1400px) translateX(0) rotateY(0deg);transform-style:preserve-3d;backface-visibility:hidden;will-change:transform}
.hcpa-g2s-carousel-slide.is-prev,.hcpa-g2s-carousel-slide.is-active,.hcpa-g2s-carousel-slide.is-next{display:block;transform:perspective(1400px) translateX(0) rotateY(0deg)}
.hcpa-g2s-carousel-slide.is-prev{grid-column:1;grid-row:1}
.hcpa-g2s-carousel-slide.is-active{grid-column:2;grid-row:1;opacity:1;cursor:default;z-index:2;box-shadow:none}
.hcpa-g2s-carousel-slide.is-next{grid-column:3;grid-row:1}
.hcpa-g2s-carousel-slide.is-prev:hover,.hcpa-g2s-carousel-slide.is-next:hover{transform:perspective(1400px) translateY(-3px) translateX(0) rotateY(0deg)}
.hcpa-g2s-carousel-media{width:100%;background:transparent;overflow:visible;display:flex;align-items:center;justify-content:center}
.hcpa-g2s-carousel-image{display:block;width:auto;height:auto;max-width:100%;max-height:none;object-fit:contain;background:transparent;backface-visibility:hidden}
.hcpa-g2s-carousel-caption{padding:13px 15px 15px;background:rgba(255,255,255,.92);color:var(--hcpa-charcoal);border-top:4px solid var(--hcpa-yellow);margin-top:8px;border-radius:0 0 10px 10px}
.hcpa-g2s-carousel-caption-text{font-size:clamp(.76rem,.95vw,.94rem);font-weight:600;line-height:1.38;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hcpa-g2s-carousel-slide.is-active .hcpa-g2s-carousel-caption{padding:17px 20px 19px;border-top-width:5px}
.hcpa-g2s-carousel-slide.is-active .hcpa-g2s-carousel-caption-text{font-size:clamp(1rem,1.25vw,1.18rem);line-height:1.5;-webkit-line-clamp:4}
.hcpa-g2s-carousel-date{display:block;margin-top:7px;font-size:.82rem;opacity:.72}
.hcpa-g2s-carousel-arrow{position:absolute;z-index:5;top:50%;transform:translateY(-50%);width:auto;height:auto;padding:10px 8px;border:0;border-radius:0;background:transparent;color:var(--hcpa-blue);font-size:clamp(54px,5vw,78px);font-weight:400;line-height:.75;cursor:pointer;box-shadow:none;text-shadow:0 2px 8px rgba(0,0,0,.12);transition:transform .18s ease,color .18s ease}
.hcpa-g2s-carousel-arrow:hover,.hcpa-g2s-carousel-arrow:focus{background:transparent;color:var(--hcpa-yellow);transform:translateY(-50%) scale(1.12);outline:0;box-shadow:none}
.hcpa-g2s-carousel-prev{left:4px}.hcpa-g2s-carousel-next{right:4px}
.hcpa-g2s-carousel-counter{position:absolute;z-index:5;right:66px;top:4px;padding:5px 9px;border-radius:999px;background:var(--hcpa-charcoal);color:#fff;font-size:.78rem;font-weight:700;letter-spacing:.04em}
.hcpa-g2s-carousel-controls{display:flex;justify-content:center;padding:8px 0 4px}
.hcpa-g2s-carousel-dots{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}
.hcpa-g2s-carousel-dot{width:9px;height:9px;padding:0;border:0;border-radius:999px;background:#b8c1cb;cursor:pointer;transition:width .25s ease,background .25s ease}
.hcpa-g2s-carousel-dot.is-active{width:30px;background:var(--hcpa-blue)}
.hcpa-g2s-carousel-thumbs{display:flex;gap:10px;overflow-x:auto;padding:10px 2px 4px;scrollbar-width:thin;scroll-snap-type:x proximity}
.hcpa-g2s-carousel-thumb{flex:0 0 92px;height:64px;padding:0;border:3px solid transparent;border-radius:9px;overflow:hidden;background:#eee;cursor:pointer;opacity:.7;scroll-snap-align:start;transition:opacity .2s ease,border-color .2s ease,transform .2s ease}
.hcpa-g2s-carousel-thumb img{width:100%;height:100%;object-fit:cover;display:block}.hcpa-g2s-carousel-thumb:hover,.hcpa-g2s-carousel-thumb:focus{opacity:1;transform:translateY(-1px)}.hcpa-g2s-carousel-thumb.is-active{opacity:1;border-color:var(--hcpa-yellow);box-shadow:0 0 0 1px var(--hcpa-blue)}

/* Graceful layouts while a section has fewer than three published images. */
.hcpa-g2s-carousel[data-count="1"] .hcpa-g2s-carousel-track{grid-template-columns:1fr;max-width:900px;margin-inline:auto}.hcpa-g2s-carousel[data-count="1"] .hcpa-g2s-carousel-slide.is-active{grid-column:1;grid-row:1}
.hcpa-g2s-carousel[data-count="2"] .hcpa-g2s-carousel-track{grid-template-columns:1fr .6fr;max-width:1050px;margin-inline:auto}.hcpa-g2s-carousel[data-count="2"] .hcpa-g2s-carousel-slide.is-active{grid-column:1;grid-row:1}.hcpa-g2s-carousel[data-count="2"] .hcpa-g2s-carousel-slide.is-next{grid-column:2;grid-row:1}.hcpa-g2s-carousel[data-count="2"] .hcpa-g2s-carousel-slide.is-prev{display:none}

/* Optional legacy grid */
.hcpa-update-grid{display:grid;gap:22px}.hcpa-cols-1{grid-template-columns:1fr}.hcpa-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.hcpa-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.hcpa-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.hcpa-update-card{margin:0;background:transparent;border-radius:0;overflow:visible;box-shadow:none;text-align:center}.hcpa-update-image-link{display:block;background:transparent}.hcpa-update-image{display:block;width:auto;max-width:100%;height:auto;margin:0 auto;object-fit:contain;background:transparent}.hcpa-update-card figcaption{padding:12px 14px;line-height:1.45;background:rgba(255,255,255,.92)}

@media(max-width:900px){
  .hcpa-cols-4,.hcpa-cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hcpa-g2s-carousel-stage{padding-inline:44px}
  .hcpa-g2s-carousel-track{gap:12px;min-height:280px}
  .hcpa-g2s-carousel-caption{padding:9px 10px 11px}
  .hcpa-g2s-carousel-slide.is-active .hcpa-g2s-carousel-caption{padding:13px 15px 15px}
  .hcpa-g2s-carousel-arrow{font-size:58px}
}
@media(max-width:600px){
  .hcpa-cols-4,.hcpa-cols-3,.hcpa-cols-2{grid-template-columns:1fr}.hcpa-upload-form{padding:18px}
  .hcpa-g2s-carousel-stage{padding:18px 30px 10px}
  .hcpa-g2s-carousel-track{grid-template-columns:.42fr 1fr .42fr;gap:7px;min-height:210px}
  .hcpa-g2s-carousel-caption{display:none}
  .hcpa-g2s-carousel-slide.is-active .hcpa-g2s-carousel-caption{display:block;padding:10px 11px 12px;border-top-width:3px}
  .hcpa-g2s-carousel-slide.is-active .hcpa-g2s-carousel-caption-text{font-size:.88rem;line-height:1.35;-webkit-line-clamp:3}
  .hcpa-g2s-carousel-arrow{font-size:46px;padding-inline:3px}
  .hcpa-g2s-carousel-prev{left:0}.hcpa-g2s-carousel-next{right:0}
  .hcpa-g2s-carousel-counter{right:34px;top:0;font-size:.7rem}
  .hcpa-g2s-carousel[data-count="2"] .hcpa-g2s-carousel-track{grid-template-columns:1fr .6fr}
}
@media(prefers-reduced-motion:reduce){.hcpa-g2s-carousel-slide,.hcpa-g2s-carousel-arrow,.hcpa-g2s-carousel-dot,.hcpa-g2s-carousel-thumb{transition:none!important}}


/* Front-end upload management */
.hcpa-manage-panel{max-width:1100px;margin-top:34px;padding-top:26px;border-top:1px solid #dfe3e7}.hcpa-manage-panel h3{margin:0 0 6px;color:#fff}.hcpa-manage-help{margin:0 0 18px;color:#d1d5db}.hcpa-manage-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:14px}.hcpa-manage-card{background:#fff;border:1px solid #dfe3e7;border-radius:10px;overflow:hidden;box-shadow:0 3px 12px rgba(0,0,0,.05)}.hcpa-manage-image-wrap{display:flex;align-items:center;justify-content:center;background:#f4f5f6;padding:8px;min-height:104px}.hcpa-manage-image{display:block;width:90px;height:90px;max-width:90px;max-height:90px;object-fit:cover;border-radius:4px}.hcpa-manage-missing{width:90px;height:90px;display:flex;align-items:center;justify-content:center;padding:10px;color:#6b7280;text-align:center}.hcpa-manage-body{padding:10px}.hcpa-manage-caption{font-weight:700;line-height:1.35;overflow-wrap:anywhere}.hcpa-manage-date{font-size:.88rem;margin-top:5px}.hcpa-manage-status{font-size:.82rem;color:#667085;margin:7px 0 10px}.hcpa-delete-button{border:1px solid #b42318;background:#fff;color:#b42318;border-radius:6px;padding:7px 10px;font-weight:700;cursor:pointer}.hcpa-delete-button:hover,.hcpa-delete-button:focus{background:#b42318;color:#fff}@media(max-width:520px){.hcpa-manage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hcpa-manage-image{width:78px;height:78px;max-width:78px;max-height:78px}.hcpa-manage-image-wrap{min-height:92px}}

.hcpa-field textarea{resize:vertical;min-height:78px;max-height:420px}
