:root{font-family:Arial,Helvetica,sans-serif;color:#172b4d;background:#f7f8fa;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;padding:48px 20px}
.form-card{width:100%;max-width:480px;margin:0 auto;background:#fff;border-radius:9px;box-shadow:0 5px 12px #172b4d14;overflow:hidden}
.card-header{background:#2563eb;color:#fff;text-align:center;padding:28px 24px 26px}
h1{font-size:25px;line-height:1.2;letter-spacing:-.5px;margin:0 0 6px;font-weight:700}
.card-header p{font-size:16px;line-height:1.4;margin:0}
form{padding:26px 24px 22px}
.field{margin-bottom:19px}
.field label,legend{display:block;font-size:14px;font-weight:500;line-height:1.4;margin-bottom:9px}
input,textarea,button{font:inherit}
input:not([type=radio]),textarea{display:block;width:100%;border:1px solid #cbd2dd;border-radius:6px;padding:11px 12px;font-size:14px;line-height:20px;color:#172b4d;background:#fff}
textarea{resize:vertical;min-height:88px}
input::placeholder,textarea::placeholder{color:#737f90}
input:focus-visible,textarea:focus-visible,button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #93b4ff;outline-offset:3px}
input:not([type=radio]):focus,textarea:focus{border-color:#2563eb}
input[aria-invalid],textarea[aria-invalid]{border-color:#b42318}
.field-bottom{display:flex;justify-content:space-between;gap:10px}
#note-count{margin:6px 0 0 auto;font-size:11px;color:#637084;white-space:nowrap}
.field-error{font-size:12px;line-height:1.5;color:#b42318;margin:6px 0 0}
.field-error:empty{display:none}
fieldset{padding:0;margin:0 0 17px;border:0;min-width:0}
legend{padding:0}
.picture-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.picture-option{position:relative;cursor:pointer;min-width:0}
.picture-option>input{position:absolute;opacity:0;width:1px;height:1px}
.picture-card{display:flex;position:relative;flex-direction:column;align-items:center;height:100%;gap:8px;padding:7px;border:1px solid #cbd2dd;border-radius:6px;background:#fff}
.picture-card img{width:100%;height:100px;object-fit:contain;display:block;border-radius:3px;background:#f2f4f7}
.picture-card>span:not(.selection-mark){font-size:11px;line-height:1.4;text-align:center}
.selection-mark{position:absolute;top:11px;right:11px;border-radius:50%;width:20px;height:20px;background:#2563eb;color:#fff;display:none;align-items:center;justify-content:center;font-size:12px}
.picture-option input:checked+.picture-card{border-color:#2563eb;box-shadow:0 0 0 1px #2563eb;background:#eff5ff}
.picture-option input:checked+.picture-card .selection-mark{display:flex}
.picture-option input:focus-visible+.picture-card{outline:3px solid #93b4ff;outline-offset:3px}
.picture-option:hover .picture-card{border-color:#2563eb}
.preview{border-top:1px solid #e6eaf0;margin-bottom:19px}
summary{font-size:12px;color:#255bc4;padding:13px 0 0;cursor:pointer;min-height:35px}
summary:hover{color:#173f91}
.postcard{margin-top:14px;padding:18px;border:1px solid #e0e5ee;border-radius:6px;background:#f9fafc}
#preview-image{display:block;width:100%;height:180px;object-fit:contain}
#preview-title{font-size:12px;color:#255bc4;font-weight:700}
#preview-note{white-space:pre-wrap;overflow-wrap:anywhere;font-family:Georgia,serif;font-size:17px;line-height:1.6}
.signature{font-size:12px;overflow-wrap:anywhere}
#send-button{display:block;width:100%;background:#2563eb;color:#fff;border:0;border-radius:6px;padding:12px 14px;font-size:15px;line-height:20px;cursor:pointer}
#send-button:hover{background:#1d4ed8}
#send-button:active{background:#1e40af}
#send-button:disabled{opacity:.65;cursor:wait}
#sending-status{font-size:12px;line-height:1.5;margin:12px 0 0}
#sending-status:empty{display:none}
.send-note{text-align:center;color:#637084;font-size:11px;line-height:1.7;margin:13px 0 0}
.notice{border:1px solid;padding:12px;margin-bottom:20px;font-size:13px;line-height:1.6;border-radius:6px;overflow-wrap:anywhere}
.success{background:#eef8ef;color:#286638;border-color:#b5d6bd}
.error{background:#fff4f2;color:#a52a20;border-color:#efbeb8}
.wordmark{color:#2563eb;font-size:24px;font-weight:bold;text-decoration:none}
@media(max-width:480px){body{padding:24px 14px}.card-header{padding:25px 18px}form{padding:22px 18px}.picture-grid{gap:8px}.picture-card{padding:5px}.picture-card img{height:90px}}
