/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

#donation-widget {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

#donation-cause {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

#donation-amounts label {
    display: block;
    margin: 5px 0;
}

/* Donation cheeckout widget css */
.donation-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.donation-box h3 {
    background: #ddd;
    padding: 10px;
    margin: -20px -20px 15px -20px;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.donation-box p {
    font-size: 14px;
    margin-bottom: 10px;
}

.amount-box {
    background: #e0e0e0;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    float: right;
    color: #007bff;
}

.donation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.donation-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
}

.donation-item select {
    flex-grow: 1;
    border: none;
    background: none;
    font-size: 14px;
}

.donation-buttons {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

#dropdownMenu {
    z-index: 21;
}

.changeOrg {
    margin-right: 12px;
}

.donation-buttons button, .donation-buttons .radio-button {
    flex: 1;
    padding: 8px;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    position: relative;
    z-index: 20;
}

.donation-buttons button:last-child,.donation-buttons .radio-button:last-child {
    border-color: red;
    color: red;
}

.visually-hidden {
  position: absolute;
  opacity: 0;
}

/* Custom styles for the dropdown */
.custom-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
    cursor: pointer;
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
    z-index: 20;
}
.custom-dropdown-menu.show {
    display: block;
}

.custom-dropdown-option {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
}

.custom-dropdown-option img {
    width: 10% !important;
    border-radius: 2px !important;
    max-width: 24px !important;
}

.custom-dropdown-option:hover {
    background-color: #f3f4f6;
}

.donation-box-container {
    background: #F7F7F7;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: visible;
}

.donation-header {
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.donation-header .pill-container {
    padding: 2px 5px;
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    margin: 10px;
}

.donation-amount {
    background: #198754;
    color: white;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.donation-select {
    background: white;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    justify-content: space-between;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

#selected-cause-img {
    height: 24px;
    border-radius: 4px;
}

.donation-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    width: 85%;
}

.dropdown-arrow {
    font-size: 16px;
    cursor: pointer;
    text-wrap: nowrap;
}

.dropdown-arrow span {
    font-size: 12px;
}

.dropdown-arrow svg {
    vertical-align: middle;
}

.donation-buttons {
    display: flex;
    gap: 10px;
}

.donation-buttons button {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    /*font-size: 14px;*/
    /*font-weight: 600;*/
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    position: relative;
    z-index: 20;
}

.donation-buttons button.active {
    background: #198754;
    color: white;
    border: 1px solid #198754;
}

.delete-button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.custom-dropdown-option span {
    margin-left: 1rem;
    font-size: 1rem;
}

/* Style for selected radio button */
.radio-button.selected {
    color: white;
}

.smallPadding { padding: 8px; }
.midPadding { padding: 16px; }
.bigPadding { padding: 24px; }

.smallMargin { margin: 4px 0; }
.midMargin { margin: 12px 0; }
.bigMargin { margin: 20px 0; }

.smallBorderRadius { border-radius: 4px; }
.midBorderRadius { border-radius: 8px; }
.bigBorderRadius { border-radius: 16px; }

.bordered { border: 1px solid; }

/* Loader Container */
.widget-loader {
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #f0f0f0;
  z-index: 9999;
  overflow: hidden;
}

/* Loader Bar */
.widget-loader-bar {
  width: 0%;
  height: 100%;
  background-color: #3498db;
  transition: width 0.4s ease;
}

/* Hidden State */
.hidden {
  display: none;
}

.custom-dropdown{
    color: #000000 !important;
}

/*Thank you page widget css */
.youbehero-thankyou-widget {
    display: flex;
    justify-content: center;
    align-items: center;
}

.youbehero-tk-card {
    width: 100%;
    gap: 20px;
    background: #fff;
    padding: 30px;
    text-align: center;
}

.youbehero-tk-icon {
    width: 100%;
    max-width: 140px !important;
    margin-bottom: 4px;
}

.youbehero-tk-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0;
    text-transform: unset !important;
}

.youbehero-tk-card .tk-p1 {
    font-weight: 400;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 19px;
    text-align: center;
    color: #424242;
}

.youbehero-tk-org-box {
    background: #f3f3f3;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-size: 16px;
    color: #333;
}

.youbehero-tk-org-box strong {
    font-size: 24px;
}

.youbehero-tk-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.youbehero-tk-social-icons a {
    text-decoration: none;
    height: 20px;
    color: #000;
}

.youbehero-tk-social-icons a:focus {
    outline: 0;
}

.youbehero-tk-social-icons a img {
    width: 20px;
    height: 20px;
}

.youbehero-tk-footer {
    font-size: 12px;
    color: #777;
    margin-top: 25px;
    justify-content: center;
    display: flex;
    align-items: center;   /* vertically center text + image */
    gap: 3px;              /* space between text and logo */
}

.youbehero-tk-footer p {
    margin: 0;             /* remove default p spacing */
}

.youbehero-tk-footer img, .youbehero-tk-footer svg {
    height: 12px;          /* adjust logo size */
}

.youbehero-thankyou-widget hr {
    border: 1px solid #F7F7F7;
}

.learn-more-btn {
    cursor: pointer;
    text-align: start;
    flex: 1;
    text-decoration: none;
}

.youbehero-tk-footer-logo {
    flex: 1;
    text-align: end;
}

.youbehero-tk-footer-logo:focus {
    outline: 0;
}

