/* Account-only presentation. Keep ACF fields, labels and conditional behavior intact. */
.esicm-renewal-page div#page_container + div#page_container { padding-top: 32px; }
.esicm-renewal-layout {
    --renewal-accent: #5500f9;
    --renewal-blue: #000ebc;
    --renewal-ink: #29334b;
    --renewal-muted: #606b80;
    --renewal-line: #e0e5ef;
    display: grid;
    gap: 28px;
    margin-block-end: 48px;
    font-family: "Fira Sans", sans-serif;
    color: var(--renewal-ink);
}
.esicm-renewal-layout *, .esicm-renewal-layout *::before, .esicm-renewal-layout *::after { box-sizing: border-box; }
.esicm-renewal-layout .esicm-renewal-card,
.esicm-renewal-layout .esicm-renewal-settings {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--renewal-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(31, 37, 91, .035);
}
.esicm-renewal-layout .esicm-renewal-card { padding: 28px; }
.esicm-renewal-layout .erc-heading { margin-block-end: 24px; gap: 12px; align-items: center; }
.esicm-renewal-layout .erc-heading h2 {
    margin: 0;
    color: var(--renewal-blue);
    font-family: "Fira Sans Condensed", sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}
.esicm-renewal-layout .erc-provider {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 6px;
    background: #f3f5fa;
    color: var(--renewal-muted);
    font: 400 12px/1.3 "Fira Sans", sans-serif;
}
.esicm-renewal-layout .erc-provider::before {
    content: "";
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1Zm2 0h6V7a3 3 0 0 0-6 0v3Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.esicm-renewal-layout .erc-card-summary {
    position: relative;
    padding: 19px 20px;
    margin-block-end: 20px;
    border: 1px solid #e8e5f2;
    border-radius: 8px;
    background: #f8f7fc;
}
.esicm-renewal-layout .erc-card-summary p { margin: 0; }
.esicm-renewal-layout .erc-card-summary p + p { margin-block-start: 6px; }
.esicm-renewal-layout .esicm-renewal-card p {
    font: 400 14px/1.65 "Fira Sans", sans-serif;
    color: var(--renewal-muted);
    text-wrap: pretty;
}
.esicm-renewal-layout .esicm-renewal-card p strong { font-family: inherit; font-weight: 500; color: var(--renewal-ink); }
.esicm-renewal-layout .esicm-renewal-card .erc-card-number { font-size: 17px; font-variant-numeric: tabular-nums; }
.esicm-renewal-layout .erc-card-number span { margin-inline-start: 8px; }
.esicm-renewal-layout .esicm-renewal-card .erc-expired { color: #a82b20; }
.esicm-renewal-layout .erc-consent {
    gap: 11px;
    margin-block: 22px;
    padding-block-start: 20px;
    border-block-start: 1px solid var(--renewal-line);
    font: 400 13px/1.6 "Fira Sans", sans-serif;
    color: var(--renewal-muted);
}
.esicm-renewal-layout .erc-consent input { width: 18px; height: 18px; margin-block-start: 2px; accent-color: var(--renewal-accent); }
.esicm-renewal-layout .erc-actions { gap: 10px; margin-block-start: 20px; }
.esicm-renewal-layout .erc-notice { border-radius: 6px; }
.esicm-renewal-layout #acf-form { margin: 0; }
.esicm-renewal-layout #acf-form .acf-fields { border: 0; }
.esicm-renewal-layout #acf-form .acf-field {
    padding: 24px 28px;
    margin: 0;
    border: 0;
    border-block-end: 1px solid var(--renewal-line);
}
.esicm-renewal-layout #acf-form .acf-label { margin-block-end: 10px; }
.esicm-renewal-layout #acf-form .acf-label > label {
    margin: 0;
    color: var(--renewal-ink);
    font: 500 16px/1.4 "Fira Sans Condensed", sans-serif;
}
.esicm-renewal-layout #acf-form .acf-field[data-name="enable"] {
    border-radius: 12px 12px 0 0;
    background: #f8f7fc;
}
.esicm-renewal-layout #acf-form .acf-field-true-false {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}
.esicm-renewal-layout #acf-form .acf-field-true-false > .acf-label { flex: 1; margin: 0; }
.esicm-renewal-layout #acf-form .acf-field-true-false > .acf-input { flex: 0 0 auto; overflow: visible; }
.esicm-renewal-layout #acf-form .acf-true-false label { display: flex; margin: 0; padding: 4px 0; cursor: pointer; }
.esicm-renewal-layout #acf-form .acf-true-false input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: block;
    width: 46px;
    height: 26px;
    margin: 0;
    border: 1px solid #aab3c4;
    border-radius: 20px;
    background: #bdc5d3;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}
