@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap");

:root {
  --as-primary: #004d40;
  --as-primary-hover: #00332c;
  --as-white: #ffffff;
  --as-gray-light: #f4f6f8;
  --as-gray-medium: #e0e4e8;
  --as-text: #1a1b1e;
  --as-text-muted: #5e6771;
  --as-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  --as-border-radius: 6px;
  --as-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: "Outfit", sans-serif;
}

.as-donation-page {
  font-family: var(--font-main);
  color: var(--as-text);
  background: var(--as-white);
  width: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.as-donation-header {
  text-align: center;
  padding: 30px 0;
  border-bottom: 1px solid #f0f0f0;
  background: white;
}

.as-logo {
  max-height: 45px;
  width: auto;
  transition: var(--as-transition);
}

.as-hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  background: #000;
}

.as-slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.as-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 1.5s ease-in-out,
    transform 1.5s ease-in-out;
}

.as-slide.active {
  opacity: 1;
  transform: scale(1);
}

.as-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

.as-hero-content {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 40px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Card Styling - Premium Look */
.as-donation-card {
  width: 440px;
  background: var(--as-white);
  border-radius: var(--as-border-radius);
  box-shadow: var(--as-shadow);
  overflow: hidden;
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.as-card-header {
  background: var(--as-white);
  padding: 25px 40px;
  border-bottom: 4px solid var(--as-gray-light);
  text-align: center;
}

.as-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.as-header-impact-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--as-text-muted);
}

/* Theme Toggle Button */
.as-theme-btn {
  background: #f1f3f5;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--as-transition);
  margin-left: 15px;
}

.as-theme-btn:hover {
  background: #e9ecef;
  transform: rotate(15deg);
}

.as-moon-icon {
  display: block;
}
.as-sun-icon {
  display: none;
}

/* Dark Theme Overrides */
.as-dark-theme {
  --as-white: #1a1b1e;
  --as-gray-light: #2c2e33;
  --as-gray-medium: #373a40;
  --as-text: #eceef2;
  --as-text-muted: #909296;
}

.as-dark-theme .as-donation-card {
  border: 1px solid #373a40;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.as-dark-theme .as-type-toggle {
  background: #25262b;
  border-color: #373a40;
}
.as-dark-theme .as-type-btn {
  color: #909296;
}
.as-dark-theme .as-type-btn.active {
  background: #373a40;
  color: #fff;
}
.as-dark-theme .as-amount-btn {
  background: #25262b;
  border-color: #373a40;
  color: #eceef2;
}
.as-dark-theme .as-amount-btn:hover {
  border-color: var(--as-primary);
}
.as-dark-theme .as-custom-amount input {
  background: #25262b;
  border-color: #373a40;
  color: #fff;
}
.as-dark-theme .as-select-input {
  background-color: #25262b;
  border-color: #373a40;
  color: #fff;
}
.as-dark-theme .as-checkbox-label {
  color: #eceef2;
}
.as-dark-theme .as-card-footer {
  background: #141517;
}
.as-dark-theme .as-theme-btn {
  background: #373a40;
}
.as-dark-theme .as-moon-icon {
  display: none;
}
.as-dark-theme .as-sun-icon {
  display: block;
}
.as-dark-theme .as-message-box p {
  color: #909296;
}
.as-dark-theme .as-testimonial-box {
  background: #1a1b1e;
  border: 1px solid #373a40;
}
.as-dark-theme .as-quote {
  color: #eceef2;
}
.as-dark-theme .as-testimonial-meta {
  border-top-color: #373a40;
}

/* Multi-Step Flow Styles */
.as-form-step {
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.as-input-group {
  margin-bottom: 20px;
  text-align: left;
  padding: 0 40px;
}

.as-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--as-text-muted);
}

.as-input-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--as-gray-medium);
  border-radius: var(--as-border-radius);
  font-family: inherit;
  font-size: 16px;
  background: white;
  color: var(--as-text);
  transition: var(--as-transition);
  box-sizing: border-box; /* Ensure padding doesn't push width out */
}

.as-input-group input:focus {
  outline: none;
  border-color: var(--as-primary);
  box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.1);
}

