@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* // FF - VFR/B10 - Begin */
:root {
  --card-odd-color: #D3E9FF;
  --card-even-color: #EAF3FC;
  --erros-width: 160px;
  --errors-word-wrap: break-word;
  --errors-height: auto;
  --errors-line-height: 25px;
}

/* Validation Error Css */

/* desktop validtion design */
#odd-amount-ff-error.form-control-feedback, #even-amount-ff-error.form-control-feedback,
#odd-amount-error.form-control-feedback, #even-amount-error.form-control-feedback,
#donation-custom-amount-input-error.form-control-feedback
 {
 position: absolute;
 top: -30px;
 width: var(--erros-width);
 word-wrap: var(--errors-word-wrap);
 left: 0;
 line-height: var(--errors-line-height) !important;
 height: var(--errors-height) !important;
}
#odd-amount-error.form-control-feedback {
	top: -25px !important;
}
#even-amount-error.form-control-feedback {
	top: -25px !important;
}
#donation_amount-error.form-control-feedback {
	top: -30px;
}
/* desktop validtion design end here */
#odd-amount-error.form-control-feedback {
  position: absolute;
  top: -40px;
  width: var(--erros-width);
  word-wrap: var(--errors-word-wrap);
  
}
#even-amount-error{
  position: relative;
}
#even-amount-error.form-control-feedback {
  position: absolute;
  top: -40px;
  width: var(--erros-width);
  word-wrap: var(--errors-word-wrap);
}
/* // FF - VFR/B10 - End */
.donation_days{
  position: relative;
}
[id^="donation_days"][id$="-error"] {
  position: absolute;
  top: -50px;
  width: 150px;
  left: 50%;
  transform: translate(-50%,0%);
  background: #e34f4f;
  color: #fff;
  font-size: 12px;
  border-radius: 5px;
  line-height: 15px;
  padding: 0 6px;
  font-weight: 400;
  /* // FF - VFR/B10 */
  text-align: left;
  z-index: 10;
}

/* Blessed 10 Start From Here */
/* Testing Border */
.test-border {
  border: 1px solid black;
}


#donation-sec {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  font-family: Inter;
}

.donation-left-side {
  height: 100%;
  width: 60%;
  background: url('/media/revamp/assets/mohid/imgs/mohid-donation.png') center/cover no-repeat;
  position: relative;
  transition: .5s cubic-bezier(0.19, 1, 0.22, 1);

}

.donation-left-side>img {
  transition: .5s cubic-bezier(0.19, 1, 0.22, 1);
}

.donation-right-side {
  position: relative;
  background: #fff;
  width: 40%;

  /* display: flex;
  justify-content: center;
  align-items: center; */
  /* overflow: hidden; */
}

.donation-left-side,
.donation-right-side {
  transition: width 0.5s ease;
}

.donation-left-side.shrink {
  width: 35%;
}

.first-letter-text {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-top: 22%;
}

.donation-right-side.expand {
  width: 65%;
}

.inner-donation-right-side {
  position: relative;
  height: 90vh !important;
  width: 100% !important;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 5rem 0rem !important;
}

.donation-summary-card {
  background-color: rgba(136, 136, 136, 0.2);
  padding: 2rem;
  border-radius: 10px;
}
#summary-dropdown-content {
  height: 300px;
  overflow-y: auto;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(0,0,0,0.35) transparent;
}

#summary-dropdown-content::-webkit-scrollbar {
  width: 4px; /* Chrome / Edge / Safari */
}

#summary-dropdown-content::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.35);
  border-radius: 8px;
}
#mobile-summary-dropdown-content{
  height: 300px;
  overflow-y: auto;
}
.donation-right-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
}

.inner-donation-right-side::-webkit-scrollbar {
  width: 6px;
}

.inner-donation-right-side::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.inner-donation-right-side:hover::-webkit-scrollbar-thumb {
  background: #888;
}

/* Donation Tab */
#donation-spilt-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#donation-spilt-tab>button.active {
  background: var(--secondary-color);
  color: #fff;

}

#donation-amount-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#donation-amount-tab>button.active {
  background: var(--secondary-color);
  color: #fff;
}

#odd {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#even {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#odd>div>input {
  outline: none;
  border: none;
  width: 100px;
}

#even>div>input {
  outline: none;
  border: none;
  width: 100px;
}

#odd>div>span {
  padding-top: 0.1rem;
  background-color: var(--pimary-color);
}

#even>div>span {
  padding-top: 0.1rem;
  background-color: var(--pimary-color);
}

/* Schedule Card */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* always 5 columns */
  gap: 1rem;
  /* even spacing */
  justify-items: center;
  /* center cards in each cell */
  align-items: start;
  width: 100%;
  /* optional: prevent overexpansion */
  margin: 0 auto;
  /* center the whole grid */
}

.schedule-card {
  position: relative;
  width: 100%;
  /* fills its grid cell evenly */
  border-radius: 8px;
  background: #f8fbff;
  padding: 0.75rem;
  text-align: center;
  transition: 0.3s;
}

