:root {
  --cid-primary: #16A34A;
  --cid-primary-dark: #15803d;
  --cid-accent: #22C55E;
  --cid-bg: #F9FAFB;
  --cid-text: #111827;
  --cid-text-light: #6B7280;
  --cid-white: #FFFFFF;
}

/* Reset & Isolation — Ensuring no theme interference */
.cid-wrapper, 
.cid-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.cid-wrapper button, 
.cid-wrapper input, 
.cid-wrapper select, 
.cid-wrapper textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  outline: none;
}

/* Custom Grid System to avoid Theme Conflicts */
.cid-container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

.cid-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.cid-row.cid-g-0 {
  margin-right: 0;
  margin-left: 0;
}

.cid-row.cid-g-0 > [class*="cid-col-"] {
  padding-right: 0;
  padding-left: 0;
}

.cid-row.cid-g-2 {
  margin-right: -8px;
  margin-left: -8px;
}

.cid-row.cid-g-2 > [class*="cid-col-"] {
  padding-right: 8px;
  padding-left: 8px;
}

.cid-col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 20px; /* Vertical spacing between fields */
}

.cid-h-100 {
  height: 100%;
}

@media (min-width: 992px) {
  .cid-col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    padding-right: 15px;
    padding-left: 15px;
  }

  .cid-col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
    padding-right: 15px;
    padding-left: 15px;
  }
}

/* Utility Classes */
.cid-mb-0 { margin-bottom: 0 !important; }
.cid-mb-1 { margin-bottom: 4px !important; }
.cid-mb-2 { margin-bottom: 8px !important; }
.cid-mb-3 { margin-bottom: 16px !important; }
.cid-mb-4 { margin-bottom: 24px !important; }
.cid-mb-5 { margin-bottom: 32px !important; }
.cid-mt-0 { margin-top: 0 !important; }
.cid-mt-4 { margin-top: 24px !important; }
.cid-text-center { text-align: center !important; }
.cid-w-100 { width: 100% !important; }

.cid-wrapper {
  padding: 40px 0;
  background: var(--cid-bg);
  color: var(--cid-text);
  width: 100%;
}

.cid-card {
  background: var(--cid-white);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

/* Hero Section (Left Column) */
.cid-card__header {
  background: #F9FAFB; /* Light background */
  padding: 60px 40px;
  color: var(--cid-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #e5e7eb; /* Subtle separator */
}

.cid-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827; /* Black title */
  margin: 0;
  line-height: 1.2;
}

.cid-subtitle {
  font-size: 16px;
  color: #4B5563; /* Dark gray subtitle */
  margin-top: 15px;
  line-height: 1.6;
}

/* Stats Bar */
.cid-stats-bar {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.cid-stat {
  background: var(--cid-primary); /* Green stats */
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

/* Form Column */
#cid-donation-form {
  padding: 50px;
}

.cid-section {
  margin-bottom: 25px;
}

.cid-section-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--cid-text);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* Toggle Switch */
.cid-type-toggle {
  background: transparent;
  padding: 0;
  display: flex;
  margin: 0 -4px;
}

.cid-type-btn {
  all: unset;
  flex: 1;
  border: 1px solid #e5e7eb;
  background: #FFFFFF;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
  color: var(--cid-text);
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 4px;
  text-align: center;
  display: block;
  border-radius: 0;
  box-shadow: none;
  background-image: none;
  appearance: none;
}

.cid-type-btn:hover {
  background: var(--cid-primary);
  color: var(--cid-white);
  border-color: var(--cid-primary);
}

.cid-type-btn.active {
  background: var(--cid-primary);
  color: var(--cid-white);
  border-color: var(--cid-primary);
  box-shadow: none;
}



.cid-recommend {
  font-size: 10px;
  margin-left: 4px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
}

.cid-type-btn:not(.active) .cid-recommend {
  background: #f3f4f6;
  color: var(--cid-text-light);
}

/* Amount Impact Cards */
.cid-amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}

.cid-amount-btn {
  all: unset;
  background-color: var(--cid-white);
  border: 1px solid #e5e7eb;
  padding: 15px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  color: var(--cid-text);
  box-sizing: border-box;
  font-family: inherit;
  border-radius: 0;
  appearance: none;
}

.cid-amount-btn:hover {
  border-color: #16A34A;
  background: #d8ffe6;
  color: #000000;
  box-shadow: none;
}

.cid-amount-btn.active {
  border-color: #16A34A;
  background: #16A34A;
  color: #ffffff;
  box-shadow: none;
}

.cid-amt-val {
  font-size: 18px;
  font-weight: 800;
}

.cid-amt-impact {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
}

/* Custom Amount */
.cid-custom-amount {
  position: relative;
}

.cid-rupee-symbol {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--cid-primary);
}

#cid-custom-amount {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 15px 12px 35px;
  border: 1px solid #e5e7eb;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  background: #fff;
  border-radius: 0;
  appearance: none;
  transition: all 0.2s ease;
}

#cid-custom-amount:focus {
  border-color: var(--cid-primary);
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.cid-custom-amount-wrap {
  margin-top: 10px;
  display: none; /* Hidden by default */
}

.cid-field input {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e5e7eb;
  font-weight: 500;
  font-family: inherit;
  background: #fff;
  border-radius: 0;
  appearance: none;
}

.cid-field input:focus {
  border-color: var(--cid-primary);
  outline: none;
}

/* CTA Button */
.cid-submit-btn {
  all: unset;
  display: block;
  box-sizing: border-box;
  width: 100%;
  background: var(--cid-primary);
  color: #fff;
  border: none;
  padding: 18px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease;
  text-align: center;
  border-radius: 0;
  font-family: inherit;
  appearance: none;
}

.cid-submit-btn:hover {
  background: var(--cid-primary-dark);
}

/* Success Message */
.cid-success {
  padding: 50px;
  text-align: center;
}

.cid-success-icon {
  font-size: 60px;
  margin-bottom: 15px;
}

.cid-error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 600;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .cid-col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #cid-donation-form {
    padding: 40px;
  }

  .cid-card__header {
    text-align: center;
    align-items: center;
    padding: 50px 30px;
  }

  .cid-stats-bar {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .cid-wrapper {
    padding: 20px 0;
  }
  
  #cid-donation-form {
    padding: 30px 20px;
  }
  
  .cid-title {
    font-size: 26px;
  }
  
  .cid-subtitle {
    font-size: 15px;
  }

  .cid-amount-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }

  .cid-amount-btn {
    padding: 12px 10px;
  }

  .cid-amt-val {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .cid-type-toggle {
    flex-direction: column;
    gap: 8px;
    margin: 0;
  }
  
  .cid-type-btn {
    margin: 0;
    padding: 10px;
  }
  
  .cid-card__header {
    padding: 40px 20px;
  }
  
  .cid-stat {
    font-size: 11px;
    padding: 4px 10px;
  }
}