/* ==========================================================================
   Chabad Donations: donate page, widget and confirmation styles. Taken from the
   redesign's css/donate-page.css, plus the details step, currency picker and
   states the mock didn't have.
   ========================================================================== */


/* Donate Header */
.donate-header {
  background-color: #f1f3f6;
  padding: 160px 0 60px;
  text-align: center;
}

.donate-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-primary-navy);
  margin: 0;
  letter-spacing: -0.5px;
}

/* Donate Main Content */
.donate-content {
  padding: 60px 0 100px;
  background-color: #ffffff;
}

.donate-container {
  max-width: 900px;
  margin: 0 auto;
}


/* Shown above the widget when the donor backs out of Stripe */
.mdw-notice {
  max-width: 500px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #fff4ec;
  color: #8a3d0f;
  font-size: 0.95rem;
  text-align: center;
}

/* Centered Form Area */
.donate-widget-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

/* Mock Donate Widget (mimicking the image provided) */
.mock-donate-widget {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mdw-header {
  display: flex;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.mdw-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  border: 1px solid #f0f0f0;
}

.mdw-logo {
  max-height: 28px;
}

.mdw-title-area {
  flex: 1;
}

.mdw-title-area h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.mdw-title-area p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #666;
}

.mdw-secure {
  font-size: 0.8rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mdw-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  gap: 8px;
}

.mdw-step {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
}

.mdw-step.active {
  color: #111;
}

.mdw-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-right: 6px;
}

.mdw-step.active .mdw-step-num {
  background: #0066ff;
  border-color: #0066ff;
  color: white;
}

.mdw-step-line {
  flex: 1;
  height: 1px;
  background: #eaeaea;
  max-width: 40px;
}

.mdw-body {
  padding: 24px;
}

.mdw-body h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
}

.mdw-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin: 6px 0 24px;
}

.mdw-frequency {
  display: flex;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
}

.freq-btn {
  flex: 1;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.freq-btn.active {
  background: #ffffff;
  color: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mdw-badge {
  background: #e6f0ff;
  color: #0066ff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mdw-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.amt-btn {
  border: 1px solid #eaeaea;
  background: #ffffff;
  padding: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  border-radius: 8px;
  transition: all 0.2s;
}

.amt-btn:hover {
  border-color: #0066ff;
}

.amt-btn.selected {
  border-color: #0066ff;
  background: #f0f6ff;
  color: #0066ff;
}

.mdw-other {
  grid-column: span 3;
  color: #666;
  font-size: 0.95rem;
}

.mdw-continue {
  width: 100%;
  background: #0066ff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.2s;
}

.mdw-continue:hover {
  background: #005ce6;
}

.mdw-footer {
  text-align: center;
  padding: 16px;
  font-size: 0.75rem;
  color: #999;
  border-top: 1px solid #f0f0f0;
  background: #fafbfc;
}

.mdw-footer i {
  margin-right: 4px;
}


/* Reorganized Text Area */
.donate-info-cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.donate-thank-you {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.donate-thank-you h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary-navy);
  line-height: 1.2;
  margin-bottom: 15px;
}

.donate-thank-you-sub {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.donate-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.donate-detail-card {
  background: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.donate-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-light);
}

.detail-icon {
  width: 60px;
  height: 60px;
  background: rgba(33, 36, 89, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-primary-navy);
  font-size: 1.5rem;
}

.donate-detail-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.donate-detail-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 15px;
  line-height: 1.5;
}

.detail-highlight {
  display: inline-block;
  background: rgba(0, 152, 182, 0.1);
  color: var(--color-accent-teal-dark);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 1.05rem;
}

.detail-link {
  display: inline-block;
  color: var(--chabbad-etobicoke-theme-orange);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color var(--transition-fast);
}

.detail-link:hover {
  color: #d16223;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .donate-thank-you h2 {
    font-size: 1.8rem;
  }
  
  .mdw-amounts {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mdw-other {
    grid-column: span 2;
  }
}

/* Theme buttons and inputs carry their own colors; reset them inside the widget */
.mock-donate-widget button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  min-height: 0;
}

.mock-donate-widget .amt-btn {
  border: 1px solid #eaeaea;
  background: #ffffff;
}

.mock-donate-widget .amt-btn.selected {
  border-color: #0066ff;
  background: #f0f6ff;
}

.mock-donate-widget .mdw-continue {
  background: #0066ff;
}

.mock-donate-widget .mdw-continue:hover {
  background: #005ce6;
}

.mock-donate-widget .mdw-continue:disabled {
  background: #8fb5f5;
  cursor: wait;
}

.mock-donate-widget .freq-btn.active {
  background: #ffffff;
}

.mdw-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mdw-currency select {
  border: 1px solid #eaeaea;
  border-radius: 6px;
  padding: 6px 28px 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  background-color: #ffffff;
  width: auto;
  min-height: 0;
  height: auto;
}

.mdw-step.done .mdw-step-num {
  background: #e6f0ff;
  border-color: #0066ff;
  color: #0066ff;
}

.mdw-other.selected {
  color: #0066ff;
}

.mdw-other-field {
  display: flex;
  align-items: center;
  border: 1px solid #0066ff;
  border-radius: 8px;
  padding: 0 14px;
  margin: -12px 0 24px;
}

.mdw-other-field[hidden] {
  display: none;
}

.mdw-other-symbol {
  font-weight: 600;
  color: #111;
  margin-right: 6px;
}

.mdw-other-field input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 600;
  background: transparent;
  box-shadow: none;
  min-height: 0;
}

.mdw-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mdw-field {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.mdw-field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 400;
  color: #111;
  background: #ffffff;
  min-height: 0;
  box-sizing: border-box;
}

.mdw-field input:focus {
  border-color: #0066ff;
  outline: none;
}

.mdw-error {
  color: #c62828;
  font-size: 0.9rem;
  margin: 0 0 16px;
}

.mdw-error[hidden],
.mdw-body[hidden] {
  display: none;
}

.mock-donate-widget .mdw-back {
  display: block;
  margin: 14px auto 0;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.mock-donate-widget .mdw-back:hover {
  color: #111;
}

@media (max-width: 480px) {
  .mdw-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mdw-steps {
    padding: 16px 12px;
  }
}

/* Giving circles (fund="...") with 8 suggested amounts: 4 per row, Other on its own row */
.mdw-amounts.mdw-amounts-4 {
  grid-template-columns: repeat(4, 1fr);
}

.mdw-amounts-4 .mdw-other {
  grid-column: 1 / -1;
}
