:root {
  --wedding-bg: linear-gradient(180deg, #faf8f5 0%, #f5f1eb 100%);
  --wedding-bg-solid: #f5f1eb; /* unify flat color to avoid gradient seam */
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: 'Work Sans', sans-serif;
    background: white;
    min-height: 100vh;
    text-align: center;
  }


  /* Mobile responsiveness basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



/* Title */
h1 {
    color: #2c3e50;
    margin-top: 20px;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
h2 {
    color: #2c3e50;
    margin-top: 20px;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

  /* Hero Section - Full Viewport */
  .hero-section {
    position: relative;
    width: 100%;
    height: calc(110vh - 60px); /* Taller to show more of the image */
    min-height: 700px;
    overflow: hidden;
    margin-top: 60px; /* Account for fixed header */
  }

  .hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden; /* Hide the extra height */
  }

  .hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    object-position: center center;
    transition: transform 0.1s ease-out;
    will-change: transform; /* Optimize for parallax */
  }

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 2;
    transition: background 0.3s ease;
  }

  .hero-content {
    position: absolute;
    bottom: calc((95vh - 60px) * 0.22); /* Position in bottom third of hero section */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: #ffffff; /* Pure white for better contrast against dark overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 56px;
    font-weight: 300;
    margin: 0 0 15px 0;
    letter-spacing: 3px;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 0, 0, 0.3);
    font-family: 'Merriweather', serif;
    line-height: 1.2;
    color: #ffffff;
  }

  .hero-subtitle {
    font-size: 28px;
    font-weight: 300;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 0, 0, 0.3);
    font-family: 'Work Sans', sans-serif;
    color: #ffffff;
    opacity: 1;
  }

  /* Scroll Down Arrow */
  .scroll-down-arrow {
    position: absolute;
    bottom: calc((95vh - 60px) * 0.22 - 120px); /* Position just below hero content, accounting for text height */
    left: 50%;
    transform: translateX(-50%);
    z-index: 5; /* Higher than hero-content to ensure visibility */
    color: rgba(255, 255, 255, 1); /* Full white for maximum visibility */
    opacity: 1 !important; /* Force full opacity, not affected by parent */
    transition: opacity 0.3s ease;
    animation: bounce 2s infinite;
    cursor: pointer;
  }

  .scroll-down-arrow svg {
    width: 120px;
    height: 120px;
  }

  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateX(-50%) translateY(0);
    }
    40% {
      transform: translateX(-50%) translateY(-10px);
    }
    60% {
      transform: translateX(-50%) translateY(-5px);
    }
  }

  .scroll-down-arrow.hidden {
    opacity: 0;
    pointer-events: none;
  }


  .sky-wrapper {
    position: relative;
    z-index: 2;
    padding-top: 0;
    background: var(--wedding-bg-solid);
    margin-top: 0;
  }

  /* Welcome Message Section */
  .welcome-section {
    background: var(--wedding-bg-solid);
    padding: 22px 40px; /* Increased from 20px to 22px (10% increase) */
    text-align: center;
    position: relative;
    z-index: 2;
  }

  .welcome-embellishment-top,
  .welcome-embellishment-bottom {
    display: flex;
    justify-content: center;
    margin: 0 auto 7px; /* Reduced from 12px to 7px (40% reduction) */
    opacity: 0.7;
  }

  .welcome-embellishment-bottom {
    margin: 7px auto 0; /* Reduced from 12px to 7px (40% reduction) */
  }

  /* Inline SVG sizing for welcome embellishments */
  .welcome-embellishment-top svg,
  .welcome-embellishment-bottom svg {
    width: 180px;
    height: 30px;
    opacity: 0.7;
  }

  .embellishment-flipped {
    transform: scaleY(-1); /* Flip the bottom embellishment vertically */
  }

  .welcome-message {
    max-width: 700px;
    margin: 0 auto;
  }

  .welcome-text {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    line-height: 1.6; /* Reduced from 1.8 to 1.6 */
    color: #5a5a5a;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0;
  }

  /* Smooth transition from hero to gift cards */
  .sky-wrapper {
    animation: fadeInUp 0.8s ease-out;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


.logo span {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d5a27;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.registry-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.registry-image {
    max-width: 400px;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .registry-image {
        max-width: 60vw;  /* 50% of viewport width on mobile */
        max-height: 40vh;
    }
}
/* #################################################GIFT CARD###################################################### */


/* Gift List - Full Width Stacked Layout */
.gift-list {
    display: flex;
    flex-direction: column; /* Stack cards vertically */
    align-items: center; /* Center cards */
    padding: 60px 40px; /* Generous padding for classy look */
    width: 100%;
    position: relative;
    z-index: 1;
    background: transparent; /* Transparent to show wedding background */
    max-width: 1400px;
    margin: 0 auto;
}

/* Gift Card - Full Width */
.gift-card {
    background: #fbfbf7;
    align-items: center;
    border: 1px solid #ececec;
    border-radius: 15px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
    width: 90%;
    max-width: 800px;
    margin: 15px 0;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    position: relative; /* This is important for absolute positioning the ribbon inside */
    overflow: hidden;
}

/* Gift Card - Hover Effect */
.gift-card:hover {
    transform: scale(1.02);
    border: 1px solid #446729;
}

/* Gift Card - Gift Image */
.gift-card img {
    width: 140px;
    height: auto;
    border-radius: 8px;
    margin-right: 30px;
    align-self: center;
}


/* Gift Card - Gift Content - Text on Right */
.gift-content {
    flex-grow: 1; /* Take up remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Gift Card - Gift Title */
.gift-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Work Sans', sans-serif;
}

/* Gift Card - Gift Description */
.gift-content p {
    font-size: 14px;
    margin: 6px 0;
    font-family: 'Work Sans', sans-serif;
}

/* Gift Card - text content */

.gift-content p:nth-of-type(2) {
    color: #2a2222;
    font-weight: 500;
}

/* Text formatiing */
.attribute-label {
    color: #2d5a27;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
}

.attribute-value {
    color: #2d5a27; /* Consistent green color matching landing page */
    font-weight: 100;
    font-family: 'Work Sans', sans-serif;
}

.gift-user-contribution {
    background: #b0c779;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 10px 0;
    display: inline-block;
        /* Add these properties to control size */
    width: fit-content;
    min-width: 150px;
    max-width: 500px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow:  0px 2px 6px rgba(0, 0, 0, 0.05);
    align-self: flex-start; /* Center the contribution box */
}

.gift-user-contribution span {
    color: #000000;
    font-weight: 500;
    font-size: 14px;  /* Control text size */
}
/* ################################################# SHAGUN CARD ###################################################### */

.shagun-card {
    background: #8B0D32;  /* deep maroon color */
    align-items: center;
    border: none;
    border-radius: 15px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    margin: 15px 0;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    transition: all 0.2s ease;
}

.shagun-card:hover {
    transform: scale(1.02);
    border: 2px solid #4A071A;  /* darker maroon for hover border */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.shagun-card img {
    width: 140px;
    height: auto;
    border-radius: 8px;
    margin-right: 30px;
    align-self: center;
}

.shagun-card .gift-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    border-radius: 10px;
}

.shagun-card h2,
.shagun-card p {
    color: #ffffff;  /* white text for better contrast */
}

.shagun-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}



