/* Formulaire d'adhésion simplifié — mobile first, marque UNSA #0093da */

body.amr-simple-checkout {
  --amr-blue: #0093da;
  --amr-blue-dark: #0077b3;
  --amr-text: #1a2330;
  --amr-muted: #5c6b7a;
  --amr-border: #d5dee7;
  --amr-bg: #f4f7fa;
  --amr-card: #ffffff;
  --amr-radius: 12px;
  background: var(--amr-bg) !important;
}

body.amr-simple-checkout.mepr-pro-template .site.app-layout,
body.amr-simple-checkout.mepr-pro-template #page {
  background: var(--amr-bg);
}

body.amr-simple-checkout .mepr-signup-form,
body.amr-simple-checkout .mepr-before-signup-form,
body.amr-simple-checkout.mepr-pro-template #primary {
  max-width: 520px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.amr-simple-checkout #primary.site-main {
  padding: 12px 16px 32px;
}

body.amr-simple-checkout .mepr-checkout-container {
  display: flex !important;
  flex-direction: column-reverse !important;
  max-width: 520px !important;
  width: 100%;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto;
  gap: 12px;
}

body.amr-simple-checkout .mepr-checkout-container .invoice-wrapper,
body.amr-simple-checkout .mepr-checkout-container .form-wrapper {
  width: 100% !important;
  padding: 16px !important;
  border: 0 !important;
  border-left: 0 !important;
  border-bottom: 0 !important;
  background: var(--amr-card);
  border-radius: var(--amr-radius);
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.06);
}

body.amr-simple-checkout .mepr-checkout-container .invoice-wrapper {
  flex: 0 0 auto;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

body.amr-simple-checkout .invoice-wrapper .invoice-heading {
  font-size: 0.8rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amr-muted) !important;
  margin-bottom: 4px !important;
}

body.amr-simple-checkout .invoice-wrapper .invoice-amount {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--amr-blue) !important;
  line-height: 1.2 !important;
}

body.amr-simple-checkout .invoice-wrapper .mepr_price {
  margin-bottom: 0.75rem !important;
}

body.amr-simple-checkout .invoice-wrapper table,
body.amr-simple-checkout .invoice-wrapper table th,
body.amr-simple-checkout .invoice-wrapper table td {
  font-size: 0.9rem;
}

body.amr-simple-checkout .invoice-wrapper table tr td:first-child {
  width: 36px;
}

body.amr-simple-checkout .invoice-wrapper table tr td:first-child img {
  width: 24px;
  height: auto;
}

body.amr-simple-checkout .form-wrapper {
  padding-bottom: 20px !important;
}

body.amr-simple-checkout .form-wrapper > * + * {
  margin-top: 0;
}

body.amr-simple-checkout .amr-section-title {
  display: block;
  margin: 20px 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amr-blue);
}

body.amr-simple-checkout .amr-section-title:first-child {
  margin-top: 0;
}

body.amr-simple-checkout .amr-name-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 100%;
  min-width: 0;
}

body.amr-simple-checkout .amr-name-field > label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amr-text);
}

body.amr-simple-checkout .amr-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.amr-simple-checkout .amr-hidden-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.amr-simple-checkout .form-wrapper .mp-form-row-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

body.amr-simple-checkout .form-wrapper .mp-form-row-group > .mepr-form-input + .mepr-form-input,
body.amr-simple-checkout .form-wrapper .mp-form-row-group .mepr-form-input:not(:first-child),
body.amr-simple-checkout .form-wrapper .mp-form-row-group .mepr-form-input:not(:last-child) {
  margin-left: 0;
  border-radius: 10px;
}

body.amr-simple-checkout .form-wrapper .mp-form-row {
  margin: 0 0 14px;
}

body.amr-simple-checkout .form-wrapper .mp-form-label,
body.amr-simple-checkout .form-wrapper .mp-form-row > label,
body.amr-simple-checkout .form-wrapper .mp-address-group .mp-form-label {
  display: block !important;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amr-text);
}

body.amr-simple-checkout .form-wrapper .mp-address-group {
  margin: 0 0 8px !important;
  box-shadow: none !important;
  background: transparent;
}

body.amr-simple-checkout .form-wrapper .mp-address-group .mp-form-row {
  margin: 0 0 14px;
}

body.amr-simple-checkout .form-wrapper .mp-address-group .mepr-form-input,
body.amr-simple-checkout .form-wrapper .mp-address-group input[type="text"],
body.amr-simple-checkout .form-wrapper .mp-address-group select,
body.amr-simple-checkout .form-wrapper .mp-address-group .mp-form-row:first-child .mepr-form-input,
body.amr-simple-checkout .form-wrapper .mp-address-group .mp-form-row:last-child .mepr-form-input,
body.amr-simple-checkout .form-wrapper .mp-address-group > .mp-form-row + .mp-form-row .mepr-form-input {
  margin-top: 0 !important;
  height: auto !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

body.amr-simple-checkout .form-wrapper .mp-form-row input[type="text"],
body.amr-simple-checkout .form-wrapper .mp-form-row input[type="email"],
body.amr-simple-checkout .form-wrapper .mp-form-row input[type="url"],
body.amr-simple-checkout .form-wrapper .mp-form-row input[type="tel"],
body.amr-simple-checkout .form-wrapper .mp-form-row input[type="password"],
body.amr-simple-checkout .form-wrapper .mp-form-row select,
body.amr-simple-checkout .form-wrapper .mp-form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px !important;
  line-height: 1.4;
  color: var(--amr-text);
  background: #fff;
  border: 1px solid var(--amr-border);
  border-radius: 10px;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

body.amr-simple-checkout .form-wrapper .mp-form-row input:focus,
body.amr-simple-checkout .form-wrapper .mp-form-row select:focus,
body.amr-simple-checkout .form-wrapper .mp-form-row textarea:focus {
  outline: none;
  border-color: var(--amr-blue);
  box-shadow: 0 0 0 3px rgba(0, 147, 218, 0.18) !important;
}

body.amr-simple-checkout .mepr-payment-methods-icons,
body.amr-simple-checkout .mepr-payment-methods-wrapper > hr,
body.amr-simple-checkout .mepr_spacer {
  display: none !important;
}

body.amr-simple-checkout .mepr-payment-methods-wrapper h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amr-blue);
  margin: 8px 0 12px;
}