.as-summary-box {
  background: var(--as-gray-light);
  margin: 10px 40px 25px 40px;
  padding: 20px;
  border-radius: var(--as-border-radius);
  text-align: left;
  font-size: 15px;
  border-left: 4px solid var(--as-primary);
}

.as-summary-box p {
  margin: 4px 0;
  color: var(--as-text);
  line-height: 1.4;
}

.as-summary-box strong {
  color: var(--as-primary);
  font-weight: 800;
}

.as-text-link {
  display: inline-block;
  margin: 5px auto 25px auto;
  background: transparent;
  border: none;
  color: var(--as-text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  transition: var(--as-transition);
  font-family: inherit;
}

.as-text-link:hover {
  color: var(--as-primary);
  background: var(--as-gray-light);
}

/* Dark Mode Extensions */
.as-dark-theme .as-input-group input {
  background: #2c2e33;
  border-color: #373a40;
  color: #fff;
}

.as-dark-theme .as-input-group label {
  color: #909296;
}

.as-dark-theme .as-summary-box {
  background: #25262b;
}

.as-dark-theme .as-summary-box p {
  color: #eceef2;
}

.as-dark-theme .as-text-link:hover {
  background: #2c2e33;
}

.as-type-toggle {
  display: flex;
  background: #f7f9fa;
  border-radius: 50px;
  padding: 4px;
  margin: 30px 40px;
  border: 1px solid #e1e4e8;
}

.as-type-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  color: #586069;
  font-size: 0.95rem;
  transition: var(--as-transition);
}

.as-type-btn.active {
  background: var(--as-white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  color: var(--as-primary);
  border-radius: 50px;
}

.as-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 40px 25px 40px;
}

.as-amount-btn {
  border: 1px solid #e1e4e8;
  background: var(--as-white);
  padding: 18px 5px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  transition: var(--as-transition);
}

.as-amount-btn:hover {
  border-color: var(--as-primary);
  transform: translateY(-2px);
}

.as-amount-btn.active {
  border: 2px solid var(--as-primary);
  background: #f1f8f7;
  color: var(--as-primary);
}

.as-custom-amount {
  grid-column: span 4;
}

.as-custom-amount input {
  width: 100%;
  padding: 18px;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1rem;
  outline: none;
  transition: var(--as-transition);
}

.as-custom-amount input:focus {
  border-color: var(--as-primary);
  box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.1);
}

.as-program-selector {
  margin: 0 40px 20px 40px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.as-select-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #333;
  background-color: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  transition: var(--as-transition);
}

.as-select-input:focus {
  border-color: var(--as-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.1);
}

.as-hidden-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #586069;
}

.as-dedication-field {
  margin: 0 40px 30px 40px;
}

.as-checkbox-label {
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.as-main-btn {
  background: var(--as-primary);
  color: var(--as-white);
  border: none;
  padding: 22px;
  width: calc(100% - 80px);
  margin: 0 40px 25px 40px;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--as-transition);
  box-shadow: 0 4px 15px rgba(0, 77, 64, 0.2);
}

.as-main-btn:hover {
  background: var(--as-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 77, 64, 0.3);
}

.as-card-footer {
  text-align: center;
  font-size: 10px;
  color: #666;
  padding: 0 40px 30px 40px;
  background: #fdfdfd;
}

.as-card-footer a {
  color: var(--as-primary);
  text-decoration: underline;
  font-weight: 700;
}

/* Testimonial Box - High End */
.as-testimonial-box {
  align-self: flex-end;
  width: 500px;
  background: var(--as-white);
  padding: 45px;
  border-radius: var(--as-border-radius);
  box-shadow: var(--as-shadow);
  margin-bottom: -30px;
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.as-quote {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #1a1b1e;
  font-weight: 500;
}

.as-testimonial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
}

.as-author {
  font-size: 1rem;
  color: #586069;
  font-weight: 600;
}

.as-slider-dots {
  display: flex;
  gap: 12px;
}

.as-dot {
  width: 10px;
  height: 10px;
  background: #e1e4e8;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--as-transition);
}

