/* 2026-11-27 v10.13 Register form layout (mc2u.com.my). Scoped to the Register modal only (#mc-register-form.mc-reg-ui). */
.wa-modal.mc-reg-modal{width:min(640px,calc(100vw - 24px));max-width:640px!important;padding:30px 34px 28px!important;border-radius:22px;border-top:6px solid #ffd900}
.wa-modal.mc-reg-modal h2{font-size:28px;margin:4px 0 0;letter-spacing:-.03em}
#mc-register-form.mc-reg-ui{display:grid;gap:22px;margin:20px 0 0;color:#1b1c19}
#mc-register-form.mc-reg-ui [hidden]{display:none!important}
#mc-register-form.mc-reg-ui fieldset{border:0!important;margin:0!important;padding:0!important;min-width:0}

/* Sections */
#mc-register-form .mc-reg-section{display:grid;gap:14px;min-width:0;padding-top:22px;border-top:1px solid #efece3}
#mc-register-form .mc-reg-section:first-of-type{padding-top:0;border-top:0}
#mc-register-form .mc-reg-heading{display:flex;align-items:center;gap:10px;margin:0;font-size:13px!important;line-height:1.2;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#1b1c19}
#mc-register-form .mc-reg-step{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#ffd900;color:#171918;font-size:12px;font-weight:800;letter-spacing:0}
#mc-register-form .mc-reg-grid,#mc-register-form .mc-reg-grid>.mc-specific-fields,#mc-register-form [data-registration-billing],#mc-register-form [data-registration-company]{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}
#mc-register-form .mc-reg-grid>*,#mc-register-form .mc-specific-fields>*{grid-column:1/-1;min-width:0;margin:0}
@media(min-width:700px){
  #mc-register-form .mc-reg-grid,#mc-register-form .mc-reg-grid>.mc-specific-fields,#mc-register-form [data-registration-company]{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}
  #mc-register-form .mc-reg-half{grid-column:auto}
}

/* Labels: always above the input, same size everywhere */
#mc-register-form.mc-reg-ui .mc-reg-grid label:not(.mc-account-types label),#mc-register-form.mc-reg-ui .mc-specific-fields>label{display:grid;gap:7px;align-content:start;font-size:14px!important;font-weight:600;line-height:1.4;color:#2b2d28}
#mc-register-form.mc-reg-ui label>span[data-person-name],#mc-register-form.mc-reg-ui label>span[data-preferred-name],#mc-register-form.mc-reg-ui label>span[data-country-label],#mc-register-form.mc-reg-ui label>span[data-person-email],#mc-register-form.mc-reg-ui label>span[data-identity-label],#mc-register-form.mc-reg-ui label>span[data-identity-confirm-label]{font:inherit}

/* Inputs: one height, one width, rounded */
#mc-register-form.mc-reg-ui input:not([type=radio]):not([type=checkbox]),#mc-register-form.mc-reg-ui select{box-sizing:border-box;width:100%;height:50px;min-height:50px;margin:0;padding:0 14px;border:1.5px solid #d8d4c8;border-radius:12px;background-color:#fff;color:#1b1c19;font:inherit;font-size:16px!important;font-weight:400;line-height:1.2;box-shadow:none;transition:border-color .15s,box-shadow .15s}
#mc-register-form.mc-reg-ui select{-webkit-appearance:none;appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%231b1c19' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 15px center;background-size:12px 8px;text-overflow:ellipsis}
#mc-register-form.mc-reg-ui input::placeholder{color:#a3a196}
#mc-register-form.mc-reg-ui input:not([type=radio]):not([type=checkbox]):hover,#mc-register-form.mc-reg-ui select:hover{border-color:#b9b5a8}
#mc-register-form.mc-reg-ui input:not([type=radio]):not([type=checkbox]):focus,#mc-register-form.mc-reg-ui select:focus{outline:0!important;border-color:#1b1c19;box-shadow:0 0 0 4px #ffe55c}
#mc-register-form.mc-reg-ui select[aria-readonly=true]{background-color:#f7f6f1;color:#4b4d46}
#mc-register-form.mc-reg-ui .mc-phone-row{display:grid;grid-template-columns:minmax(132px,36%) minmax(0,1fr);gap:10px}
#mc-register-form.mc-reg-ui .mc-phone-row select{padding-left:12px;padding-right:32px;background-position:right 12px center}
#mc-register-form.mc-reg-ui .mc-phone-error:empty{display:none}

/* Choice cards: account type, gender, Yes / No */
#mc-register-form.mc-reg-ui .mc-account-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
#mc-register-form.mc-reg-ui .mc-account-types legend{float:none;width:auto;margin:0 0 8px!important;padding:0!important;font-size:14px!important;font-weight:600!important;line-height:1.4;color:#2b2d28}
#mc-register-form.mc-reg-ui .mc-account-types>label{display:block!important;margin:0;cursor:pointer}
#mc-register-form.mc-reg-ui .mc-choice-text{display:grid!important;grid-template-columns:22px minmax(0,1fr);align-items:center;column-gap:10px;row-gap:4px;height:100%;box-sizing:border-box;padding:14px 16px!important;border:1.5px solid #d8d4c8!important;border-radius:14px!important;background:#fff!important;color:#1b1c19;transition:border-color .15s,background .15s}
#mc-register-form.mc-reg-ui .mc-account-types>label:hover .mc-choice-text{border-color:#9f9b8e!important}
#mc-register-form.mc-reg-ui .mc-choice-text b{font-size:15px;line-height:1.35}
#mc-register-form.mc-reg-ui .mc-choice-text small{grid-column:2!important;font-size:13px!important;line-height:1.45!important;color:#62655c!important;font-weight:400}
#mc-register-form.mc-reg-ui .mc-choice-tick{width:22px;height:22px;box-sizing:border-box;border:2px solid #9b9e93;border-radius:50%;font-size:13px;font-weight:800}
#mc-register-form.mc-reg-ui .mc-account-types input:checked+.mc-choice-text{background:#fff7c9!important;border-color:#1b1c19!important;box-shadow:inset 0 0 0 1px #1b1c19}
#mc-register-form.mc-reg-ui .mc-account-types input:checked+.mc-choice-text .mc-choice-tick{background:#1b1c19;border-color:#1b1c19;color:#ffd900}
#mc-register-form.mc-reg-ui .mc-account-types input:focus-visible+.mc-choice-text{outline:3px solid #3469cb;outline-offset:2px}
#mc-register-form.mc-reg-ui .mc-account-types input:disabled:not(:checked)+.mc-choice-text{opacity:.5;background:#f4f3ee!important;cursor:not-allowed}
#mc-register-form.mc-reg-ui .mc-account-types.mc-field-invalid .mc-choice-text{border-color:#c62b23!important;background:#fff4f3!important}
#mc-register-form.mc-reg-ui .mc-account-types>.mc-field-error,#mc-register-form.mc-reg-ui .mc-gender-hint{grid-column:1/-1;margin:0}
/* Gender: compact cards with the MC mascot on the right (mascot image unchanged) */
#mc-register-form.mc-reg-ui .mc-gender-choice .mc-choice-text{grid-template-columns:22px minmax(0,1fr) 48px;padding:8px 10px 8px 16px!important;min-height:64px}
#mc-register-form.mc-reg-ui .mc-gender-choice .mc-gender-thumb{width:48px;height:48px;object-fit:contain}
#mc-register-form.mc-reg-ui .mc-gender-hint{font-size:13px!important;line-height:1.5;color:#6b6e64}
/* Personal / Company billing cards (same typography as account type, with a short hint) */
#mc-register-form.mc-reg-ui .mc-billing-choice .mc-choice-text{align-items:start;padding:14px 16px!important}
#mc-register-form.mc-reg-ui .mc-required{display:inline!important;color:#c62b23!important;font-weight:700!important;margin:0 0 0 .2em!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;width:auto!important;height:auto!important;min-height:0!important;line-height:1!important;font-size:1em!important;cursor:default!important;text-align:inherit!important;position:static!important;float:none!important;box-shadow:none!important}
#mc-register-form.mc-reg-ui .mc-billing-note{margin:0;font-size:13px!important;line-height:1.5;color:#4a4a3e}
#mc-register-form.mc-reg-ui .mc-field-title{display:inline}
#mc-register-form.mc-reg-ui [data-registration-company]{padding:16px!important;border-radius:14px;background:#faf9f4}

/* One short note */
#mc-register-form.mc-reg-ui .mc-profile-accuracy{display:flex;gap:9px;align-items:flex-start;margin:0;padding:10px 14px;border-radius:12px;background:#fff8d6;color:#4a4a3e;font-size:13px!important;line-height:1.5}
#mc-register-form.mc-reg-ui .mc-profile-accuracy:before{content:'i';flex:none;display:inline-grid;place-items:center;width:18px;height:18px;margin-top:1px;border-radius:50%;background:#1b1c19;color:#ffd900;font:700 12px/1 Georgia,serif}

/* Errors */
#mc-register-form.mc-reg-ui .mc-field-error{margin:0!important;font-size:13px!important;font-weight:500}

/* Security check + one clear primary button */
#mc-register-form.mc-reg-ui #wa-security-check:empty,#mc-register-form.mc-reg-ui #wa-feedback:empty{display:none}
#mc-register-form.mc-reg-ui .mc-registration-submit{width:100%;height:auto;min-height:54px;margin-top:4px!important;border:0!important;border-radius:14px!important;background:#ffd900!important;color:#171918!important;font-size:16px!important;font-weight:800;letter-spacing:.01em;box-shadow:0 1px 0 #d9b800,0 6px 18px #ffd9004d!important;cursor:pointer}
#mc-register-form.mc-reg-ui .mc-registration-submit:hover:not([disabled]){background:#ffcf00!important}
#mc-register-form.mc-reg-ui .mc-registration-submit:focus-visible{outline:3px solid #1b1c19;outline-offset:3px}

@media(max-width:699px){
  .wa-modal.mc-reg-modal{padding:24px 18px 20px!important;border-radius:18px}
  .wa-modal.mc-reg-modal h2{font-size:25px}
  #mc-register-form.mc-reg-ui{gap:20px}
}
@media(max-width:479px){
  #mc-register-form.mc-reg-ui .mc-phone-row{grid-template-columns:minmax(0,47%) minmax(0,1fr);gap:8px}
  #mc-register-form.mc-reg-ui .mc-phone-row select{padding-right:28px;background-position:right 10px center}
  #mc-register-form.mc-reg-ui .mc-account-types:not(.mc-gender-choice):not(.mc-billing-choice){grid-template-columns:minmax(0,1fr);gap:10px}
  #mc-register-form.mc-reg-ui .mc-gender-choice .mc-choice-text{grid-template-columns:22px minmax(0,1fr) 40px;padding-left:12px!important;column-gap:8px}
  #mc-register-form.mc-reg-ui .mc-gender-choice .mc-gender-thumb{width:40px;height:40px}
}

/* v2 (27 Nov): desktop hardening. Found on MC's desktop: when the site's older form stylesheet (whatsapp-auth.css)
   is not applied, the form falls back to inline labels and bare inputs. These rules make the desktop layout
   stand on its own. Desktop only (700 px and up): the phone layout above is unchanged. */
@media(min-width:700px){
  .wa-modal.mc-reg-modal{box-sizing:border-box!important;overflow-x:hidden!important}
  #mc-register-form.mc-reg-ui{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:22px!important;width:100%!important;max-width:none!important;margin:20px 0 0!important;padding:0!important}
  #mc-register-form.mc-reg-ui>*{min-width:0;margin-left:0!important;margin-right:0!important}
  #mc-register-form .mc-reg-section{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;width:100%!important;box-sizing:border-box}
  #mc-register-form .mc-reg-section[hidden]{display:none!important}
  #mc-register-form .mc-reg-grid,#mc-register-form .mc-reg-grid>.mc-specific-fields,#mc-register-form [data-registration-company]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:14px!important;row-gap:16px!important;align-items:start!important;width:100%!important;box-sizing:border-box!important}
  #mc-register-form [data-registration-billing]:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;width:100%!important}
  #mc-register-form [data-registration-company][hidden],#mc-register-form [data-registration-billing][hidden],#mc-register-form .mc-specific-fields[hidden]{display:none!important}
  #mc-register-form .mc-reg-grid>*,#mc-register-form .mc-specific-fields>*{grid-column:1/-1!important;min-width:0!important;margin:0!important;float:none!important}
  #mc-register-form .mc-reg-grid>.mc-reg-half,#mc-register-form .mc-specific-fields>.mc-reg-half{grid-column:auto!important}
  /* every label is a block above its field */
  #mc-register-form.mc-reg-ui .mc-reg-grid label:not(.mc-account-types label),#mc-register-form.mc-reg-ui .mc-specific-fields>label{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;align-content:start!important;width:100%!important;box-sizing:border-box!important;margin:0!important;padding:0!important;text-align:left!important;white-space:normal!important;font-size:14px!important;font-weight:600!important;line-height:1.4!important}
  #mc-register-form.mc-reg-ui .mc-reg-grid label:not(.mc-account-types label)>span{display:block!important}
  /* every input/select: full width, full border, 50 px */
  #mc-register-form.mc-reg-ui input:not([type=radio]):not([type=checkbox]):not([type=hidden]),#mc-register-form.mc-reg-ui select{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;height:50px!important;min-height:50px!important;box-sizing:border-box!important;margin:0!important;padding:0 14px!important;border:1.5px solid #d8d4c8!important;border-radius:12px!important;background-color:#fff!important;font-size:16px!important;line-height:1.2!important;box-shadow:none}
  #mc-register-form.mc-reg-ui select{padding-right:40px!important;-webkit-appearance:none!important;appearance:none!important}
  #mc-register-form.mc-reg-ui select[aria-readonly=true]{background-color:#f7f6f1!important}
  #mc-register-form.mc-reg-ui input:not([type=radio]):not([type=checkbox]):focus,#mc-register-form.mc-reg-ui select:focus{border-color:#1b1c19!important;box-shadow:0 0 0 4px #ffe55c!important}
  #mc-register-form.mc-reg-ui input[aria-invalid=true],#mc-register-form.mc-reg-ui select[aria-invalid=true]{border:2px solid #c62b23!important;background-color:#fff2f1!important}
  /* WhatsApp: code + number on one line, same edges */
  #mc-register-form.mc-reg-ui .mc-phone-row{display:grid!important;grid-template-columns:minmax(132px,36%) minmax(0,1fr)!important;gap:10px!important;width:100%!important;align-items:stretch!important}
  #mc-register-form.mc-reg-ui .mc-phone-row select{padding-left:12px!important;padding-right:32px!important}
  /* choice cards keep their two equal columns */
  #mc-register-form.mc-reg-ui .mc-account-types{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important}
}