.button-shagun-contribute {
    min-width: 140px;
    display: inline-block;
    padding: 6px 16px;
    margin: 6px 8px 0 0;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    /* Updated gold colors */
    border: 1.5px solid #FFD700;
    background: linear-gradient(145deg, #FFD700, #FDB931);
    color: #921e3d;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
}

.button-shagun-contribute:hover {
    background: linear-gradient(145deg, #FDB931, #F4A460);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.shagun-contribution {
    background: #f8f4ff;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 10px 0;
    display: inline-block;
        /* Add these properties to control size */
    width: fit-content;
    min-width: 150px;
    max-width: 500px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shagun-contribution span {
    color: #921e3d;
    font-weight: 500;
    font-size: 14px;  /* Control text size */
}
/* ################################################# BUTTONS ###################################################### */
.card-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Match the height of the container */
}

.button {
    min-width: 140px;
    display: inline-block;
    padding: 6px 16px;
    margin: 6px 8px 0 0;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1.5px solid #ddd;
    background-color: white;
    color: black;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
}

.button:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}


/* Reserve Button */
.button-reserve {
    min-width: 140px;
    display: inline-block;
    padding: 6px 16px;
    margin: 6px 8px 0 0;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1.5px solid #ddd;
    background-color: white;
    color: black;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
}

.button-reserve:hover {
    background: #446729;
    color: white;
}

.button-disabled {
    background-color: #d3d3d3;
    color: #666;
    cursor: not-allowed;
    min-width: 140px;
    display: inline-block;
    padding: 6px 16px;
    margin: 6px 8px 0 0;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1.5px solid #ddd;
    transition: all 0.2s ease-in-out;
    text-align: center;
    width: auto; /* Allow button to size naturally */
  }

/* Modal Content - Desktop */
.modal-content .button-contribute {
    float: none !important;
    margin: 20px 0 8px 0;
    width: auto;
    padding: 8px 16px;
    border: 1.5px solid #446729;
    background-color: white;
    color: #446729;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.modal-content .button-contribute:hover {
    background: #446729;
    color: white;
}

/* Disabled button in contribution modal only */
#contributionModal .button-contribute.button-disabled,
#contributionModal .button-contribute:disabled {
    background-color: #d3d3d3 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border-color: #ccc !important;
    opacity: 0.6;
}

#contributionModal .button-contribute.button-disabled:hover,
#contributionModal .button-contribute:disabled:hover {
    background-color: #d3d3d3 !important;
    color: #666 !important;
}
.button-container {
    clear: both;
    overflow: hidden;
}

.button-container::after {
    content: "";
    display: table;
    clear: both;
}

/* Contribute Button */
.button-contribute {
    min-width: 140px;
    display: inline-block;
    padding: 6px 16px;
    margin: 6px 0 0 auto;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1.5px solid #446729;
    background-color: white;
    color: #446729;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    float: right;
}

.button-contribute:hover {
    background: #446729;
    color: white;
}


/* Product Link Icon */
.product-link-icon {
    color: #555;
    text-decoration: none;
    margin-left: 8px;
    opacity: 0.8;
    transition: opacity 0.2s, color 0.2s;
    vertical-align: super;
    font-size: 14px;
}

.product-link-icon i {
    font-size: 12px;
    font-weight: 900;
}

.product-link-icon:hover {
    opacity: 1;
    color: #446729;
}

/* Delete Button */
.button-delete {
    background: #e74c3c;
    color: white;
}

.button-delete:hover {
    background: #c0392b;
}


/* ################################################# PROGRESS BAR ###################################################### */

.progress-bar-wrapper {
    margin: 10px 0;
    width: 100%;
    max-width: 500px;
}

.progress-bar-outer {
    height: 36px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 40px;
    overflow: hidden;  /* ✅ Critical to prevent overflow */
    display: flex;
    align-items: center;
    padding: 2px;
}

.progress-bar-inner {
    height: 100%;
    background-color: #446729;
    border-radius: 40px;
    transition: width 0.3s ease-in-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    overflow: hidden; /* Added to contain the highlight properly */
}

