.ckm-wrap{max-width:680px;margin:24px auto;background:#fff;border:1px solid #dce3eb;border-radius:16px;overflow:hidden;box-shadow:0 12px 30px #00356a12;color:#17324f;font-family:Arial,sans-serif}.ckm-head{background:#00356a;color:#fff;text-align:center;padding:30px 16px;display:flex;flex-direction:column;gap:6px}.ckm-head strong{color:#fbe819;font-size:27px;letter-spacing:1px}.ckm-head span{font-size:17px}.ckm-form{padding:26px;display:grid;gap:17px}.ckm-form label{font-size:14px;font-weight:600;display:grid;gap:7px}.ckm-form input:not([type=radio]):not([type=checkbox]),.ckm-form textarea{width:100%;box-sizing:border-box;border:1px solid #bdcbd9;border-radius:7px;padding:12px;font-size:16px;background:#fff;color:#172b45}.ckm-form input:focus,.ckm-form textarea:focus{outline:2px solid #00356a}.ckm-toggle{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ckm-toggle label{border:1px solid #d4dce5;border-radius:9px;padding:13px;display:block;text-align:center;cursor:pointer}.ckm-form fieldset{border:1px solid #d4dce5;border-radius:9px;padding:15px;display:grid;gap:12px}.ckm-form legend{font-weight:700;padding:0 8px}.ckm-term,.ckm-consent{display:flex!important;align-items:flex-start;gap:10px!important}.ckm-form button{background:#00356a;color:#fff;border:0;border-radius:9px;padding:16px;font-weight:700;font-size:16px;cursor:pointer}.ckm-form button:hover{background:#07519a}.ckm-hint{font-size:12px;color:#5d6b7b;margin:0}.ckm-new,.ckm-renew{display:grid;gap:16px}.ckm-new[hidden],.ckm-renew[hidden]{display:none}.ckm-alert{padding:15px;background:#fff7ce;color:#263c52}@media(max-width:520px){.ckm-form{padding:18px}.ckm-toggle{grid-template-columns:1fr}}

/* Club Kirrawee Membership Manager 1.1 branding */
.ckm-wrap{max-width:760px;border-radius:22px;border:1px solid #e0e6ef;box-shadow:0 18px 48px rgba(0,53,106,.12);font-family:inherit}
.ckm-head{padding:32px 24px 30px;gap:10px;background:linear-gradient(140deg,#00356a,#064d91)}
.ckm-head .ckm-logo{display:block;width:min(410px,94%);height:auto;max-height:125px;object-fit:contain;margin:0 auto 8px}
.ckm-head span{font-size:25px;font-weight:800;color:#fff}.ckm-head small{color:#e6eef8;font-size:13px}
.ckm-form{padding:32px;gap:22px}.ckm-form label{color:#17324f}
.ckm-toggle{gap:12px}.ckm-toggle label{position:relative;padding:0;border:0;cursor:pointer}
.ckm-toggle input{position:absolute;opacity:0;inset:0}.ckm-toggle span{display:block;padding:16px 8px;border:2px solid #d6e0eb;border-radius:12px;font-weight:800;background:#f6f8fb}
.ckm-toggle input:checked+span{background:#00356a;border-color:#00356a;color:#fff;box-shadow:inset 0 -4px #fbe819}
.ckm-toggle input:focus-visible+span{outline:3px solid #fbe819;outline-offset:3px}
.ckm-form fieldset{border-radius:14px;gap:11px;padding:19px}.ckm-form legend{font-size:17px;color:#00356a}
.ckm-term{display:flex!important;align-items:center!important;gap:12px!important;justify-content:space-between;padding:14px 16px;border:2px solid #dce5ed;border-radius:11px;cursor:pointer;background:#fff}
.ckm-term:has(input:checked){border-color:#00356a;background:#f0f6ff}.ckm-term input{accent-color:#00356a;width:19px;height:19px}.ckm-term span{flex:1}.ckm-term strong{font-size:18px;color:#00356a}
.ckm-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f1f6fb;border-radius:13px;padding:18px}.ckm-summary div{display:grid;gap:5px}.ckm-summary small{font-size:12px;color:#536b82}.ckm-total{font-size:26px;color:#00356a}
.ckm-form button{background:#fbe819;color:#00356a;font-size:17px;border-radius:12px;padding:18px}.ckm-form button:hover{background:#f3d900;color:#00356a}
.ckm-form input:focus-visible,.ckm-form textarea:focus-visible{outline:2px solid #00356a;outline-offset:2px}
@media(max-width:520px){.ckm-form{padding:19px;gap:18px}.ckm-toggle{grid-template-columns:1fr 1fr}.ckm-toggle span{font-size:13px;padding:13px 5px}.ckm-head span{font-size:21px}.ckm-summary{padding:14px}.ckm-total{font-size:23px}}

/* V1.3 layout and theme compatibility fixes */
.ckm-wrap{margin:42px auto 28px;max-width:780px;clear:both}
.ckm-wrap .ckm-head{padding:34px 24px!important;gap:12px!important;min-height:unset;line-height:1.4}
.ckm-wrap .ckm-head .ckm-logo{width:min(370px,90%);max-height:110px;margin:0 auto 12px;object-fit:contain}
.ckm-wrap .ckm-head span{display:block!important;position:static!important;font-size:26px!important;line-height:1.35!important;margin:0!important;padding:0!important;color:#fff!important}
.ckm-wrap .ckm-head small{display:block;line-height:1.5;font-size:14px}
.ckm-wrap .ckm-form{box-sizing:border-box;gap:20px}
.ckm-wrap .ckm-form label{line-height:1.45}
.ckm-wrap .ckm-form input:not([type=radio]):not([type=checkbox]),.ckm-wrap .ckm-form select{box-sizing:border-box;width:100%;min-height:46px;border:1px solid #bdcbd9;border-radius:9px;padding:10px 12px;background:#fff;color:#17324f;font-size:16px}
.ckm-wrap .ckm-form input[type=radio],.ckm-wrap .ckm-form input[type=checkbox]{width:auto;min-height:0;accent-color:#00356a}
.ckm-address-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.ckm-wrap .ckm-summary{display:flex!important;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.ckm-wrap .ckm-summary div{display:flex!important;flex-direction:column;gap:5px;min-width:170px}
.ckm-wrap .ckm-summary strong{display:block;line-height:1.3}
.ckm-wrap .ckm-summary small{display:block;line-height:1.4}
.ckm-wrap .ckm-consent{display:flex!important;align-items:flex-start!important;gap:12px!important;line-height:1.6}
.ckm-wrap .ckm-consent input{flex:0 0 auto;margin-top:4px}
.ckm-wrap .ckm-form button{width:100%;line-height:1.4}
@media(max-width:520px){.ckm-wrap{margin:20px auto}.ckm-address-grid{grid-template-columns:1fr}.ckm-wrap .ckm-head span{font-size:22px!important}}

/* V1.4: fully scoped, theme-resistant layout and legible brand treatment. */
.ckm-wrap{width:min(100% - 24px,860px)!important;max-width:860px!important;box-sizing:border-box!important;margin:32px auto!important;isolation:isolate}
.ckm-wrap,.ckm-wrap *{box-sizing:border-box}
.ckm-wrap .ckm-head{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:12px!important;padding:30px 24px!important;overflow:visible!important}
.ckm-wrap .ckm-head .ckm-logo{display:block!important;background:#fff!important;border-radius:12px!important;padding:14px!important;width:min(100%,410px)!important;max-width:410px!important;max-height:none!important;height:auto!important;object-fit:contain!important;margin:0 auto 5px!important}
.ckm-wrap .ckm-head span{font-size:clamp(21px,3vw,29px)!important;font-weight:800!important;letter-spacing:0!important;text-align:center!important}
.ckm-wrap .ckm-head small{font-size:14px!important;text-align:center!important;color:#eaf2ff!important}
.ckm-wrap .ckm-form{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important;padding:clamp(18px,4vw,36px)!important;min-width:0!important}
.ckm-wrap .ckm-form>*,.ckm-wrap .ckm-new>*,.ckm-wrap .ckm-renew>*{min-width:0!important;max-width:100%!important}
.ckm-wrap .ckm-form label{font-size:15px!important;line-height:1.5!important;margin:0!important;white-space:normal!important}
.ckm-wrap .ckm-form input:not([type=radio]):not([type=checkbox]),.ckm-wrap .ckm-form select{width:100%!important;max-width:100%!important;min-height:48px!important;padding:11px 14px!important;border:1px solid #b9c9db!important;border-radius:10px!important;background:#fff!important;color:#153252!important;font:inherit!important;font-size:16px!important;box-shadow:none!important;appearance:auto}
.ckm-wrap .ckm-form input:focus-visible,.ckm-wrap .ckm-form select:focus-visible{outline:3px solid #fbe819!important;outline-offset:2px!important;border-color:#00356a!important}
.ckm-wrap .ckm-form .ckm-toggle{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.ckm-wrap .ckm-toggle label{display:block!important;padding:0!important;border:0!important;position:relative!important}
.ckm-wrap .ckm-toggle label span{display:block!important;min-height:56px!important;padding:16px 10px!important;border:2px solid #d6e0eb!important;border-radius:12px!important;background:#f6f8fb!important;text-align:center!important;font-weight:800!important;color:#17324f!important}
.ckm-wrap .ckm-toggle input:checked+span{background:#00356a!important;border-color:#00356a!important;color:#fff!important;box-shadow:inset 0 -4px #fbe819!important}
.ckm-wrap .ckm-form fieldset{min-width:0!important;border:1px solid #d4dce5!important;border-radius:14px!important;padding:18px!important;margin:0!important;display:grid!important;gap:10px!important}
.ckm-wrap .ckm-form legend{padding:0 9px!important;font-size:17px!important;font-weight:800!important;color:#00356a!important}
.ckm-wrap .ckm-form .ckm-term{display:flex!important;flex-direction:row!important;align-items:center!important;gap:14px!important;padding:16px!important;border:2px solid #dce5ed!important;border-radius:12px!important;background:#fff!important;cursor:pointer!important}
.ckm-wrap .ckm-form .ckm-term:has(input:checked){border-color:#00356a!important;background:#f0f6ff!important}
.ckm-wrap .ckm-term input{flex:0 0 20px!important;width:20px!important;height:20px!important;margin:0!important;accent-color:#00356a!important}
.ckm-wrap .ckm-term span{flex:1!important}.ckm-wrap .ckm-term strong{font-size:19px!important;color:#00356a!important}
.ckm-wrap .ckm-form .ckm-summary{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:16px!important;padding:22px!important;background:#edf4fc!important;border:1px solid #d8e5f2!important;border-radius:14px!important}
.ckm-wrap .ckm-form .ckm-summary .ckm-summary-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:7px!important;flex:1 1 180px!important;min-width:0!important}
.ckm-wrap .ckm-summary-copy strong{display:block!important;font-size:16px!important;color:#00356a!important;line-height:1.3!important}
.ckm-wrap .ckm-summary-copy small{display:block!important;font-size:13px!important;color:#536b82!important;line-height:1.5!important;white-space:normal!important}
.ckm-wrap .ckm-summary .ckm-total{display:block!important;font-size:clamp(24px,4vw,32px)!important;line-height:1.2!important;white-space:nowrap!important;color:#00356a!important}
.ckm-wrap .ckm-form .ckm-consent{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:12px!important;font-size:14px!important;line-height:1.65!important}
.ckm-wrap .ckm-consent input{flex:0 0 19px!important;width:19px!important;height:19px!important;margin:3px 0 0!important}
.ckm-wrap .ckm-form button[type=submit]{display:block!important;width:100%!important;min-height:54px!important;padding:15px 20px!important;border:0!important;border-radius:11px!important;background:#fbe819!important;color:#00356a!important;font-size:16px!important;font-weight:800!important;line-height:1.45!important;cursor:pointer!important}
.ckm-wrap .ckm-form button[type=submit]:hover{background:#f4dc00!important}
.ckm-wrap .ckm-address-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.ckm-wrap .ckm-new[hidden],.ckm-wrap .ckm-renew[hidden]{display:none!important}
@media(max-width:520px){.ckm-wrap{width:100%!important;margin:14px auto!important;border-radius:14px!important}.ckm-wrap .ckm-form{padding:18px!important;gap:17px!important}.ckm-wrap .ckm-head{padding:22px 16px!important}.ckm-wrap .ckm-head .ckm-logo{padding:10px!important}.ckm-wrap .ckm-toggle label span{font-size:13px!important;padding:12px 6px!important;min-height:54px!important}.ckm-wrap .ckm-address-grid{grid-template-columns:1fr!important}.ckm-wrap .ckm-summary{padding:16px!important}}

/* V1.5 definitive component styling and theme override */
body .ckm-wrap{width:min(94vw,920px)!important;max-width:920px!important;margin:38px auto!important;font-size:16px!important}
body .ckm-wrap .ckm-form{padding:36px!important;gap:24px!important}
body .ckm-wrap .ckm-head{padding:38px 26px!important}
body .ckm-wrap .ckm-head .ckm-logo{width:min(390px,90%)!important;background:#fff!important;padding:14px!important;border-radius:12px!important}
body .ckm-wrap .ckm-form .ckm-summary{display:flex!important;gap:22px!important;align-items:center!important;justify-content:space-between!important;background:#eaf3fc!important;padding:22px!important}
body .ckm-wrap .ckm-form .ckm-summary-copy{display:flex!important;flex-direction:column!important;gap:7px!important;line-height:1.5!important}
body .ckm-wrap .ckm-form .ckm-summary-copy small{font-size:14px!important;display:block!important}
body .ckm-wrap .ckm-form .ckm-term{padding:17px 20px!important;border:2px solid #d3e0ed!important;border-radius:12px!important}
body .ckm-wrap .ckm-form .ckm-term:has(input:checked){background:#eaf3fc!important;border-color:#00356a!important}
body .ckm-wrap .ckm-form select{appearance:auto!important;min-height:48px!important;padding:10px 14px!important;border:1px solid #b9c9db!important;border-radius:10px!important}
@media(max-width:600px){body .ckm-wrap{width:100%!important;margin:16px auto!important}body .ckm-wrap .ckm-form{padding:18px!important}}

/* V1.6 approved full-width mockup layout */
body .ckm-wrap{width:min(96%,1050px)!important;max-width:1050px!important;border-radius:17px!important;overflow:hidden!important}
body .ckm-wrap .ckm-head{position:relative!important;display:flex!important;align-items:flex-start!important;text-align:left!important;justify-content:center!important;min-height:210px;padding:24px 36px!important;background-color:#00356a;background-repeat:no-repeat;background-size:cover!important;gap:7px!important}
body .ckm-wrap .ckm-head .ckm-logo{width:min(430px,72%)!important;max-height:86px!important;object-fit:contain!important;object-position:left!important;background:transparent!important;padding:0!important;margin:0!important;border-radius:0!important}
body .ckm-wrap .ckm-head span{font-size:clamp(26px,3.6vw,39px)!important;text-align:left!important;margin:0!important}
body .ckm-wrap .ckm-head small{text-align:left!important;font-size:15px!important}
body .ckm-wrap .ckm-form{gap:21px!important;padding:30px!important}
body .ckm-wrap .ckm-identity-grid{display:grid!important;grid-template-columns:7fr 3fr!important;gap:18px!important}
body .ckm-wrap .ckm-address-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
body .ckm-wrap .ckm-contact-grid{display:grid!important;grid-template-columns:1.1fr 1fr!important;gap:18px!important}
body .ckm-wrap .ckm-identity-grid>label,body .ckm-wrap .ckm-address-grid>label,body .ckm-wrap .ckm-contact-grid>label{min-width:0!important}
body .ckm-wrap .ckm-form fieldset{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;border:0!important;padding:0!important}
body .ckm-wrap .ckm-form legend{display:block!important;width:100%!important;margin:0 0 12px!important;padding:0!important;font-size:20px!important}
body .ckm-wrap .ckm-form .ckm-term{min-width:0!important;min-height:112px!important;display:grid!important;grid-template-columns:24px 1fr!important;grid-template-rows:1fr auto!important;align-items:center!important;gap:8px!important;padding:18px!important}
body .ckm-wrap .ckm-term span{grid-column:2!important;font-weight:800!important}
body .ckm-wrap .ckm-term strong{grid-column:2!important;font-size:23px!important}
body .ckm-wrap .ckm-term input{grid-row:1/3!important;align-self:center!important}
body .ckm-wrap .ckm-form .ckm-summary{padding:20px 24px!important}
@media(max-width:650px){body .ckm-wrap .ckm-head{min-height:180px;padding:24px 20px!important}body .ckm-wrap .ckm-head .ckm-logo{width:min(310px,88%)!important}body .ckm-wrap .ckm-identity-grid{grid-template-columns:1fr!important}body .ckm-wrap .ckm-address-grid{grid-template-columns:1fr 1fr!important}body .ckm-wrap .ckm-address-grid label:last-child{grid-column:1/-1}body .ckm-wrap .ckm-contact-grid{grid-template-columns:1fr!important}body .ckm-wrap .ckm-form fieldset{grid-template-columns:1fr!important}body .ckm-wrap .ckm-form .ckm-term{min-height:72px!important;grid-template-columns:24px 1fr auto!important;grid-template-rows:1fr!important}body .ckm-wrap .ckm-term input,body .ckm-wrap .ckm-term span,body .ckm-wrap .ckm-term strong{grid-row:1!important;grid-column:auto!important}}

/* v1.7: Three equal-width contact fields */
body .ckm-wrap .ckm-contact-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
@media(max-width:650px){body .ckm-wrap .ckm-contact-grid{grid-template-columns:1fr!important;}}

/* v1.8: both membership types share the complete form */
.ckm-wrap .ckm-shared{display:grid;gap:16px;min-width:0}.ckm-wrap .ckm-shared>*{min-width:0;max-width:100%}