.schedule-card>.text-toggle {
  position: absolute;
  top: 6px;
  right: 10px;
  z-index: 2;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

/* when skipped, card fades */
.schedule-card.skipped {
  opacity: 0.5;
  transition: all 0.3s ease;
}

/* disable card-body interaction */
.schedule-card.skipped .schedule-card-body {
  pointer-events: none;
}

.mobile-schedule-card.skipped {
  opacity: 0.5;
  transition: all 0.3s ease;
}

/* disable card-body interaction */
.mobile-schedule-card.skipped .mobile-schedule-card-body {
  pointer-events: none;
}


.schedule-card-body>h6>span {
  font-size: 16px;
}

.schedule-card-odd-bg {
  background-color: var(--card-odd-color);
}

.schedule-card-even-bg {
  background-color: var(--card-even-color);
}

.card-date {
  background-color: var(--pimary-color);
  width: fit-content;
  border-radius: 100%;
  min-width: 25px;
  min-height: 25px;
}

/* For smooth fade animations */
.step {
  transition: opacity 0.5s ease;
}

#step-3 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fade-in {
  opacity: 0;
  animation: fadeInAnim 0.5s ease forwards;
}

@keyframes fadeInAnim {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

.curve-border {
  width: 4rem;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-40%);
  background: #fff;
  /*z-index: 999999 !important;*/
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  box-shadow: -4px 0px 2px 0px rgba(0, 0, 0, 0.2);

}

/* Main Container */
#donation-sec-mobile {
  width: 100%;
  height: calc(100dvh - 70px);
  position: relative;
  background-color: var(--tri-color);
  overflow: hidden;
}

/* Inner Container - FLEXBOX LAYOUT */
.donation-inner-mobile {
  height: 100%;
  background: url('/media/revamp/assets/mohid/imgs/mohid-donation.png') center/cover no-repeat;
  position: relative;
  transition: .5s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
  /* REMOVED: justify-content: space-between; */
}

/* Header - Fixed height at top */
#donation-mobile-header {
  flex: 0 0 auto;
  width: 100%;
}

/* Form - Takes all available space and scrolls */
#validate_add {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

/* Remove fixed heights from steps */
#mobile-step-2,
#mobile-step-3 {
  height: auto !important;
  max-height: none !important;
  overflow-y: visible !important;
}

/* Step 4 specific layout */
#mobile-step-4 {
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.mobile-select-payment {
  overflow-y: visible;
  flex: none;
}

#view-donation-btn {
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 10;
  /* margin-top: 1rem; */
}

/* Footer - Fixed at bottom, NOT absolute */
#donation-mobile-footer {
  flex: 0 0 auto;
  width: 100%;
  background-color: #fff;
  box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
  position: relative; /* CHANGED from absolute */
  z-index: 100;
}
.category-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  border-radius: 100%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex ;
  justify-content: center;
  align-items: center;
}

.text-blessed-ten {
  font-size: 26px;
  font-weight: bold;
  text-align: center;
}

/* .categories-list {
  max-height: 100% !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
} */

/* .donation-setup {
  height: 70vh !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
} */

.mobile-schedule-card-date>#Ramdhan-day {
  border-radius: 100%;
  background-color: var(--pimary-color);
  padding: 0.3rem 0.5rem;
  color: #fff;

}

/* .mobile-select-payment {
  height: 60vh !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
} */

#donation-summary-slide-container {
  position: absolute;
  height: 100%;
  width: 100vw;
  top: 10%;
  left: 0;
  background-color: #fff;
  border-radius: 10px 10px 0px 0px;
  transform: translateY(100%);
  z-index: 90 !important;
  transition: .9s cubic-bezier(0.19, 1, 0.22, 1);
}

@media (min-width: 320px) {
  #donation-sec {
    display: none;
  }

  #donation-sec-mobile {
    display: block;
  }

 #mobile-donation-amount-tab-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}


  #donation-amount-tab>input {
    width: fit-content;
  }

  #mobile-donation-spilt-tab>button.active {
    background: var(--secondary-color);
    color: #fff;

  }


  #mobile-donation-amount-tab-inner>button.active {
    background: var(--secondary-color);
    color: #fff;
  }

  .custom-amount-input {
    width: 60px;
    border: none;
    outline: none;
  }
}

a.campaign_link {
  color: #212529;
}

@media (min-width: 1024px) {
  .schedule-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* always 5 columns */
    gap: 1rem;
    /* even spacing */
    justify-items: center;
    /* center cards in each cell */
    align-items: start;
    width: 100%;
    /* max-width: 700px; optional: prevent overexpansion */
    margin: 0 auto;
    /* center the whole grid */
  }

  .schedule-card {
    position: relative;

    width: 100%;
    /* fills its grid cell evenly */
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    transition: 0.3s;
  }

  .custom-amount-input {
    width: 50px;
    border: none;
    outline: none;
  }

  #donation-sec {
    display: flex;
  }

  #donation-sec-mobile {
    display: none;
  }
  #summary-dropdown-content{
  height: 80px;
  overflow-y: auto;
  scrollbar-width:5px;
}
}
@media (min-width: 1280px) {
   #summary-dropdown-content{
  height: 100px;
  overflow-y: auto;
  scrollbar-width:5px;
} 
}
@media (min-width: 1600px) {
   #summary-dropdown-content{
      height: 230px;
      overflow-y: auto;
      scrollbar-width:5px;
  }
}
@media (min-width: 1920px) {
  .schedule-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    justify-items: center;
    align-items: center;

  }

  .schedule-card {
    position: relative;
    width: 100%;
    /* fills its grid cell evenly */
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    transition: 0.3s;
  }

  .custom-amount-input {
    width: 50px;
    border: none;
    outline: none;
  }
    #summary-dropdown-content{
      height: 300px;
      overflow-y: auto;
      scrollbar-width:5px;
  }
}