.esicm-renewal-layout #acf-form .acf-true-false input[type="checkbox"]::before {
    content: "";
    display: block;
    position: absolute;
    inset-inline-start: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(34, 24, 69, .16);
    transition: transform .18s ease;
}
.esicm-renewal-layout #acf-form .acf-true-false input[type="checkbox"]:checked { background: var(--renewal-accent); border-color: var(--renewal-accent); }
.esicm-renewal-layout #acf-form .acf-true-false input[type="checkbox"]:checked::before { transform: translateX(20px); }
[dir="rtl"] .esicm-renewal-layout #acf-form .acf-true-false input[type="checkbox"]:checked::before { transform: translateX(-20px); }
.esicm-renewal-layout #acf-form select:not(.select2-hidden-accessible),
.esicm-renewal-layout #acf-form input[type="text"],
.esicm-renewal-layout #acf-form input[type="email"],
.esicm-renewal-layout #acf-form input[type="number"],
.esicm-renewal-layout #acf-form .select2-selection--single {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #cdd4e1;
    border-radius: 8px;
    background-color: #fff;
    color: var(--renewal-ink);
    font: 400 15px/1.5 "Fira Sans", sans-serif;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.esicm-renewal-layout #acf-form select:not(.select2-hidden-accessible):hover,
.esicm-renewal-layout #acf-form input[type="text"]:hover { border-color: #9b89c8; }
.esicm-renewal-layout #acf-form .select2-selection__rendered { padding: 0; line-height: 26px; }
.esicm-renewal-layout #acf-form .select2-selection__arrow { top: 10px; right: 9px; }
.esicm-renewal-layout #acf-form .description {
    margin: 10px 0 18px;
    color: var(--renewal-muted);
    font: 400 14px/1.65 "Fira Sans", sans-serif;
}
.esicm-renewal-layout #acf-form .acf-radio-list { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; }
.esicm-renewal-layout #acf-form .acf-radio-list::before,
.esicm-renewal-layout #acf-form .acf-radio-list::after { display: none; }
.esicm-renewal-layout #acf-form .acf-radio-list li { flex: 1; min-width: 110px; margin: 0; padding: 0; }
.esicm-renewal-layout #acf-form .acf-radio-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 14px;
    border: 1px solid #d8dfeb;
    border-radius: 8px;
    color: var(--renewal-ink);
    background: #fff;
    font: 400 14px/1.4 "Fira Sans", sans-serif;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}