.as-dot.active {
  background: var(--as-primary);
  width: 25px;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
  .as-hero-content {
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 60px 20px;
  }
  .as-donation-card {
    width: 100%;
    max-width: 500px;
  }
  .as-testimonial-box {
    width: 100%;
    max-width: 500px;
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .as-card-header h3 {
    font-size: 1.1rem;
  }
  .as-card-header,
  .as-card-body-padding {
    padding-left: 20px;
    padding-right: 20px;
  }
  .as-amount-grid,
  .as-type-toggle,
  .as-card-footer,
  .as-dedication-field {
    margin-left: 20px;
    margin-right: 20px;
  }
  .as-main-btn {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
  }
  .as-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .as-custom-amount {
    grid-column: span 2;
  }
  .as-hero-content {
    padding: 30px 10px;
  }
  .as-discovery-grid,
  .as-input-group,
  .as-summary-box {
    margin-left: 15px !important;
    margin-right: 15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .as-discovery-grid {
    padding-bottom: 20px;
  }
  .as-program-card {
    padding: 15px;
  }
  .as-testimonial-box {
    padding: 25px 20px;
    width: calc(100% - 20px);
    margin: 0 10px 40px 10px;
    box-sizing: border-box;
    text-align: left;
  }
  .as-quote {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  .as-hero-section {
    min-height: auto;
  }
  .as-author {
    font-size: 0.9rem;
  }
}

/* Multi-Step Flow & Details Step Fixes */
.as-form-step {
  width: 100%;
  animation: stepFadeIn 0.4s ease-out;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.as-details-form {
  padding-bottom: 20px;
}

.as-input-group {
  margin: 0 40px 15px 40px;
  text-align: left;
}

.as-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--as-text-muted);
}

.as-input-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--as-gray-medium);
  border-radius: var(--as-border-radius);
  font-family: inherit;
  font-size: 16px;
  background: white;
  color: var(--as-text);
  box-sizing: border-box; /* CRITICAL FIX */
  transition: var(--as-transition);
}

.as-input-group input:focus {
  outline: none;
  border-color: var(--as-primary);
  box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.1);
}

.as-summary-box {
  background: var(--as-gray-light);
  margin: 15px 40px 25px 40px;
  padding: 20px;
  border-radius: var(--as-border-radius);
  text-align: left;
  font-size: 15px;
  border-left: 5px solid var(--as-primary);
}

.as-summary-box p {
  margin: 5px 0;
  color: var(--as-text);
  line-height: 1.5;
}

.as-summary-box strong {
  color: var(--as-primary);
  font-weight: 800;
}

.as-text-link {
  display: inline-block;
  margin: 0 auto;
  background: transparent;
  border: none;
  color: var(--as-text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: var(--as-transition);
}

.as-text-link:hover {
  color: var(--as-primary);
  background: var(--as-gray-light);
}

/* Dark Mode Extensions for New Flow */
.as-dark-theme .as-input-group input {
  background: #2c2e33;
  border-color: #373a40;
  color: #fff;
}

.as-dark-theme .as-input-group label {
  color: #909296;
}

.as-dark-theme .as-summary-box {
  background: #25262b;
}

.as-dark-theme .as-summary-box p {
  color: #eceef2;
}

.as-dark-theme .as-text-link:hover {
  background: #2c2e33;
}

/* Discovery Step Styles */
.as-discovery-grid {
  padding: 0 40px 25px 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.as-program-card {
  background: var(--as-gray-light);
  border: 1px solid var(--as-gray-medium);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  transition: var(--as-transition);
  cursor: pointer;
}

.as-program-card:hover {
  border-color: var(--as-primary);
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.as-pcard-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.as-program-card h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--as-primary);
}

.as-program-card p {
  margin: 0 0 15px 0;
  font-size: 13px;
  color: var(--as-text-muted);
  line-height: 1.5;
}

.as-select-program-btn {
  background: var(--as-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--as-transition);
}

.as-program-card:hover .as-select-program-btn {
  background: var(--as-primary-hover);
}

.as-dark-theme .as-program-card {
  background: #25262b;
  border-color: #373a40;
}

.as-dark-theme .as-program-card:hover {
  background: #2c2e33;
}

.as-dark-theme .as-program-card p {
  color: #909296;
}