body.amr-simple-checkout .mepr-payment-methods-radios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

body.amr-simple-checkout .form-wrapper .mepr-payment-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px !important;
  padding-right: 14px !important;
  background-image: none !important;
  border: 1.5px solid var(--amr-border);
  border-radius: 12px;
  background-color: #fff;
}

body.amr-simple-checkout .form-wrapper .mepr-payment-option-label input[type="radio"] {
  position: static !important;
  opacity: 1 !important;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--amr-blue);
  flex-shrink: 0;
}

body.amr-simple-checkout .mepr-payment-methods-radios label.checked,
body.amr-simple-checkout .form-wrapper .mepr-payment-option-label.checked {
  border-color: var(--amr-blue);
  box-shadow: 0 0 0 3px rgba(0, 147, 218, 0.15);
}

body.amr-simple-checkout .mepr-stripe-card-element {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--amr-border);
  border-radius: 10px;
  background: #fff;
}

body.amr-simple-checkout .mepr-payment-method-desc-text {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--amr-muted);
}

body.amr-simple-checkout .mepr-checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--amr-text);
}

body.amr-simple-checkout .mepr-checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--amr-blue);
}

body.amr-simple-checkout .form-wrapper input[type="submit"].mepr-submit {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff !important;
  background: var(--amr-blue) !important;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 147, 218, 0.28);
}

body.amr-simple-checkout .form-wrapper input[type="submit"].mepr-submit:hover,
body.amr-simple-checkout .form-wrapper input[type="submit"].mepr-submit:focus {
  background: var(--amr-blue-dark) !important;
}

body.amr-simple-checkout .mp-form-submit {
  position: sticky;
  bottom: 0;
  z-index: 30;
  margin: 8px -16px 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
}

body.amr-simple-checkout .cc-error {
  font-size: 0.8rem;
}

@media (min-width: 480px) {
  body.amr-simple-checkout .form-wrapper .mp-form-row-group {
    flex-direction: row;
    gap: 12px;
  }

  body.amr-simple-checkout .amr-name-field {
    flex: 1 1 0;
  }

  body.amr-simple-checkout .mepr-payment-methods-radios {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  body.amr-simple-checkout .mepr-checkout-container {
    flex-direction: column-reverse !important;
  }

  body.amr-simple-checkout .mepr-checkout-container .form-wrapper {
    border-left: 0 !important;
  }
}

.amr-password-mail {
  margin: 4px 0 18px;
}

.amr-password-mail__btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0077b3;
  background: #fff;
  border: 1.5px dashed #0093da;
  border-radius: 12px;
  cursor: pointer;
}

.amr-password-mail__btn:hover,
.amr-password-mail__btn:focus {
  color: #fff;
  background: #0093da;
  border-style: solid;
}

.amr-password-mail__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.amr-password-mail__hint,
.amr-password-mail__status {
  margin: 8px 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #5c6b7a;
}

.amr-password-mail__status.is-error {
  color: #b42318;
}

.amr-password-mail.is-sent .amr-password-mail__btn,
.amr-password-mail.is-sent .amr-password-mail__hint {
  display: none;
}

.amr-sso {
  margin: 0 0 16px;
}

.amr-sso-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c6b7a;
}

.amr-sso-or::before,
.amr-sso-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d5dee7;
}

.amr-sso-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.amr-sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 12px;
  box-sizing: border-box;
}

.amr-google-btn {
  color: #1a2330 !important;
  background: #fff;
  border: 1.5px solid #d5dee7;
}

.amr-google-btn:hover,
.amr-google-btn:focus {
  background: #f4f7fa;
  color: #1a2330 !important;
}

.amr-apple-btn {
  color: #fff !important;
  background: #000;
}

.amr-apple-btn:hover,
.amr-apple-btn:focus {
  background: #222;
  color: #fff !important;
}

.amr-li-btn {
  color: #fff !important;
  background: #0a66c2;
}

.amr-li-btn:hover,
.amr-li-btn:focus {
  background: #004182;
  color: #fff !important;
}

.amr-merge-notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #eef7fc;
  border: 1px solid #b3dcf0;
  border-radius: 12px;
}

.amr-merge-notice p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #1a2330;
}

.amr-merge-notice p:last-child {
  margin-bottom: 0;
}

.amr-merge-skip {
  color: #0077b3;
  font-weight: 600;
}

.amr-sso-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #b42318;
  background: #fef3f2;
  border-radius: 10px;
}