.esicm-renewal-layout #acf-form .acf-radio-list label:has(input:checked) { border-color: #b5a0e6; background: #f6f2ff; }
.esicm-renewal-layout #acf-form input[type="radio"] { width: 17px; height: 17px; margin: 0; accent-color: var(--renewal-accent); }
.esicm-renewal-layout #acf-form .acf-form-submit { padding: 22px 28px; }
.esicm-renewal-page .woocommerce .esicm-renewal-layout :is(input[type="submit"],button.button,a.button) {
    min-height: 44px;
    height: auto;
    max-width: 100%;
    padding: 9px 35px 9px 16px !important;
    border-width: 1.5px !important;
    border-radius: 8px;
    font: 500 15px/1.5 "Fira Sans", sans-serif;
    background-position: calc(100% - 14px) center !important;
    white-space: normal;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.esicm-renewal-page .woocommerce .esicm-renewal-layout :is(input[type="submit"],button.button,a.button):active { transform: translateY(1px); }
.esicm-renewal-layout :is(input,select,button,a.button):focus-visible {
    outline: 3px solid #bca5ff;
    outline-offset: 3px;
}
.esicm-renewal-layout :is(input,select,button):disabled { cursor: not-allowed; opacity: .65; }
.esicm-renewal-layout #acf-form .acf-hidden { display: none !important; }
/* Decorative icons share the site's violet accent; all labels remain native. */
.esicm-renewal-layout .erc-heading h2,
.esicm-renewal-layout #acf-form .acf-label > label {
    position: relative;
    display: block;
    min-height: 36px;
    padding: 7px 0 7px 46px;
}
.esicm-renewal-layout .erc-heading h2 { padding-block: 3px; }
.esicm-renewal-layout .erc-heading h2::before,
.esicm-renewal-layout #acf-form .acf-label > label::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #f1ebff var(--renewal-field-icon) center / 22px no-repeat;
}
.esicm-renewal-layout .erc-heading h2 { --renewal-field-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235500f9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222.5%22%20y%3D%224.5%22%20width%3D%2219%22%20height%3D%2215%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M2.5%209.5h19M6%2015h3M12%2015h1%22%2F%3E%3C%2Fsvg%3E"); }
.esicm-renewal-layout #acf-form .acf-field[data-name="enable"] { --renewal-field-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235500f9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%207v5h-5M4%2017v-5h5%22%2F%3E%3Cpath%20d%3D%22M6.1%206a8%208%200%200%201%2013.6%203M4.3%2015A8%208%200%200%200%2017.9%2018%22%2F%3E%3C%2Fsvg%3E"); }
.esicm-renewal-layout #acf-form .acf-field[data-name="change_membership"] { --renewal-field-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235500f9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%223%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20d%3D%22M5.5%2016c.5-3.3%206.5-3.3%207%200M16%209h2M16%2013h2%22%2F%3E%3C%2Fsvg%3E"); }
.esicm-renewal-layout #acf-form .acf-field[data-name="icm_journal"] { --renewal-field-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235500f9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205.5C9.4%203.8%206%203.6%203%205v14c3-1.4%206.4-1.2%209%20.5%202.6-1.7%206-1.9%209-.5V5c-3-1.4-6.4-1.2-9%20.5Zm0%200v14M6%208.5l3%20.4M15%208.9l3-.4%22%2F%3E%3C%2Fsvg%3E"); }
.esicm-renewal-layout #acf-form .acf-field[data-name="are_you_a_vat_tax_payer"] { --renewal-field-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235500f9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203l2%201%202-1%202%201%202-1%202%201%202-1v18l-2-1-2%201-2-1-2%201-2-1-2%201V3ZM9%2015l6-6%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%221%22%2F%3E%3C%2Fsvg%3E"); }
.esicm-renewal-layout #acf-form .acf-field[data-name="vat_number"] { --renewal-field-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235500f9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10%203-4%2018M18%203l-4%2018M4%208h17M3%2016h17%22%2F%3E%3C%2Fsvg%3E"); }
.esicm-renewal-layout #acf-form .acf-field[data-name="first_year_training_programme"] { --renewal-field-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235500f9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m2%209%2010-5%2010%205-10%205L2%209Zm4%202v6c4%203%208%203%2012%200v-6M22%209v7%22%2F%3E%3C%2Fsvg%3E"); }
.esicm-renewal-layout #acf-form .acf-field[data-name="national_society"] { --renewal-field-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235500f9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cellipse%20cx%3D%2212%22%20cy%3D%2212%22%20rx%3D%224%22%20ry%3D%229%22%2F%3E%3Cpath%20d%3D%22M3%2012h18M5%206.5c4%202%2010%202%2014%200M5%2017.5c4-2%2010-2%2014%200%22%2F%3E%3C%2Fsvg%3E"); }
@media (max-width: 600px) {
    .esicm-renewal-page div#page_container + div#page_container { padding-top: 24px; }
    .esicm-renewal-layout { gap: 20px; margin-block-end: 28px; }
    .esicm-renewal-layout .esicm-renewal-card { padding: 22px 18px; }
    .esicm-renewal-layout .erc-heading { align-items: flex-start; gap: 10px; }
    .esicm-renewal-layout .erc-heading h2 { font-size: 24px; }
    .esicm-renewal-layout .erc-card-summary { padding: 17px 14px; }
    .esicm-renewal-layout #acf-form .acf-field { padding: 21px 18px; }
    .esicm-renewal-layout #acf-form .acf-form-submit { padding: 20px 18px; }
    .esicm-renewal-layout #acf-form select:not(.select2-hidden-accessible),
    .esicm-renewal-layout #acf-form input[type="text"] { font-size: 16px; }
    .esicm-renewal-page .woocommerce .esicm-renewal-layout :is(input[type="submit"],button.button,a.button) { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .esicm-renewal-layout *, .esicm-renewal-layout *::before { transition: none !important; }
}
