/* ============================================ */

/* CONTAINER SETUP - CRITICAL FIX */

/* ============================================ */

/* Ensure container has proper padding and centering on all screens */

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
    padding-right: 25px;
    padding-left: 25px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    padding-right: 30px;
    padding-left: 30px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ============================================ */

/* SUCCESS HERO - ALL SCREENS */

/* ============================================ */

.success-hero {
  padding: 2rem 0;
  margin-bottom: 2rem;
  width: 100%;
  text-align: left !important;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.95), rgba(46, 125, 50, 0.95)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?w=1200&q=80');
  background-size: cover;
  background-position: center;
}

.success-breadcrumb {
  margin-bottom: 1rem;
  text-align: left;
}

.success-breadcrumb a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: start;
  gap: 0.5rem;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.success-breadcrumb a:hover {
  opacity: 1;
}

.success-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-align: left;
  line-height: 1.2;
}

.success-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-align: left;
}

/* ============================================ */

/* SUCCESS CONTENT LAYOUT */

/* ============================================ */

.success-content-section {
  margin-bottom: 3rem;
  width: 100%;
  padding: 2rem 0;
}

.success-main-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.success-left-column, .success-right-column {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sticky-sidebar {
  position: static;
}

/* ============================================ */

/* SUCCESS CARDS */

/* ============================================ */

.success-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 15px var(--shadow);
  border: 1px solid var(--border-color);
  width: 100%;
  box-sizing: border-box;
}

.success-card-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.success-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* ============================================ */

/* CHILD SUCCESS INFO */

/* ============================================ */

.child-success-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  width: 100%;
}

.child-success-avatar {
  flex-shrink: 0;
}

.child-success-avatar img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 3px solid var(--accent);
}

.child-success-details h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.child-success-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  align-items: center;
}

.child-success-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  justify-content: center;
}

.child-success-meta i {
  color: var(--primary-solid);
}

/* ============================================ */

/* PAYMENT DETAILS */

/* ============================================ */

.payment-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
  min-width: 120px;
}

.detail-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  text-align: right;
  flex: 1;
  min-width: 120px;
}

.status-badge {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.completed {
  background: rgba(76, 175, 80, 0.2);
  color: #2E7D32;
  border: 1px solid #4CAF50;
}

/* ============================================ */

/* NEXT STEPS */

/* ============================================ */

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  width: 100%;
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.step-content {
  width: 100%;
}

.step-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ============================================ */

/* ACTION BUTTONS */

/* ============================================ */

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
}

.action-buttons .btn {
  padding: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  width: 100%;
  font-size: 1rem;
  border-radius: var(--radius-full);
}

/* ============================================ */

/* SIDEBAR CARDS */

/* ============================================ */

.success-sidebar-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 10px var(--shadow);
  border: 1px solid var(--border-color);
  width: 100%;
  margin: 1.5rem 0;
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

/* SPONSORED CHILD SIDEBAR */

.sponsored-child-sidebar {
  text-align: center;
  width: 100%;
}

.sidebar-child-image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--primary-solid);
  margin: 0 auto 1rem;
}

.sponsored-child-sidebar h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.child-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.sponsorship-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(76, 175, 80, 0.1);
  color: #2E7D32;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #4CAF50;
}

/* IMPACT LIST SIDEBAR */

.impact-list-sidebar {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.impact-list-sidebar li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: left;
}

.impact-list-sidebar li:last-child {
  margin-bottom: 0;
}

.impact-list-sidebar i {
  color: var(--success);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* SHARE BUTTONS */

.share-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.btn-share {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  cursor: pointer;
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-hover);
}

.btn-share.facebook:hover {
  background: #1877F2;
  color: white;
  border-color: #1877F2;
}

.btn-share.twitter:hover {
  background: #1DA1F2;
  color: white;
  border-color: #1DA1F2;
}

.btn-share.linkedin:hover {
  background: #0077B5;
  color: white;
  border-color: #0077B5;
}

.btn-share.whatsapp:hover {
  background: #25D366;
  color: white;
  border-color: #25D366;
}