#contributionModal .progress-bar-wrapper {
    position: relative;
    left: 40px; /* Shifts the element 50px to the right from its normal position */
}

.progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: black;
}

.progress-label {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin-top: 4px;
}

.cont-tooltip-text {
    visibility: visible;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 999;
    top: -40px;
    /* bottom: 110%; */
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    transition: opacity 0.3s;
}

.progress-bar-inner:hover .cont-tooltip-text {
    visibility: visible;
    opacity: 0.95;
}

.card-progress-bar-value-text {
    font-size: 12px !important; /* Slightly smaller for the card view */
    color: #555 !important;
    font-weight: 500 !important;
    margin-left: 8px !important;
    font-family: 'Work Sans', sans-serif !important;
}



/* ################################################# STRIPE PAYMENT SUCCESS ###################################################### */








/* ################################################# MODAL ###################################################### */


.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 40%;
    text-align: center;
}

.shagun-modal-content {
    background-color: #8B0D32;  /* deep maroon color */
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 40%;
    text-align: center;
    align-content: center;
    margin-top: 20px;;
    gap: 20px;

}

.shagun-modal-content h2,
.shagun-modal-content h3 {
    color: #ffffff;  /* white text for better contrast */
    margin-top: 20px;
}

.shagun-modal-content input {
    width: 30%;
    padding: 8px;
    margin: 10px 0;
  }

.shagun-explanation-text {
    margin-top: 10px;
    font-size: 14px; /* Makes text smaller than default */
    line-height: 1.4; /* Improves readability of smaller text */
    margin-bottom: 20px; /* Adds space below the text */
    color: #666; /* Optional: lighter color for secondary text */
    display: block; /* Ensures the text takes up its own block */
    color: #ffffff;
    line-height: 1.4;
    text-align: center;
}
.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Amount box in contribution
input[type="number"] {
    padding: 8px;
    width: 100px;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #cccccc;
    margin-right: 10px;
} */

.modal-content input {
    width: 80%;
    padding: 8px;
    margin: 10px 0;
  }

.modal-content .button {
    margin-top: 10px;
    border: 1px solid #cccccc;
  }

.modal-content button:hover {
    background: #446729;
}

/* Shared styles for all modal textareas */
.modal textarea,
textarea.modal-textbox {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* On focus - when you have selected the text box */
.modal textarea:focus,
textarea.modal-textbox:focus {
  outline: none;
  border-color: #446729;
  box-shadow: 0 0 6px rgba(68, 103, 41, 0.4);
}

/* Placeholder styling */
.modal textarea::placeholder,
textarea.modal-textbox::placeholder {
  color: #888;
  font-style: italic;
}

.modal-content .explanation-text {
    margin-top: 10px;
    font-size: 14px; /* Makes text smaller than default */
    line-height: 1.4; /* Improves readability of smaller text */
    margin-bottom: 20px; /* Adds space below the text */
    color: #666; /* Optional: lighter color for secondary text */
    display: block; /* Ensures the text takes up its own block */
    /* margin-bottom: 1rem;
    font-size: 1rem;
    color: #555; */
    line-height: 1.4;
    text-align: center;
}

/* Updated currency input styling with symbol inside */
.currency-input {
  position: relative;
  display: flex;
  width: 100%;
  margin: 20px 0;
}

.currency-input .currency-symbol {
  position: absolute;
  left: 12px; /* Fixed distance from the left edge of input */
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #555;
  pointer-events: none; /* Allow clicking through the symbol */
  z-index: 2;
  white-space: nowrap; /* Prevents the symbol from wrapping */
}

.currency-input input {
  height: 40px;
  width: 30%;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
  min-width: 100px;
  text-indent: 20px;
}

/* Add mobile-specific adjustments */
@media screen and (max-width: 768px) {
  .currency-input .currency-symbol {
    left: 12px; /* Keep consistent on mobile */
  }

  .currency-input input {
    font-size: 16px; /* Prevent iOS zoom */
    padding-left: 30px; /* Keep consistent padding */
  }
}
/* ################################################# RESERVED / FUNDED CARD ###################################################### */


.reserved-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #b0c779;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    width: 150px;
    margin-top: 10px;
}

.reserved-label {
    color: #000;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-icon {
    background: #ffffff;
    border: 1px solid #000;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.reserved-card img {
    width: 120px;
    height: auto;
    border-radius: 10px;
    margin-right: 16px;
    object-fit: contain;
  }

.reserved-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #fdfdf9;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 20px;
    height: 150px; /*  Desired fixed height for reserved cards */
    min-height: 150px;
    width: 70%; /* Reduced width from the standard 90% */
    max-width: 600px; /* Reduced max-width from the standard 800px */
  }

.reserved-card .gift-content h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 0 0; /* Add some bottom margin */
    overflow: hidden; /* Hide overflow */
    overflow-wrap: break-word; /* Allow text to break to prevent overflow */
    hyphens: auto; /* Add hyphens where appropriate */
    max-width: 100%;
    align-self: center; /* Center the title vertically */
  }

.reserved-card .gift-content {
    flex: 1; /* Allows this section to take available space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically if space allows */
    height: 100%; /* Try to use full internal height */
    overflow: hidden; /* Clip overflowing text */
    overflow-wrap: break-word; /* Allow text to break to prevent overflow */
    word-wrap: break-word; /* For legacy browsers */
    word-break: break-word; /* More aggressive breaking if needed */
    hyphens: auto; /* Add hyphens where appropriate */
    max-width: 100%;
  }