/* Modal background */
.youbehero-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    overflow-y: auto;
}

/* Modal content */
.youbehero-modal-content {
    background: rgb(238, 238, 238) !important;
    border-radius: 16px;
    max-width: 500px;
    margin: 5% auto;
    padding: 20px;
    position: relative;
}

/* Header */
.youbehero-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.youbehero-logo {
    font-weight: 600;
    font-size: 18px;    
}

.youbehero-modal-header .youbehero-logo img {
    height: 25px;
    margin-top: 10px;
}

.youbehero-close {
    font-size: 32px;
    cursor: pointer;
    margin-top: -10px;
}

/* Text */
.subtitle {
    color: #555;
    margin-bottom: 15px;
}

.youbehero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.youbehero-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.youbehero-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #000;
    font-size: 12px;
    top: 2px;
}

/* Footer box */
.youbehero-footer-box {
    background: #f7f7f7;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.youbehero-footer-box h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
}

/* Close button */
.youbehero-close-btn {
    background: #000;
    color: #fff !important;
    border: none;
    box-sizing: border-box;
    text-decoration: none;
    padding: 12px;
    width: 100%;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    text-align: center;
}

.youbehero-secondary-btn {
    background: #fff;
    color: #000 !important;
    border: 1px solid #7b96fe;
    box-sizing: border-box;
    text-decoration: none;
    padding: 12px;
    width: 100%;
    margin-bottom: 12px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    text-align: center;
}

/*test from YouBeHero*/
.modal-body {
    position: relative;
    flex: 1 1 auto;
}

.youbehero-modal-title {
    margin: 14px 0px 4px 0px;
    line-height: 1.5;
    font-size: 1.25rem;
    text-transform: unset !important;
}

.youbehero-modal-text-muted {
    color: #757575 !important;
    font-size: 14px;
    margin: 0px 0px 20px 0px;
}

.youbehero-vertical-dots {
    list-style: none;
    padding: 8px 20px;
    margin: 10px 0px;
    position: relative;
    padding-left: 20px;
    background: #fff;
    font-size: 14px;
    border-radius: 8px;
}

.youbehero-vertical-dots li {
    position: relative;
    margin: 10px 0;
    padding-left: 20px;
}

.youbehero-vertical-dots li strong {
    line-height: 2;
    font-weight: bold;
}

.youbehero-vertical-dots li p {
    margin: 0;
}

.youbehero-vertical-dots li::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 15px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #000;
    border-radius: 50%;
}

.youbehero-vertical-dots li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    left: 1px;
    height: 60%;
    width: 2px;
    background-color: #424242;
}

.youbehero-second-list {
    list-style: none;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;

}
.youbehero-second-list li {
    display: inline-flex;
}

.youbehero-second-list li img {
    width: 15px;
    margin: 0px 10px 0px 5px;
}

.youbehero-second-list li p {
    margin: 0;
}

.donation-heart-icon {
    width: 12px;
    height: 12px;
    display: inline-flex;
    margin-right: 4px;
}

/* Floating heart animation */
.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.heart-float {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    background: transparent;
    opacity: 0; /* Start invisible */
    animation: heart-float-up 3.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    transform-origin: center center;
}

.heart-float svg {
    display: block;
    opacity: 0; /* Start invisible */
    animation: heart-float-fade 3.5s linear forwards;
}

/* Different horizontal offsets and delays for each heart */
/* Using negative delays so animation starts before hearts appear */
.heart-float-0 {
    margin-left: -2.5rem;
    animation-delay: -0.1s;
    --heart-rotate: -20deg;
}

.heart-float-1 {
    margin-left: -1rem;
    animation-delay: 0.15s;
    --heart-rotate: 15deg;
}

.heart-float-2 {
    margin-left: 0;
    animation-delay: 0.05s;
    --heart-rotate: -10deg;
}

.heart-float-3 {
    margin-left: 1rem;
    animation-delay: 0.25s;
    --heart-rotate: 20deg;
}

.heart-float-4 {
    margin-left: -1.5rem;
    animation-delay: 0.4s;
    --heart-rotate: -15deg;
}

.heart-float-5 {
    margin-left: 0.5rem;
    animation-delay: 0.1s;
    --heart-rotate: 10deg;
}

.heart-float-6 {
    margin-left: -2rem;
    animation-delay: 0.2s;
    --heart-rotate: -25deg;
}

.heart-float-7 {
    margin-left: 1.5rem;
    animation-delay: 0.35s;
    --heart-rotate: 18deg;
}

.heart-float-8 {
    margin-left: -0.5rem;
    animation-delay: 0s;
    --heart-rotate: -12deg;
}

.heart-float-9 {
    margin-left: 2rem;
    animation-delay: 0.45s;
    --heart-rotate: 22deg;
}

.heart-float-10 {
    margin-left: -1.2rem;
    animation-delay: 0.3s;
    --heart-rotate: -18deg;
}

.heart-float-11 {
    margin-left: 0.8rem;
    animation-delay: 0.08s;
    --heart-rotate: 14deg;
}

@keyframes heart-float-up {
    0% {
        transform: translate(-50%, -50%) translateY(30px) rotate(var(--heart-rotate, 0deg)) scale(0.7);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translateY(-150px) rotate(var(--heart-rotate, 0deg)) scale(0.6);
        opacity: 0;
    }
}

@keyframes heart-float-fade {
    0% {
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