/* ============================================ */

/* WELCOME SECTION */

/* ============================================ */

.welcome-section {
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.05), rgba(76, 175, 80, 0.05));
  padding: 3rem 0;
  margin: 2rem 0;
  width: 100%;
}

.welcome-content {
  text-align: center;
  width: 100%;
}

.welcome-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.welcome-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.community-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-solid);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ============================================ */

/* TRUST BADGES */

/* ============================================ */

.trust-badges-section {
  padding: 2rem 0;
  background: var(--accent);
  width: 100%;
}

.trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  justify-items: center;
  width: 100%;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  flex-direction: column;
}

.trust-badge i {
  font-size: 1.5rem;
  color: var(--success);
}

/* ============================================ */

/* TABLET STYLES (768px - 991px) */

/* ============================================ */

@media (min-width: 768px) and (max-width: 991.98px) {
  .success-hero {
    padding: 2.5rem 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .success-title {
    font-size: 2.2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .success-subtitle {
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .success-content-section {
    padding: 2.5rem 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .success-main-layout {
    gap: 2.5rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .success-card {
    padding: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .success-card-header {
    text-align: left;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .success-card-title {
    font-size: 1.4rem;
  }
}

/* Better tablet layout for child info */

@media (min-width: 768px) and (max-width: 991.98px) {
  .child-success-info {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .child-success-avatar img {
    width: 120px;
    height: 120px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .child-success-details h3 {
    font-size: 1.4rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .child-success-meta {
    flex-direction: row;
    gap: 1rem;
    font-size: 1rem;
    justify-content: flex-start;
  }
}

/* 2-column grid for next steps on tablet */

@media (min-width: 768px) and (max-width: 991.98px) {
  .next-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .step-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .step-icon {
    width: 70px;
    height: 70px;
    font-size: 1.7rem;
  }
}

/* Horizontal action buttons on tablet */

@media (min-width: 768px) and (max-width: 991.98px) {
  .action-buttons {
    flex-direction: row;
    gap: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .action-buttons .btn {
    flex: 1;
    min-width: 0;
  }
}

/* 2-column stats on tablet */

@media (min-width: 768px) and (max-width: 991.98px) {
  .community-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .stat-item {
    padding: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .welcome-title {
    font-size: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .welcome-description {
    font-size: 1.1rem;
  }
}

/* 4-column trust badges on tablet */

@media (min-width: 768px) and (max-width: 991.98px) {
  .trust-badges {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .trust-badge {
    flex-direction: row;
    font-size: 0.9rem;
  }
}

/* ============================================ */

/* DESKTOP STYLES (≥ 992px) */

/* ============================================ */

@media (min-width: 992px) {
  .success-hero {
    padding: 3.5rem 0;
  }
}

@media (min-width: 992px) {
  .success-title {
    font-size: 2.8rem;
  }
}

@media (min-width: 992px) {
  .success-subtitle {
    font-size: 1.4rem;
  }
}

@media (min-width: 992px) {
  .success-content-section {
    padding: 3rem 0;
  }
}

/* Two-column layout for desktop */

@media (min-width: 992px) {
  .success-main-layout {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
  }
}

@media (min-width: 992px) {
  .success-left-column {
    flex: 0 0 calc(65% - 1.5rem);
    width: calc(65% - 1.5rem);
  }
}

@media (min-width: 992px) {
  .success-right-column {
    flex: 0 0 calc(35% - 1.5rem);
    width: calc(35% - 1.5rem);
  }
}

@media (min-width: 992px) {
  .sticky-sidebar {
    position: sticky;
    top: 100px;
  }
}

@media (min-width: 992px) {
  .success-card {
    padding: 2.5rem;
  }
}

@media (min-width: 992px) {
  .success-card-header {
    text-align: left;
  }
}

@media (min-width: 992px) {
  .success-card-title {
    font-size: 1.5rem;
  }
}

/* Horizontal layout for child info on desktop */

@media (min-width: 992px) {
  .child-success-info {
    flex-direction: row;
    text-align: left;
    gap: 2rem;
  }
}

@media (min-width: 992px) {
  .child-success-avatar img {
    width: 130px;
    height: 130px;
  }
}

@media (min-width: 992px) {
  .child-success-details h3 {
    font-size: 1.6rem;
  }
}

@media (min-width: 992px) {
  .child-success-meta {
    flex-direction: row;
    gap: 1.5rem;
    font-size: 1rem;
    justify-content: flex-start;
  }
}

/* Single column next steps on desktop */

@media (min-width: 992px) {
  .next-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

@media (min-width: 992px) {
  .step-item {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
    align-items: flex-start;
  }
}

@media (min-width: 992px) {
  .step-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    flex-shrink: 0;
  }
}

/* Single column action buttons on desktop */

@media (min-width: 992px) {
  .action-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .action-buttons .btn {
    width: 100%;
    padding: 1.1rem;
  }
}

/* Sidebar improvements */

@media (min-width: 992px) {
  .success-sidebar-card {
    padding: 2rem;
  }
}

@media (min-width: 992px) {
  .sidebar-title {
    font-size: 1.3rem;
    text-align: left;
  }
}

@media (min-width: 992px) {
  .sidebar-child-image {
    width: 150px;
    height: 150px;
  }
}

/* 4-column stats on desktop */

@media (min-width: 992px) {
  .community-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 992px) {
  .stat-item {
    padding: 2rem;
  }
}

@media (min-width: 992px) {
  .stat-number {
    font-size: 2.8rem;
  }
}

@media (min-width: 992px) {
  .welcome-section {
    padding: 4rem 0;
  }
}

@media (min-width: 992px) {
  .welcome-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 992px) {
  .welcome-description {
    font-size: 1.2rem;
  }
}

/* Horizontal trust badges on desktop */

@media (min-width: 992px) {
  .trust-badges {
    display: flex;
    justify-content: center;
    gap: 4rem;
  }
}

@media (min-width: 992px) {
  .trust-badge {
    flex-direction: row;
    font-size: 1rem;
  }
}

@media (min-width: 992px) {
  .trust-badge i {
    font-size: 1.8rem;
  }
}

/* Extra large screens - optimize spacing */

@media (min-width: 1200px) {
  .success-main-layout {
    gap: 3.5rem;
  }
}

@media (min-width: 1200px) {
  .success-left-column {
    flex: 0 0 calc(62% - 1.75rem);
    width: calc(62% - 1.75rem);
  }
}

@media (min-width: 1200px) {
  .success-right-column {
    flex: 0 0 calc(38% - 1.75rem);
    width: calc(38% - 1.75rem);
  }
}

/* ============================================ */

/* MOBILE STYLES (≤ 767px) */

/* ============================================ */

@media (max-width: 767.98px) {
  .success-hero {
    padding: 1.5rem 0;
  }
}

@media (max-width: 767.98px) {
  .success-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 767.98px) {
  .success-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .success-content-section {
    padding: 1.5rem 0;
  }
}

@media (max-width: 767.98px) {
  .success-card {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .success-card-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .child-success-avatar img {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 767.98px) {
  .child-success-details h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 767.98px) {
  .step-icon {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }
}

@media (max-width: 767.98px) {
  .action-buttons .btn {
    padding: 0.9rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 767.98px) {
  .welcome-section {
    padding: 2rem 0;
  }
}

@media (max-width: 767.98px) {
  .welcome-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .welcome-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 767.98px) {
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .trust-badges {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 767.98px) {
  .success-main-layout {
    gap: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .success-left-column, .success-right-column {
    gap: 1.5rem;
  }
}

/* ============================================ */

/* EXTRA SMALL MOBILE (≤ 375px) */

/* ============================================ */

@media (max-width: 375px) {
  .success-hero {
    padding: 1.25rem 0;
  }
}

@media (max-width: 375px) {
  .success-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 375px) {
  .success-card {
    padding: 1.25rem;
  }
}

@media (max-width: 375px) {
  .action-buttons .btn {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 375px) {
  .child-success-avatar img {
    width: 80px;
    height: 80px;
  }
}