.reserved-card .gift-content p { /* Example if you have a description */
    font-size: 13px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

.button-unreserve {
    min-width: 140px;
    display: inline-block;
    padding: 6px 16px;
    margin: 0 0 0 0;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    background-color: #fff;
    color: #c64c4c; /* A soft red that matches the "Reserved" ribbon */
    border: 1.5px solid #c64c4c;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
  }

.button-unreserve:hover {
    background-color: #c64c4c;
    color: #fff;
  }

/* Styles for the ribbon wrapper and the ribbon itself */
.ribbon-wrapper {
    position: absolute;
    top: -5px; /* Adjust as needed */
    left: -5px; /* Adjust as needed */
    width: 150px; /* Adjust as needed */
    height: 150px; /* Adjust as needed */
    overflow: hidden;
    z-index: 10; /* Ensure it's above other card content */
}

.ribbon {
    position: absolute;
    display: block;
    width: 220px; /* Adjust as needed */
    padding: 10px 0;
    /* Replace the red color with a luxurious gold gradient */
    background: linear-gradient(145deg, #FFD700, #FDB931, #E6BE8A, #FDB931, #FFD700);
    /* background: linear-gradient(145deg, #FFD700, #FDB931); */
    background-size: 200% 100%;
    color: #40220F; /* Dark brown text for better contrast on gold */
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transform: rotate(-45deg);
    left: -50px; /* Adjust to position the rotated ribbon */
    top: 45px;  /* Adjust to position the rotated ribbon */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    text-shadow: 0 1px 1px rgba(255,255,255,0.4);
    border: 1px solid rgba(218, 165, 32, 0.3); /* Subtle border */
    animation: shine 2s infinite alternate; /* Add shine animation */
}




@keyframes shine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}
/* ################################################# CONTAINER INDEX PAGE ###################################################### */

.main-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
    gap: 40px;
}

.left-column, .right-column {
    flex: 1;
}

.left-column {
    max-width: 500px;
    margin-left: auto;
    margin-right: 0;

}
.left-column h2 {
    margin-top: 12px;
  }

.right-column {
    flex-grow: 2;
}
.right-column h2 {
    margin-top: 12px;
  }




/* ################################################# FORM CARD INDEX PAGE ###################################################### */

