/* Make the Contacts > New individual form Post code field all caps, as it should be */
.CRM_Contact_Form_Contact #address_1_postal_code {
  text-transform: uppercase;
}

/* Capitalize first letter for first, middle, last name */
.CRM_Contact_Form_Contact #first_name, .CRM_Contact_Form_Contact #middle_name, .CRM_Contact_Form_Contact #last_name{
  text-transform: capitalize;
}

/* === 3D Viewer CiviCRM subscription page styling === */

@media (min-width: 1200px) {
  .py-xl-6 {
    padding-bottom: 0 !important;
  }
}

.page-id-737 .py-5.py-xl-6.bg-light-subtle.text-dark-emphasis {
  padding-top: 1.5em !important;
}

/* Overall CiviCRM container */
body.civicrm.civicrm-contribute-transact #crm-container.crm-public {
  font-family: "Alata", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

/* Main form block as a card */
body.civicrm.civicrm-contribute-transact .crm-contribution-main-form-block {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2.5rem 2.2rem 2rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Intro text */
body.civicrm.civicrm-contribute-transact #intro_text h2 {
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

body.civicrm.civicrm-contribute-transact #intro_text p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #4b5563;
}

body.civicrm.civicrm-contribute-transact #intro_text ul {
  margin: 0.75rem 0 1.25rem 1.2rem;
  padding: 0;
  color: #111827;
}

body.civicrm.civicrm-contribute-transact #intro_text ul li {
  margin-bottom: 0.4rem;
}

/* “Choose your plan” helper text */
body.civicrm.civicrm-contribute-transact #priceset .messages.help {
  background: #e0f2fe;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  color: #0369a1;
  border: 1px solid #bae6fd;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

body.civicrm.civicrm-contribute-transact #priceset .messages.help::before {
  content: "ℹ";
  font-weight: 700;
}

/* Field label: “Choose your plan” */
body.civicrm.civicrm-contribute-transact .choose_your_plan-section > .label label {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* Plan rows container */
body.civicrm.civicrm-contribute-transact .choose_your_plan-content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Each plan row */
body.civicrm.civicrm-contribute-transact .price-set-row {
  margin: 0;
}

/* Hide ugly legacy span highlight border; we will style via .highlight */
body.civicrm.civicrm-contribute-transact .price-set-row span.price-set-option-content {
  display: flex;
  align-items: stretch;
}

/* Radio button */
body.civicrm.civicrm-contribute-transact .price-set-row input.crm-form-radio {
  margin-right: 0.85rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: #0d6efd; /* modern browsers */
}

/* Plan card label */
body.civicrm.civicrm-contribute-transact .price-set-row label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  padding: 1.1rem 1.2rem;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.18s ease;
}

/* Plan name */
body.civicrm.civicrm-contribute-transact .price-set-row .crm-price-amount-label {
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
}

/* Amount on the right */
body.civicrm.civicrm-contribute-transact .price-set-row .crm-price-amount-amount {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f766e;
}

/* On hover */
body.civicrm.civicrm-contribute-transact .price-set-row label:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* When selected: Civi adds .highlight on span */
body.civicrm.civicrm-contribute-transact .price-set-row span.highlight label {
  border-color: #0d6efd;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  box-shadow: 0 16px 45px rgba(37, 99, 235, 0.25);
}

/* Total amount box */
body.civicrm.civicrm-contribute-transact #pricesetTotal {
  margin-top: 1.6rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.civicrm.civicrm-contribute-transact #pricesetTotal #pricelabel {
  font-weight: 600;
  font-size: 0.95rem;
}

body.civicrm.civicrm-contribute-transact #pricesetTotal #pricevalue {
  font-weight: 700;
  font-size: 1.05rem;
}

/* Monthly checkbox (“I want to contribute this amount every month”) */
body.civicrm.civicrm-contribute-transact .is_recur-section {
  margin-top: 1.9rem;
}

body.civicrm.civicrm-contribute-transact .is_recur-section .content {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #111827;
}

body.civicrm.civicrm-contribute-transact #is_recur {
  margin-top: 0.25rem;
}

/* Email field */
body.civicrm.civicrm-contribute-transact .email-5-section {
  margin-top: 1.8rem;
}

body.civicrm.civicrm-contribute-transact .email-5-section .label label {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
  display: block;
}

body.civicrm.civicrm-contribute-transact .email-5-section .content input[type="text"],
body.civicrm.civicrm-contribute-transact .email-5-section .content input[type="email"] {
  width: 100%;
  max-width: 100%;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.civicrm.civicrm-contribute-transact .email-5-section .content input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

/* Submit button */
body.civicrm.civicrm-contribute-transact .crm-submit-buttons {
  margin-top: 2.1rem;
}

body.civicrm.civicrm-contribute-transact .crm-submit-buttons button.crm-form-submit {
  width: 100%;
  padding: 0.95rem 1.4rem;
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: 0.9rem;
  border: none;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

body.civicrm.civicrm-contribute-transact .crm-submit-buttons button.crm-form-submit i {
  font-size: 0.9rem;
}

body.civicrm.civicrm-contribute-transact .crm-submit-buttons button.crm-form-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.5);
}

/* Footer text */
body.civicrm.civicrm-contribute-transact #footer_text {
  margin-top: 1.8rem;
  font-size: 0.88rem;
  color: #6b7280;
}

body.civicrm.civicrm-contribute-transact #footer_text p {
  margin-bottom: 0.45rem;
}

/* “Empowered by CiviCRM” footer – make it subtle */
body.civicrm.civicrm-contribute-transact #civicrm-footer {
  margin-top: 1.2rem;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
}

body.civicrm.civicrm-contribute-transact #civicrm-footer .empowered-by-link span {
  color: #9ca3af;
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
  body.civicrm.civicrm-contribute-transact .crm-contribution-main-form-block {
    padding: 1.6rem 1.3rem 1.7rem;
  }

  body.civicrm.civicrm-contribute-transact #intro_text h2 {
    font-size: 1.4rem;
  }

  body.civicrm.civicrm-contribute-transact .price-set-row label {
    flex-direction: column;
    gap: 0.3rem;
  }

  body.civicrm.civicrm-contribute-transact #pricesetTotal {
    flex-direction: row;
  }
}
