/* ============================================================
   Viral Sparx – Premium Signup Page Stylesheet (Light Layout Customizations)
   File: public/css/site.css  (auto-loaded by aMember after core CSS)
   ============================================================ */

/* Import Google Font for a modern look */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ── Terms / Agreement fieldsets layout ── */
.am-signup fieldset[id^="fieldset-agreement"] {
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  margin: 0 0 24px !important;
  padding: 0 0 20px !important;
}

.am-signup fieldset[id^="fieldset-agreement"] legend {
  background: #f7f7f7 !important;
  border-bottom: 1px solid #ddd !important;
  color: #111 !important;
  display: block !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  margin: 0 0 20px !important;
  padding: 10px 16px !important;
  text-transform: none !important;
  width: 100% !important;
}

.am-signup fieldset[id^="fieldset-agreement"] legend span {
  color: inherit !important;
}

.am-signup fieldset[id^="fieldset-agreement"] .fieldset {
  padding: 0 20px !important;
}

/* Center-align the checkbox and the label text horizontally */
.am-signup fieldset[id^="fieldset-agreement"] .am-row {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #111 !important;
  display: flex !important;
  flex-direction: row-reverse !important; /* Place checkbox (element) on the left of label text */
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  text-transform: none !important;
}

.am-signup fieldset[id^="fieldset-agreement"] .am-element-title {
  color: #111 !important;
  flex: 0 1 auto !important;
  width: auto !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  padding-right: 0 !important;
  text-align: left !important;
  text-transform: none !important;
  white-space: normal !important;
}

.am-signup fieldset[id^="fieldset-agreement"] .am-element {
  color: #111 !important;
  flex: 0 1 auto !important;
  width: auto !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.am-signup fieldset[id^="fieldset-agreement"] .am-element label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.am-signup fieldset[id^="fieldset-agreement"] label {
  color: #333 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

/* Hide the required asterisk inside the agreement section */
.am-signup fieldset[id^="fieldset-agreement"] .required {
  display: none !important;
}

/* Style the agreement checkbox */
.am-signup fieldset[id^="fieldset-agreement"] input[type="checkbox"] {
  accent-color: #2b4170 !important;
  height: 16px !important;
  margin: 0 !important;
  vertical-align: middle !important;
  width: 16px !important;
  cursor: pointer !important;
}

.am-signup fieldset[id^="fieldset-agreement"] a {
  color: #1f6f9f !important;
  text-decoration: underline !important;
}

/* ── Anti Spam section layout ── */
.am-signup .am-row-recaptcha {
  align-items: flex-start !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  margin: 28px 0 22px !important;
  padding: 0 !important;
}

.am-signup .am-row-recaptcha .am-element-title {
  color: #333 !important;
  flex: 0 0 250px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  padding: 12px 12px 0 0 !important;
  text-align: right !important;
  text-transform: none !important;
}

.am-signup .am-row-recaptcha .am-element {
  flex: 1 1 auto !important;
  margin: 0 !important;
}

/* ── Next / Submit button centering & styling ── */
.am-signup .am-row-buttons,
.am-signup .am-row.am-row-buttons {
  background: transparent !important;
  border: 0 !important;
  display: flex !important;
  justify-content: center !important;
  margin: 20px 0 0 !important;
  padding: 0 !important;
}

.am-signup .am-row-buttons .am-element {
  flex: 0 1 auto !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
}

.am-signup input[type="submit"],
.am-signup button[type="submit"],
.am-signup .am-btn-submit,
.am-signup .btn-primary,
input[type="submit"].am-submit,
button.am-next {
  background: #2b4170 !important;
  border: none !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  text-shadow: none !important;
  transition: background-color 0.2s ease, transform 0.1s ease !important;
  cursor: pointer !important;
  transform: none !important;
}

.am-signup input[type="submit"]:hover,
.am-signup button[type="submit"]:hover,
.am-signup .am-btn-submit:hover {
  background: #23355c !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.am-signup input[type="submit"]:active,
.am-signup button[type="submit"]:active {
  transform: scale(0.98) !important;
}

/* ── All form field labels ── */
.am-signup .am-element-title label {
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* ── Membership Type label (larger than the rest) ── */
#row-product_id_page-0-0 .am-element-title label {
  font-size: 17px !important;
  font-weight: 700 !important;
}

/* ── Mobile Responsive Overrides ── */
@media (max-width: 640px) {
  .am-signup fieldset[id^="fieldset-agreement"] legend {
    font-size: 15px !important;
    margin-bottom: 20px !important;
  }

  .am-signup .am-row-recaptcha {
    display: block !important;
  }

  .am-signup .am-row-recaptcha .am-element-title {
    margin-bottom: 8px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
}