.form-card {
    background: #fbfbf7;
    align-items: center;
    border: 1px solid #ececec;
    border-radius: 15px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
    width: 90%;
    max-width: 800px;
    margin: 15px 0;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.form-card h2 {
    text-align: center;
    color: #2f2f2f;
    margin-bottom: 20px;
}

/* FETCH FROM URL INPUT AND BUTTON */
.url-input-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

  .url-input-group input[type="text"] {
    flex: 1;
    margin: 0;
    vertical-align: middle;
    height: 30px; /* ensure it matches the button */
    font-size: 14px;
    line-height: 1.5;
    padding: 0 12px; /* remove top-bottom padding to center text */
    border: 1px solid #ccc;
    border-radius: 8px;
}

.google-btn {
    background-color: white;
    color: rgb(11, 8, 8);
    padding: 12px 24px;
    border: 1px solid #030104;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center; /* Center text and icon */
    gap: 12px;
    margin: 10px auto;
    width: 100%; /* Make all buttons full width */
    max-width: 300px; /* Optional: limit max width */
    min-width: 300px; /* Optional: limit max width */
    box-sizing: border-box;
}

.url-input-group .go-button {
    height: 30px;
    padding: 0 16px;
    font-size: 14px;
    border: none;
    width: 60px;
    background-color: #446729;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    vertical-align: middle;
}

.button-view-registry {
    display: inline-block;
    background: #fff;
    color: #446729;
    border: 1px solid #446729;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 1em;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background 0.2s, color 0.2s;
}
.button-view-registry:hover {
    background: #446729;
    color: #fff;
}



/* FORM CARD FIELDS AND BUTTONS */

.form-card input[type="text"],
.form-card input[type="url"],
.form-card input[type="number"],
.form-card textarea {
    width: 80%;
    padding: 4px;
    margin-bottom: 1px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    display: block;
}

.form-card input[type="submit"],
.form-card input[type="reset"],
.form-card button {
    width: 48%;
    margin-top: 12px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background-color: #446729;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.form-card input[type="submit"]:hover,
.form-card input[type="reset"]:hover,
.form-card button:hover {
    background-color: #355320;
}


.checkbox-group {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.checkbox-item {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.checkbox-item label {
    font-size: 0.9em;
    color: #555;
}
/* ################################################# HEADER AND NAVIGATION ###################################################### */


.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
    z-index: 1000;
}

.logo a {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d5a27;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.logo-link {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d5a27;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    vertical-align : middle;
}

.nav-link:hover {
    color: #446729; /* Consistent green color matching landing page */
}

.nav-link i {
    margin-right: 6px;
}

/* Hide hamburger menu on desktop */
.hamburger-menu {
    display: none;
}

.mobile-menu {
    display: none;
}


/* Add this to your existing style section or create one */
.currency-selector {
    position: relative;
    display: inline-block;
}

.currency-selector select {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 2px;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: #446729;
    cursor: pointer;
    transition: all 0.3s;
}

.currency-selector select:hover {
    background-color: #f0f0f0;
    border-color: #446729;
}

.currency-selector select:focus {
    outline: none;
    border-color: #446729;
    box-shadow: 0 0 0 2px rgba(68, 103, 41, 0.2);
}

.currency-display {
    display: none;
}


.user-badge {
    background-color: #2d5a27;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.nav-user-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .user-info {
    position: relative;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
  }

  .user-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    padding: 10px 14px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 14px;
    z-index: 1000;
    min-width: 200px;
  }

  .user-dropdown.show {
    display: block;
  }

  .user-name {
    font-weight: bold;
    margin-bottom: 4px;
  }

  .user-email {
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
  }

  .logout-link {
    color: #2d5a27;
    text-decoration: none;
    font-weight: bold;
  }

@media screen and (max-width: 768px) {
    /* Header adjustments */
    .header {
        padding: 12px 20px;
        position: fixed;
        z-index: 1000;
    }

    /* Reduce gap between nav elements on mobile */
    .nav-links {
        gap: 15px;
    }

    .logo a {
        font-size: 1.5rem;
    }

    .logo-link {
        font-size: 1.5rem;
    }

    .logo span {
        font-size: 1.5rem;
    }

    /* Main content spacing */
    .hero-section {
        height: 70vh;
        min-height: 400px;
        margin-top: 56px; /* Account for fixed header on mobile */
    }

    /* Layered hero image effect for mobile */
    .hero-image-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        background-image: var(--hero-bg-image);
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        filter: blur(15px);
        transform: scale(1.1); /* Slight scale to prevent blur edge artifacts */
    }

    .hero-image {
        width: 190%;
        /* max-width: 90%; */
        height: auto;
        max-height: 100%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: contain;
        object-position: center center;
        position: absolute;
        z-index: 2; /* Above the blurred background */
    }

    .scroll-down-arrow {
        bottom: calc(90vh * 0.15 - 100px); /* Position just below hero content on mobile */
    }

    .scroll-down-arrow svg {
        width: 100px;
        height: 100px;
    }

    .hero-title {
        font-size: 40px;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .welcome-section {
        padding: 15px 20px; /* Increased from 14px to 15px (10% increase) */
    }

    .welcome-text {
        font-size: 20px;
        line-height: 1.5; /* Reduced from 1.7 to 1.5 */
    }

    .welcome-embellishment-top,
    .welcome-embellishment-bottom {
        margin: 0 auto 5px; /* Reduced from 8px to 5px (40% reduction) */
    }

    .welcome-embellishment-top svg,
    .welcome-embellishment-bottom svg {
        width: 150px;
        height: 22px;
    }

    .welcome-embellishment-bottom {
        margin: 5px auto 0; /* Reduced from 8px to 5px (40% reduction) */
    }

    .hero-content {
        padding: 0 15px;
        bottom: 15%;
    }

    .gift-list {
        padding: 40px 20px;
    }

    .sky-wrapper {
        padding-top: 40px !important;
        background: var(--wedding-bg-solid);
    }

    h1 {
        font-size: 32px;
        padding: 0 20px;
    }

    h2 {
        font-size: 28px;
        padding: 0 20px;
    }
    /* Gift cards adjustments */
    .gift-card {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        margin: 10px;
        width: 95%;
    }

    .reserved-card {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        margin: 10px;
        width: 95%;
        height: auto; /* Allow height to adjust based on content */
    }
    .reserved-card .gift-content h2{
        overflow-wrap: break-word; /* Allow text to break to prevent overflow */

    }

    .gift-card img {
        max-height: 150px;
        width: auto;
        max-width: 200px;
        margin: 0 auto 15px auto;
        align-self: center;
    }
    .card-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .gift-content{
        width: 100%;
        margin-bottom: 10px;
    }
    /* Buttons stack on mobile */
    .button,
    .button-unreserve,
    .button-reserve,
    .button-contribute {
        width: 100%;
        height: 50px;
        margin: 5px 0px;
        box-sizing: border-box;
    }

    button[disabled],
    .button-disabled,
    button.reserve-button:disabled {
        width: 100% !important; /* Use !important to override any other styles */
        margin: 5px 0;
        height: 50px;
        min-width: 100%;
        border-radius: 25px;
        display: block;
        box-sizing: border-box;
    }
    .tooltip {
        width: 100%; /* Make tooltip full width */
    }
    .tooltip .button-disabled {
        width: 100%; /* Make the button full width within tooltip */
    }
    /* Progress bar adjustment */
    .progress-bar-wrapper {
        width: 95%;
    }

    /* Navigation adjustments */
    .header {
        padding: 12px 20px;
    }

    .nav-user-wrapper {
        gap: 0.5rem;
        position: relative;
    }

    .nav-links {
        gap: 15px;
    }

    /* Hide desktop-only nav items on mobile */
    .desktop-only {
        display: none !important;
    }

    /* Hamburger menu button (mobile only) */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger-menu span {
        width: 25px;
        height: 3px;
        background-color: #446729;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Mobile menu dropdown */
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        min-width: 180px;
        margin-top: 10px;
        z-index: 1000;
        padding: 10px 0;
    }

    .mobile-menu.show {
        display: block;
    }

    .mobile-menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 12px 20px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        font-weight: 500;
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
        transition: background-color 0.2s;
    }

    .mobile-menu-item:hover {
        background-color: #f5f5f5;
    }

    .mobile-menu-item i {
        width: 18px;
        color: #446729;
    }

    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }

    /* Compact currency selector on mobile */
    .currency-selector {
        margin-left: 10px;
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    /* Hide the select dropdown visually on mobile, but keep it functional */
    .currency-selector select {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
        z-index: 2;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
    }

    /* Show the currency display on mobile */
    .currency-display {
        display: inline-block;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 8px 12px;
        font-size: 18px;
        font-weight: 500;
        color: #446729;
        min-width: 45px;
        text-align: center;
        pointer-events: none;
        z-index: 1;
    }

    /* Add dropdown arrow indicator */
    .currency-selector::after {
        content: '';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid #446729;
        z-index: 1;
    }

    .user-badge {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }


    /* MODAL */
    /* Modal adjustments for mobile */
    .modal-content,
    .shagun-modal-content {
        width: 90%;
        /*min-height: 350px; /* Use fixed min-height instead */
        margin: 20% auto;
        padding: 15px;
        gap: 20px; /* Adds space between all flex items */
    }

    /* Login modal specific mobile adjustments */
    .modal-content.login-modal-content {
        padding-bottom: 10px !important; /* Reduce bottom padding on mobile */
    }
    /* Modal heading adjustments */
    .modal-content h3,
    .shagun-modal-content h3 {
        margin-top: 30px; /* Pushes heading down */
        margin-bottom: 20px; /* Adds space between heading and textarea */
    }
    /* Modal text inputs */
    .modal textarea,
    textarea.modal-textbox {
        width: 100%;
        height: 40%;
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 10px;
        margin-top: 15px;
    }

    /* Modal number inputs */
    .modal input[type="number"] {
        width: 120px;
        font-size: 16px;
        padding: 10px;
    }

    /* Modal buttons */
    .modal .button,
    .modal .button-reserve,
    .modal .button-contribute,
    .button-shagun-contribute {
        width: auto;
        margin: 20px 0 8px 0;
        padding: 8px 16px;
        font-size: 16px;
        float: none !important;
        border: 1.5px solid #446729;
        background-color: white;
        color: #446729;
        border-radius: 25px;
        font-weight: 500;
        transition: all 0.2s ease-in-out;
        cursor: pointer;
        text-align: center;
        display: inline-block;
    }

    .modal .button-contribute:hover {
        background: #446729;
        color: white;
    }

    /* Modal close button */
    .modal-close {
        font-size: 24px;
        padding: 10px;
    }

    /* Amount box in contribution modal */
    .modal input[type="number"] {
        width: 100%;
        margin: 10px 0;
    }

        /* Shagun card mobile adjustments */
    .shagun-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
    }

    .shagun-header h2 {
        margin: 0;
        font-size: 24px;
    }

    .button-shagun-contribute {
        font-size: 14px;
        padding: 6px 14px;
        border-radius: 20px;
        min-width: auto;
        width: auto;
        white-space: nowrap;
    }
}

/* TUTORIAL */

/* Tutorial Modals - Fixed Height Only */
.tutorial-modal .modal-content {
    height: 250px;
    position: relative;
}

.tutorial-buttons {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    width: auto;
}

.tutorial-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.tutorial-login {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #446729;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.tutorial-login:hover {
    background: #355320;
    transform: translateX(-50%) scale(1.05);
}

.tutorial-left-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.tutorial-right-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.tutorial-back, .tutorial-close, .tutorial-next {
    min-width: 140px;
    display: inline-block;
    padding: 6px 16px;
    margin: 6px 8px 0 0;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1.5px solid #ddd;
    background-color: white;
    color: black;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
}

.tutorial-close:hover {
    background-color: #c43434 !important;
    color: white;
}

.tutorial-back:hover, .tutorial-next:hover {
    background-color: #446729 !important;
    color: white;
}

/* ################################################# WHATSAPP FLOAT BUTTON ###################################################### */

/* WhatsApp icon style - isolated from container */
.whatsapp-float .wa-icon {
    width: 36px;  /* Increased from 30px */
    height: 36px; /* Increased from 30px */
    object-fit: contain;
    flex-shrink: 0; /* Prevents the icon from shrinking */
    margin: 0; /* Reset any margins that might affect layout */
    padding: 0; /* Reset any padding that might affect layout */
}

/* Add this style to ensure the container adapts to the icon size */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Work Sans', sans-serif;
    width: fit-content; /* Makes container fit its content */
    box-sizing: border-box; /* Ensures padding doesn't affect overall width */
}

/* Ensure the text stays consistent regardless of icon size */
.whatsapp-float .help-text {
    margin-left: 8px; /* Fixed spacing from icon */
    font-size: 14px;
    font-weight: 500;
    color: white;
    flex-shrink: 0; /* Prevents text from being compressed */
    white-space: nowrap; /* Prevents text wrapping */
}

/* For mobile devices */
@media screen and (max-width: 767px) {
    .whatsapp-float {
        padding: 6px 12px;
        width: fit-content;
    }

    .whatsapp-float .wa-icon {
        width: 36px;
        height: 36x;
        flex-shrink: 0;
        /* Icon size changes independently */
    }

    .whatsapp-float .help-text {
        font-size: 13px;
        /* Text size stays consistent */
    }

    /* Tutorial Modal Mobile Styles */
    .tutorial-modal .modal-content {
        height: 350px;
        position: relative;
    }

    .tutorial-modal .modal-content p {
        margin-bottom: 20px;
    }

    .tutorial-buttons {
        position: absolute;
        bottom: 15px;
        left: 15px;
        right: 15px;
        display: flex;
        justify-content: space-between;
        width: auto;
    }

    .tutorial-indicator {
        position: absolute;
        bottom: 55px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .tutorial-login {
        position: absolute;
        bottom: 85px;
        left: 50%;
        transform: translateX(-50%);
        background: #446729;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
    }

    .tutorial-login:hover {
        background: #355320;
        transform: translateX(-50%) scale(1.05);
    }
}

/* ################################################# VIEW CONTRIBUTIONS PAGE ###################################################### */

.view-contributions-page {
    background-color: #f2efec;
    min-height: 100vh;
    padding-top: 80px; /* Account for fixed header */
    padding-bottom: 40px;
}

.contributions-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 40px 76px 0 76px;
    margin-bottom: 32px;
}

.back-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.back-button:hover {
    opacity: 0.7;
}

.back-button:active {
    opacity: 0.5;
}

.contributions-title {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 28px;
    color: #324848;
    margin: 0;
    letter-spacing: -0.56px;
}

.contributions-title-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

.contributions-title-link:hover {
    opacity: 0.7;
}

.contributions-title-link:active {
    opacity: 0.5;
}

.contributions-content {
    padding: 0 76px;
    max-width: 1600px;
    margin: 0 auto;
}

.contributions-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contributions-list-column {
    flex: 0 0 400px;
    max-width: 400px;
}

.total-contributions-section {
    background: rgba(227, 220, 214, 0.9);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    border: 2px solid rgba(155, 96, 124, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.total-contributions-label {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #5a5a5a;
    margin: 0;
    letter-spacing: -0.32px;
}

.total-contributions-amount {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #9b607c;
    margin: 0;
    letter-spacing: -0.64px;
}

.notes-card-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 600px;
}

.contributions-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.contribution-card {
    background: rgba(227, 220, 214, 0.8);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    padding: 10px 12px;
    height: 95px;
    display: flex;
    align-items: center;
    gap: 13px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.contribution-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contribution-card.selected {
    background: rgba(227, 220, 214, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #9b607c;
}

.contribution-info {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0; /* Allow text truncation */
}

.contribution-name-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.contribution-name {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 21px;
    color: #262e2e;
    margin: 0;
    letter-spacing: -0.42px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.contribution-gift-name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #6b7280;
    letter-spacing: -0.14px;
    max-width: 100%;
    min-width: 0;
}

.contribution-gift-name i {
    font-size: 12px;
    color: #9b607c;
    opacity: 0.7;
}

.contribution-gift-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.note-indicator {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.no-note-indicator {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    opacity: 0.3;
}

.contribution-amount-wrapper {
    flex-shrink: 1;
    min-width: 0;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
}

.contribution-amount {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 21px;
    color: #9b607c;
    letter-spacing: -0.42px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-message {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    color: #5a5a5a;
    margin: 0;
}

/* Notes Card Styles */
.notes-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.notes-card-container {
    position: relative;
    width: 345px;
    height: 535px;
    margin-bottom: 60px;
    overflow: visible;
}

.notes-card-yellow-svg-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 387px;
    height: 572px;
    z-index: 0;
    transform: translate(-50%, -50%) rotate(-10deg);
    transform-origin: center center;
}

.notes-card-yellow-svg {
    width: 100%;
    height: 100%;
}

.notes-card-svg-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.notes-card-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.notes-card-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 37px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}

.notes-text,
.notes-signature {
    pointer-events: auto;
}

.notes-text {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 0;
}

.notes-text.centered {
    align-items: center;
}

.notes-text p {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 21px;
    line-height: 1.201;
    color: white;
    letter-spacing: -0.42px;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: center;
    width: 100%;
}

.notes-empty-message {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.notes-signature {
    text-align: right;
    margin-top: auto;
    max-width: 100%;
    min-width: 0;
}

.notes-signature p {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 26px;
    color: white;
    letter-spacing: -0.52px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.notes-navigation {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.notes-nav-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #324848;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.notes-nav-button:hover {
    background-color: #2a3a3a;
    transform: scale(1.1);
}

.notes-nav-button:active {
    transform: scale(0.95);
}

.notes-modal-overlay {
    display: none;
}

.notes-modal-close {
    display: none;
}

body.notes-modal-open {
    overflow: hidden;
}

body.notes-modal-open .notes-modal-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(50, 72, 72, 0.45);
    z-index: 1990;
}

body.notes-modal-open .notes-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(50, 72, 72, 0.85);
    color: #ffffff;
    font-size: 28px;
    line-height: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

body.notes-modal-open .notes-modal-close:hover {
    background: rgba(50, 72, 72, 1);
    transform: scale(1.05);
}

body.notes-modal-open .notes-modal-close:active {
    transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contributions-title-section {
        padding: 20px 20px 0 20px;
        margin-bottom: 24px;
    }

    .contributions-content {
        padding: 0 20px;
    }

    .contributions-layout {
        flex-direction: column;
        gap: 30px;
    }

    .contributions-list-column {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }

    .notes-card-column {
        display: none;
    }

    body.notes-modal-open .notes-card-column {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        inset: 0;
        padding: 24px 20px;
        z-index: 2001;
        overflow-y: auto;
        pointer-events: none;
    }

    body.notes-modal-open .notes-modal-close {
        margin-bottom: 12px;
        pointer-events: auto;
    }

    body.notes-modal-open .notes-card-wrapper {
        width: 100%;
        max-width: 320px;
        pointer-events: auto;
    }

    body.notes-modal-open .notes-card-container {
        position: relative;
        width: 100%;
        max-width: 320px;
        height: min(calc(100vh - 240px), 550px);
        max-height: min(calc(100vh - 240px), 550px);
        min-height: 450px;
        margin: 0 auto 24px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    body.notes-modal-open .notes-card-yellow-svg-wrapper {
        display: none;
    }

    body.notes-modal-open .notes-card-svg-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: rotate(0deg);
        z-index: 1;
        overflow: hidden;
    }

    body.notes-modal-open .notes-card-yellow-svg {
        display: none;
    }

    body.notes-modal-open .notes-card-svg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    body.notes-modal-open .notes-card-content {
        position: relative;
        padding: 37px 35px;
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
        pointer-events: auto;
        z-index: 2;
    }

    body.notes-modal-open .notes-text {
        flex: 1;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
        min-height: 0;
        max-height: 100%;
        -webkit-overflow-scrolling: touch;
    }

    body.notes-modal-open .notes-text.centered {
        align-items: center;
    }

    .contributions-grid {
        gap: 12px;
    }

    .contribution-card {
        height: auto;
        min-height: 75px;
        padding: 12px;
    }

    .contribution-name {
        font-size: 18px;
    }

    .contribution-gift-name {
        font-size: 13px;
        margin-top: 3px;
    }

    .contribution-gift-name i {
        font-size: 11px;
    }

    .contribution-amount {
        font-size: 18px;
    }

    .notes-text p {
        font-size: 18px;
    }

    body.notes-modal-open .notes-text p {
        color: white;
        text-align: center;
        width: 100%;
    }

    body.notes-modal-open .notes-signature {
        text-align: right;
        flex-shrink: 0;
        margin-top: 16px;
        padding-bottom: 4px;
        max-width: 100%;
        min-width: 0;
    }

    body.notes-modal-open .notes-signature p {
        font-size: 22px;
        color: white;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }

    body.notes-modal-open .notes-navigation {
        margin-top: 24px;
        pointer-events: auto;
    }
}

/* ################################################# ACCOUNT SETTINGS PAGE ###################################################### */

.account-settings-container {
    display: flex;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    background: white;
}

/* Left Sidepane */
.account-sidepane {
    width: 250px;
    background: white;
    border-right: 1px solid #e0e0e0;
    padding: 20px 0;
    flex-shrink: 0;
}

.account-nav {
    display: flex;
    flex-direction: column;
}

.account-nav-item {
    padding: 16px 24px;
    color: #2c3e50;
    text-decoration: none;
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.account-nav-item:hover {
    background-color: #f5f5f5;
    color: #446729;
}

.account-nav-item.active {
    background-color: #e8f4e8;
    color: #446729;
    border-left-color: #446729;
    font-weight: 600;
}

/* Main Content Area */
.account-main-content {
    flex: 1;
    padding: 40px 60px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.account-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.account-actions {
    display: flex;
    gap: 12px;
}

.btn-cancel,
.btn-save {
    padding: 10px 24px;
    border-radius: 6px;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #446729;
    border: 1px solid #e0e0e0;
}

.btn-cancel:hover {
    background-color: #e8e8e8;
}

.btn-save {
    background-color: #446729;
    color: white;
}

.btn-save:hover {
    background-color: #355320;
}

.btn-save:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

/* Account Sections */
.account-section {
    animation: fadeIn 0.3s ease;
    background-color: #fafafa;
    padding: 32px;
    border-radius: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.section-subtitle {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 32px 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.form-group label {
    min-width: 180px;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    padding-top: 12px;
    flex-shrink: 0;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.form-group .form-input-wrapper .form-input.error,
.form-group .form-input.error,
.form-group .form-input-wrapper .form-select.error,
.form-group .form-select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group .form-input-wrapper {
    flex: 1;
}

.form-group .form-input-wrapper .form-input,
.form-group .form-input-wrapper .form-select,
.form-group .form-select {
    width: 100%;
}

.form-group .form-input-wrapper .form-input,
.form-group .form-input-wrapper .form-select,
.form-group .form-input,
.form-group .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group .form-input-wrapper .form-input:focus,
.form-group .form-input-wrapper .form-select:focus,
.form-group .form-input:focus,
.form-group .form-select:focus {
    outline: none;
    border-color: #446729;
    box-shadow: 0 0 0 3px rgba(68, 103, 41, 0.1);
}

.form-select {
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group .form-input-wrapper .form-input::placeholder,
.form-group .form-input::placeholder {
    color: #bdc3c7;
}

.form-group .form-input-wrapper .form-input[readonly],
.form-group .form-input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #7f8c8d;
}

.form-group .form-input-wrapper .form-input[readonly]:focus,
.form-group .form-input[readonly]:focus {
    border-color: #e0e0e0;
    box-shadow: none;
}

.field-hint {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 4px;
    font-style: italic;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.phone-code-display {
    padding: 12px 16px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
}

.phone-number {
    flex: 1;
}

/* Form Row (for side-by-side fields) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-row .form-group {
    margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-settings-container {
        flex-direction: column;
        margin-top: 60px;
    }

    .account-sidepane {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 0;
    }

    .account-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .account-nav-item {
        padding: 12px 20px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .account-nav-item.active {
        border-left: none;
        border-bottom-color: #446729;
    }

    .account-main-content {
        padding: 24px 20px;
    }

    .account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .account-title {
        font-size: 24px;
    }

    .account-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-cancel,
    .btn-save {
        width: 100%;
    }

    .form-group {
        flex-direction: column;
        gap: 8px;
    }

    .form-group label {
        min-width: auto;
        padding-top: 0;
        margin-bottom: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .form-row .form-group {
        margin-bottom: 20px;
    }

    .form-row:last-child .form-group:last-child {
        margin-bottom: 0;
    }

    .phone-input-group {
        flex-direction: row;
    }

    .phone-code-display {
        min-width: 50px;
    }

    .account-section {
        padding: 24px 20px 0 20px;
        margin-bottom: 0;
    }

    .account-section:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .account-section .form-group:last-child,
    .account-section .form-row:last-child {
        margin-bottom: 0;
    }

    .account-settings-container {
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 0;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    .account-main-content {
        padding: 24px 20px 0 20px;
        margin-bottom: 0;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group:last-child {
        margin-bottom: 0;
    }

    .form-row:last-child {
        margin-bottom: 0;
    }

    .form-row:last-child .form-group {
        margin-bottom: 0;
    }

    #account-settings-form {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .section-subtitle {
        margin-bottom: 20px;
    }

    /* Settlements table mobile styles */
    .settings-table-wrapper {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        width: calc(100% + 40px);
    }

    .settings-table {
        min-width: 650px; /* Slightly wider on mobile for better readability */
    }

    .settings-table th,
    .settings-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .settings-table th {
        white-space: nowrap;
    }
}

/* Settlements table (account settings) */
.settings-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.settings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    min-width: 600px; /* Ensure table maintains minimum width for readability */
}

.settings-table th,
.settings-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: #2c3e50;
}

.settings-table thead th {
    background: #f5f5f5;
    color: #446729;
    font-weight: 600;
}