
.lang-switch-btn {
  /* Mobile-first sizing - touch-friendly */
  background: var(--gradient-primary-simple);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: var(--shadow-elevation-low);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  width: 42px;
  height: 36px;
  padding: var(--space-xs);
  font-size: var(--font-size-lg);
  padding-top: 0.04rem;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop sizing for language button */
@media (min-width: 768px) {
  .lang-switch-btn {
    width: 45px;
    height: 35px;
    padding: var(--space-xxs) var(--space-xs) var(--space-sm) var(--space-xs);
    font-size: var(--font-size-xl);
  }
}

/* Language button hover states */
.lang-switch-btn:hover,
.lang-switch-btn:focus {
  background: var(--gradient-primary-simple-reverse);
  color: #fff;
  box-shadow: var(--shadow-elevation-medium);
}

    /* Main Navigation Bar - Mobile first responsive design */
    .site-navbar {
        /* Mobile-first layout */
        width: 100%;
        background: var(--navbar-bg);
        box-shadow: var(--shadow-elevation-low);
        position: fixed;
        top: 0;
        left: 0;
        z-index: var(--z-sticky);
        
        /* Mobile typography */
        font-family: var(--font-primary);
        
        /* Mobile flexbox layout */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-xs) 0; /* Reduced padding on mobile */
        height: var(--navbar-height);
        
        /* Smooth transitions */
        transition: background var(--transition-normal), backdrop-filter var(--transition-normal);
        
        /* Performance optimizations */
        will-change: background;
        backdrop-filter: var(--glass-blur-subtle);
    }
    
    /* Desktop navbar adjustments */
    @media (min-width: 768px) {
        .site-navbar {
            padding: var(--space-sm) 0;
        }
    }

.navbar-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  position: relative;
  width: 100%;
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--navbar-text);
  text-decoration: none;
  padding-bottom: var(--space-xs);
  letter-spacing: 0.3px;
  transition: color var(--transition-fast);
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;
}

.navbar-logo:hover {
  color: var(--color-brand-accent);
}

@media (min-width: 768px) {
  .navbar-logo {
    font-size: var(--font-size-2xl);
    letter-spacing: 0.5px;
    left: var(--space-lg); 
  }
}

.header-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    z-index: 11;
    max-width: calc(100vw - 2 * var(--space-sm));
}

/* Fix for narrow screens to prevent header controls from going off viewport */
@media (max-width: 480px) {
    .header-controls {
        right: var(--space-xs);
        gap: var(--space-xs);
        max-width: calc(100vw - 2 * var(--space-xs));
    }
}

@media (min-width: 768px) {
  .header-controls {
    gap: var(--space-md);
    right: var(--space-md);
  }
}

.auth-section {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

@media (min-width: 768px) {
  .auth-section {
    gap: var(--space-sm);
  }
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #696969;
    text-decoration: none;
    border: 2px solid #696969;
    border-radius: var(--border-radius-xl);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-elevation-low);
    cursor: pointer;
    text-align: center;
    min-height: 44px;
    min-width: 44px;
}

.btn-secondary:hover {
    background: #696969;
    color: white;
    box-shadow: var(--shadow-elevation-medium);
}

@media (min-width: 768px) {
  .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1.125rem; 
  }
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  margin-right: 0.5rem;
  margin-left: 0;
  cursor: pointer;
  color: #2d2d2d;
  order: 2;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1200px) {
  .navbar-toggle {
    display: flex;
  }
}

.navbar-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  padding: var(--space-md);
  box-shadow: var(--shadow-elevation-medium);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 1201px) {
  .navbar-menu {
    display: flex; 
    flex-direction: row;
    gap: 1rem;
    flex: 1;
    justify-content: center;
    align-items: center;
    position: static; 
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
  }
}

.navbar-menu.open {
  display: flex;
}

.navbar-menu a {
  color: #2d2d2d;
  text-decoration: none;
  font-size: 1rem; 
  font-weight: 500;
  padding: var(--space-sm);
  border-radius: var(--border-radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  text-align: left; 
  white-space: nowrap;
  min-height: 44px; 
  display: flex;
  align-items: center;
  will-change: background, color;
}

@media (min-width: 1201px) {
  .navbar-menu a {
    font-size: 0.95rem;
    padding: 0.5rem 0.7rem; 
    text-align: center; 
  }
}

.navbar-menu a:hover,
.navbar-menu a:focus {
  background: linear-gradient(135deg, #696969, #2f4f4f) !important;
  color: #fff !important;
  box-shadow: var(--shadow-elevation-medium);
  border-radius: var(--border-radius-md);
  position: relative;
  z-index: 1;
  transition: background var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar-menu a.active {
  background: linear-gradient(135deg, #696969, #2f4f4f);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(105, 105, 105, 0.18);
  border-radius: 8px;
  position: relative;
  z-index: 1;
  transition: background var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar-toggle:focus {
  outline: 2px solid #4b6cb7;
  border-radius: var(--border-radius-sm);
}

.navbar-toggle-icon {
  display: inline-block;
}

.navbar-menu.show {
  display: flex !important;
}

@media (max-width: 1280px) {
  .navbar-menu a {
    font-size: 0.96rem;
    padding: 0.45rem 0.6rem;
  }
}

@media (max-width: 910px) {
  .navbar-logo {
    font-size: 1.2rem;
  }
  
  .navbar-menu {
    gap: 0;
  }
}

/* Mobile adjustments */
@media (max-width: 800px) {
  .navbar-container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
  }
}

@media (max-width: 480px) {
  .navbar-logo {
    visibility: hidden;
  }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@layer reset, base, components, utilities;

@layer base {
    img, video {
        content-visibility: auto;
        contain-intrinsic-size: 400px 300px;
    }
    
    * {
        box-sizing: border-box;
    }
    
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }
    
    @media (prefers-reduced-motion: no-preference) {
        * {
            animation-fill-mode: both;
            animation-duration: var(--transition-normal);
        }
        
        html {
            scroll-behavior: smooth;
        }
    }
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: #000;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    z-index: 1001;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-elevation-high);
}

.skip-link:focus {
    top: 10px;
    left: 6px;
    width: auto;
    height: auto;
    overflow: visible;
    border-color: #4b6cb7;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    transform: scale(1.05);
    outline: 3px solid #4b6cb7;
    outline-offset: 2px;
}

.skip-link:focus-visible {
    outline: 3px solid #4b6cb7;
    outline-offset: 2px;
}

/* Enhanced Focus Management */
*:focus {
    outline: 2px solid #4b6cb7;
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid #4b6cb7;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px rgba(75, 108, 183, 0.1);
}

@media (prefers-contrast: high) {
    *:focus-visible {
        outline: 4px solid #000;
        outline-offset: 2px;
        background: #ffff00;
        color: #000;
    }
    
    .skip-link:focus {
        background: #ffff00;
        color: #000;
        border-color: #000;
    }
}

.keyboard-nav *:focus {
    outline: 3px solid #4b6cb7;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 8px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #000;
    color: #fff;
    border: 2px solid #4b6cb7;
    border-radius: var(--border-radius-sm);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Inter-fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 60px;
    margin: 0;
    min-height: 100vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    font-display: swap;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

html::-webkit-scrollbar {
    display: none;
}

.memorial-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(47, 79, 79, 0.6) 0%,
        rgba(112, 128, 144, 0.5) 50%,
        rgba(105, 105, 105, 0.6) 100%
    );
    z-index: -1;
}

a:-webkit-any-link {
    text-decoration: none;
}

.memorial-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    width: 100%;
    max-width: 1440px !important;
    margin: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memorial-card {
    background: linear-gradient(135deg, rgb(255 255 255 / 80%) 80%, rgb(217 217 217 / 92%) 100%);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-elevation-high);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    will-change: transform, box-shadow, background;
    isolation: isolate;
}

.memorial-card:hover {
    box-shadow: 0 32px 80px 0 rgba(47,79,79,0.2), 0 8px 24px 0 rgba(105,105,105,0.15), 0 0 0 2px rgba(255,255,255,0.4);
    background: linear-gradient(135deg, rgb(255 255 255 / 85%) 85%, rgb(217 217 217 / 96%) 100%);
    transition: box-shadow var(--transition-normal), background var(--trasition-box-normal);
}

.memorial-header {
    margin-bottom: 2rem;
}

.name, .brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.dates, .tagline {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.cta-section {
    text-align: center;
    margin: 2rem 0;
}

.create-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #696969, #2f4f4f);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-xl);
    font-size: 1.125rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-elevation-medium);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    will-change: transform, box-shadow, background;
    isolation: isolate;
}

.create-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.0) 100%);
    transform: skewX(-20deg);
    transition: left var(--transition-spring);
    pointer-events: none;
}

.create-btn:hover {
    box-shadow: 0 12px 30px rgba(105, 105, 105, 0.3), 0 4px 12px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #2f4f4f, #696969);
}

.create-btn:hover::before {
    left: 120%;
}
@keyframes cta-shine {
    0% { box-shadow: 0 8px 25px rgba(105, 105, 105, 0.3); }
    40% { box-shadow: 0 12px 35px 8px rgba(255,255,255,0.18), 0 8px 25px rgba(105, 105, 105, 0.3); }
    100% { box-shadow: 0 12px 35px rgba(105, 105, 105, 0.4); }
}

.create-btn:active {
    transition: background var(--transition-micro);
}

.continue-btn,
.submit-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #696969, #2f4f4f);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-xl);
    font-size: 1.125rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-elevation-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.continue-btn::before,
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.0) 100%);
    transform: skewX(-20deg);
    transition: left var(--transition-spring);
    pointer-events: none;
}

.continue-btn:hover,
.submit-btn:hover {
    box-shadow: 0 12px 30px rgba(105, 105, 105, 0.3), 0 4px 12px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #2f4f4f, #696969);
}

.continue-btn:hover::before,
.submit-btn:hover::before {
    left: 120%;
}

.continue-btn:active,
.submit-btn:active {
    transition: background var(--transition-micro);
}

.page-transition {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    z-index: var(--z-loading) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all var(--transition-fast) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #333 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    inset: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translate3d(0, 0, 0) !important;
    contain: layout style paint !important;
    isolation: isolate !important;
}

@media (min-width: 768px) {
    .page-transition {
        font-size: 1.1rem;
    }
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
}

.page-transition .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(51, 51, 51, 0.2);
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .page-transition .spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 1.25rem;
    }
}

.page-transition span {
    display: block;
    white-space: nowrap;
    font-family: var(--font-primary);
    text-align: center;
    position: static;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.description {
    margin-top: 1rem;
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

.features {
    display: flex;
    gap: 1rem;
    margin: 3rem 1rem 4rem 1rem;
    padding: 2rem 1rem;
    min-height: 280px;
    height: 280px;
    align-items: stretch;
}

@media (max-width: 820px) {
    .features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0.5rem;
        margin: 2rem 0.5rem 3rem 0.5rem;
        min-height: 240px;
    }
}

.feature {
    flex: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: flex-grow 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.expandable-feature {
    position: relative;
}

.expandable-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image, url('https://via.placeholder.com/400x300/87CEEB/ffffff?text=Background'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-feature:hover::before,
.expandable-feature.expanded::before {
    opacity: 0.6;
}

.feature-content {
    margin-top: 85px;
    background-color: #ffffff59;
    border-radius: 16px;
    backdrop-filter: blur(50px);
    position: relative;
    line-height: 4px;
    padding: 1.5rem 1rem 1rem 1rem;
    z-index: 1;
    display: flex;
    text-align: left;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    transition: text-align 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                align-items 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1280px) {
    .feature-content {
        visibility: hidden;
    }
}

.expandable-feature:hover,
.expandable-feature.expanded {
    flex-grow: 3;
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.expandable-feature:hover .feature-content,
.expandable-feature.expanded .feature-content {
    text-align: left;
    align-items: flex-start;
    backdrop-filter: blur(50px);
}

.features:hover .expandable-feature:not(:hover) .feature-content {
    opacity: 0;
    transition: opacity 0.1s ease;
}

.expandable-feature:not(:hover):not(.expanded) .feature-content {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.expandable-feature:hover .feature-icon,
.expandable-feature.expanded .feature-icon {
    align-self: flex-start;
    margin-bottom: 1rem;
}

.expandable-feature:hover h3,
.expandable-feature.expanded h3 {
    text-align: left;
}

.expandable-feature:hover p,
.expandable-feature.expanded p {
    text-align: left;
}

/* Feature with carousel styles */
.feature-with-carousel {
    position: relative;
    overflow: hidden;
}

.feature-with-carousel::before {
    /* Override the background image with carousel */
    display: none;
}

@media (max-width: 820px) {
    .feature-with-carousel {
        height: 200px;
    }
}

@media (max-width: 820px) {
    .features {
        height: auto;
    }
}

.feature-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    z-index: 0;
}

.carousel-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-image.active {
    opacity: 0.5; /* Default carousel opacity - easily adjustable */
}

/* Increase carousel opacity on hover/expand */
.expandable-feature:hover .carousel-image.active,
.expandable-feature.expanded .carousel-image.active {
    opacity: 0.8; /* Hover carousel opacity - easily adjustable */
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #383838;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.875rem;
    color: #535353;
    line-height: 1.5;
}

.feature:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.10),
        0 3px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Photo container */
.photo-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.memorial-photo {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.memorial-photo:hover {
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Tribute text */
.tribute-text {
    margin-top: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        filter: blur(1px);
    }
    60% {
        opacity: 0.8;
        filter: blur(0);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
    }
    70% {
        opacity: 0.9;
    }
    to {
        opacity: 1;
    }
}


@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale3d(0.5, 0.5, 1) rotate3d(0, 0, 1, -15deg);
        filter: blur(2px);
    }
    50% {
        opacity: 0.7;
        transform: scale3d(1.1, 1.1, 1) rotate3d(0, 0, 1, 5deg);
        filter: blur(0.5px);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, 0deg);
        filter: blur(0);
    }
}

@keyframes floatAnimation {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.8;
    }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(105, 105, 105, 0.3);
        filter: brightness(100%);
    }
    33% { 
        box-shadow: 0 12px 35px rgba(255, 255, 255, 0.25), 0 8px 25px rgba(105, 105, 105, 0.4);
        filter: brightness(110%);
    }
    66% { 
        box-shadow: 0 16px 45px rgba(107, 115, 255, 0.2), 0 8px 25px rgba(105, 105, 105, 0.35);
        filter: brightness(105%);
    }
}

@keyframes shimmer {
    0% { 
        background-position: -200% center;
        transform: skewX(-20deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: skewX(-15deg);
    }
    100% { 
        background-position: 200% center;
        transform: skewX(-20deg);
        opacity: 0;
    }
}

@keyframes morphGradient {
    0%, 100% {
        background: var(--gradient-primary);
    }
    25% {
        background: var(--gradient-accent);
    }
    50% {
        background: var(--gradient-preview);
    }
    75% {
        background: var(--gradient-aurora);
    }
}

@keyframes liquidMotion {
    0%, 100% {
        border-radius: 20px 25px 20px 25px;
        transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, 0deg);
    }
    25% {
        border-radius: 25px 20px 30px 15px;
        transform: scale3d(1.02, 0.98, 1) rotate3d(0, 0, 1, 1deg);
    }
    50% {
        border-radius: 30px 15px 25px 20px;
        transform: scale3d(0.98, 1.02, 1) rotate3d(0, 0, 1, -1deg);
    }
    75% {
        border-radius: 15px 30px 20px 25px;
        transform: scale3d(1.01, 0.99, 1) rotate3d(0, 0, 1, 0.5deg);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale3d(1, 1, 1);
        opacity: 1;
    }
    50% {
        transform: scale3d(1.05, 1.05, 1);
        opacity: 0.8;
    }
}

@keyframes glassShine {
    0% {
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
    }
    50% {
        background: var(--glass-bg-hover);
        backdrop-filter: var(--glass-blur-strong) var(--backdrop-saturate);
    }
    100% {
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
    }
}

/* Parallax Container */
.parallax-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Performance optimizations */
    will-change: transform;
    transform-style: preserve-3d;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
    z-index: -2;
    object-fit: cover;
    object-position: center center;
    /* Performance optimizations */
    will-change: transform;
    transform-style: preserve-3d;
    /* Modern video optimization */
    filter: brightness(1.1) contrast(1.05);
}

body {
    animation: pageLoad 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Ensure stable layout without stacking context issues */
body {
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    body {
        animation: none;
    }
    
    .page-transition,
    .animate-on-scroll,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale {
        animation: none;
        transition: none;
    }
    
    .background-video {
        transform: translate3d(-50%, -50%, 0) !important;
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
}

.animate-slide-left,
.animate-slide-right {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animate-slide-left.animate,
.animate-slide-right.animate {
    opacity: 1;
}

.animate-scale {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animate-scale.animate {
    opacity: 1;
}

.memorial-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.create-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #696969, #2f4f4f);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 25px rgba(105, 105, 105, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
}

.create-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-spring);
}

.create-btn:hover::before {
    left: 100%;
}

.create-btn:hover {
    box-shadow: 0 12px 30px rgba(105, 105, 105, 0.3), 0 4px 12px rgba(255,255,255,0.1);
    background: linear-gradient(135deg, #2f4f4f, #696969);
}

.create-btn:active {
    transition: all var(--transition-micro);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-elevation-high), 0 5px 15px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.features {
    margin-bottom: 3rem;
    overflow: visible;
}

.feature {
    margin-bottom: 1rem;
}

.navbar-menu a {
    color: #2d2d2d;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.7rem;
    border-radius: 4px;
    transition: all var(--transition-normal);
    text-align: center;
    white-space: nowrap;
}


.navbar-menu a:hover,
.navbar-menu a:focus {
    background: linear-gradient(135deg, #696969, #2f4f4f) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(105, 105, 105, 0.3);
    border-radius: 8px;
}

.review-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 0 auto;
    max-width: 800px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    border-radius: 18px;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.review-card:hover::before {
    opacity: 1;
}

.review-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(255, 255, 255, 0.2);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
    50% { 
        opacity: 0.5;
        transform: scale3d(1.05, 1.05, 1);
    }
}

@keyframes shimmerEnhanced {
    0% {
        background-position: -200% center;
        transform: translateX(-100%);
    }
    100% {
        background-position: 200% center;
        transform: translateX(100%);
    }
}

.loading {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    will-change: opacity, transform;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 1660px) {
    .memorial-content {
        max-width: 1280px !important;
    }
}

@media (max-width: 1280px) {
    .memorial-content {
        max-width: 900px !important;
    }
}

@media (max-width: 768px) {
    .memorial-content {
        padding: 1rem;
        max-width: 800px;
    }
    
    .memorial-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .dates {
        font-size: 1rem;
    }
    
    .memorial-photo {
        width: 160px;
        height: 200px;
    }
    
    .tribute-text p {
        font-size: 0.95rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .memorial-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .memorial-photo {
        width: 140px;
        height: 180px;
    }
}

/* Print styles */
@media print {
    .background-video,
    .overlay,
    .page-transition,
    .site-navbar {
        display: none !important;
    }
    
    .memorial-container {
        background: white !important;
    }
    
    .memorial-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
    
    /* Ensure text is readable when printed */
    * {
        color: #000 !important;
        background: transparent !important;
    }
    
    a::after {
        content: " (" attr(href) ")";
    }
}

.memorial-card,
.background-video,
.site-navbar {
    will-change: transform;
}

@container (min-width: 768px) {
    .memorial-card {
        padding: 3rem 2.5rem;
    }
}

@container (max-width: 767px) {
    .memorial-card {
        padding: 2rem 1.5rem;
    }
}

@supports (content-visibility: auto) {
    .reviews-section,
    .footer {
        content-visibility: auto;
        contain-intrinsic-size: 0 500px;
    }
}

@supports (content-visibility: visible) {
    .features {
        content-visibility: visible;
        contain-intrinsic-size: 0 500px;
    }
}

@media (prefers-contrast: high) {
    .memorial-card {
        background: rgba(255, 255, 255, 1);
        border: 2px solid #000;
    }
    
    .name {
        color: #000;
    }
    
    .dates,
    .tribute-text p {
        color: #333;
    }
}

.reviews-section {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(20px);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.reviews-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

.reviews-carousel {
    position: relative;
    margin-bottom: 2rem;
    min-height: 400px;
    transition: height var(--transition-spring);
    overflow: hidden;
}

.review-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: all var(--transition-spring);
    pointer-events: none;
}

.review-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: static;
}

.review-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 0 auto;
    max-width: 800px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.review-content {
    margin-bottom: 2rem;
}

.review-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4a5568;
    font-style: italic;
    text-align: center;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.95rem;
    color: #6b7280;
}

.rating {
    font-size: 1.25rem;
    color: #fbbf24;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(105, 105, 105, 0.3);
    cursor: pointer;
    transition: background var(--transition-normal);
}

.indicator.active,
.indicator:hover {
    background: #696969;
}

.site-footer {
    position: relative;
    z-index: 2;
    background: rgba(47, 79, 79, 0.60);
    backdrop-filter: blur(20px);
    color: white;
    padding: 2.5rem 1rem 1rem;
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.2rem;
    margin-bottom: 1.5rem;
    font-size: 1.08rem;
}

.footer-links-row a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
    padding: 0.2rem 0.5rem;
}

.footer-links-row a:hover,
.footer-links-row a:focus {
    color: #fff;
    text-decoration: none;
}

.footer-social-row {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.footer-social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: #cbd5e0;
    font-size: 1.2rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.footer-social:hover,
.footer-social:focus {
    background: #fff;
    color: #2f4f4f;
    text-decoration: none;
}

.footer-compliance-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    padding-top: 0.5rem;
    flex-wrap: wrap;
}

/* Mobile responsive for footer compliance row */
@media (max-width: 820px) {
    .footer-compliance-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-compliance-row .footer-compliance-link {
        display: block;
        margin: 0.5rem 0;
    }
    
    .footer-compliance-row .footer-anpc-link {
        display: block;
        margin: 0.5rem 0;
    }
}

.footer-compliance-row img{ 
    height: 35px;
    width: auto;
}

.footer-anpc-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    padding-top: 0.5rem;
}

.footer-anpc-row img {
    height: 40px;
    width: auto;
}

.footer-compliance-link {
    color: #cbd5e0;
    height: 35px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.footer-compliance-link:hover,
.footer-compliance-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    text-align: center;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e2e8f0;
    text-align: center;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    text-align: center;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color var(--transition-normal);
    font-size: 0.9rem;
}

.footer-section a:hover,
.footer-section a:focus {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: #cbd5e0;
    font-size: 0.875rem;
}

.faq-content, .contact-content, .about-content, .privacy-content, .pricing-content {
    text-align: left;
    margin: 2rem 0;
}

.faq-item, .about-section, .privacy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-item:last-child, .about-section:last-child, .privacy-section:last-child {
    border-bottom: none;
}

.faq-item h3, .about-section h3, .privacy-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.faq-item p, .about-section p, .privacy-section p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.about-section ul, .privacy-section ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.about-section li, .privacy-section li {
    color: #4a5568;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.contact-method:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.15) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.contact-method h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.contact-method p {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 5px;
    grid-row-gap: 1px;
    gap: 2rem;
    margin: 2rem 0;
}

@media (min-width: 1280px) {

    .pricing-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 1280px) {

    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .pricing-grid {
        display: block;
    }
}

/* Premium card styling */
.pricing-card.premium {
    grid-area: 1 / 2 / 2 / 3;
    position: relative;
    border: 1px solid #00000054 !important;
    box-shadow: 0 8px 25px rgba(73, 73, 73, 0.4) !important;
    transition: box-shadow var(--transition-normal) !important;
}

.pricing-card.premium:hover {
    box-shadow: 0 8px 25px rgba(73, 73, 73, 0.6) !important; 
}

.pricing-card.premium::before {
    content: "POPULAR";
    position: absolute;
    top: -12px;
    right: 20px;
    background: #22c55e;
    color: rgba(0, 0, 0, 0.788);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.pricing-card.optional {
    grid-area: 2 / 1 / 3 / 3;
    border: 1px solid rgba(40, 40, 40, 0.215);
    box-shadow: 0 8px 25px rgba(73, 73, 73, 0.2) !important;
}

.package-options {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.package-options p {
    margin-bottom: 0.5rem;
    color: #4a5568;
    text-align: left;
}

.package-options p:first-child {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Contact Card Styles */
.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.contact-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.contact-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
    opacity: 0.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-method.clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-method.clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.contact-method.clickable:hover::before {
    left: 100%;
}

.contact-method.clickable:active {
    transform: translateY(0px);
}

.contact-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #667eea;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #667eea;
}

.contact-reveal {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.contact-reveal:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.contact-reveal.revealed {
    background: transparent;
    color: #2c3e50;
    padding: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.company-info {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.company-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
}

/* Contact Card Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .contact-header h4 {
        font-size: 1.2rem;
    }
    
    .contact-icon {
        width: 56px;
        height: 56px;
    }
    
    .contact-method {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .contact-methods {
        gap: 1rem;
    }
    
    .contact-method-icon {
        width: 36px;
        height: 36px;
    }
    
    .contact-reveal {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }
}

.pricing-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.pricing-card.featured {
    border-color: #00000044;
    box-shadow: 0 8px 25px rgba(73, 73, 73, 0.16);
    transition: box-shadow var(--transition-normal);
}

.pricing-card.featured:hover {
    box-shadow: 0 8px 25px rgba(73, 73, 73, 0.319);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 1rem;
}

.pricing-card li {
    color: #4a5568;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.pricing-notes {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-notes h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.pricing-notes p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pricing-notes ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.pricing-notes li {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

@media (max-width: 500px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
        padding: 0 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem 1rem;
    }
    
    .package-options {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .pricing-notes {
        padding: 1rem;
        margin-top: 2rem;
    }
    
    .pricing-notes ul {
        margin-left: 1rem;
        padding-right: 0.5rem;
    }
    
    /* Center the CTA buttons */
    .cta-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
        margin: 2rem 0;
    }
    
    .cta-section .create-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 3rem 1rem;
        margin-top: 3rem;
    }
    
    .reviews-header h2 {
        font-size: 2rem;
    }
    
    .reviews-header p {
        font-size: 1rem;
    }
    
    .review-card {
        padding: 2rem 1.5rem;
    }
    
    .review-content p {
        font-size: 1rem;
    }
    
    .review-author {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .rating {
        font-size: 1.125rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .memorial-card {
        animation: none;
        will-change: auto;
    }
    
    .memorial-photo,
    .memorial-card,
    .create-btn,
    .navbar-menu a {
        transition: none;
        will-change: auto;
    }
    
    .feature:nth-child(odd),
    .feature:nth-child(even) {
        animation: none;
    }
}

.templates-showcase {
    display: block;
    margin: 2rem 0;
}

.template-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem; 
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.template-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.template-preview {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    position: relative;
}

.template-background {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.template-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.template-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.template-dates {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.template-quote {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.85;
}

.sunrise-bg {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 25%, #fecfef 75%, #ffc3a0 100%);
}

.zenith-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 75%, #f5576c 100%);
}

.dawn-bg {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 25%, #d299c2 75%, #fef9d7 100%);
}

.night-bg {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #2c5364 75%, #0f3460 100%);
    position: relative;
}

.night-bg::before {
    content: '✦ ✧ ⋆ ✦ ✧ ⋆ ✦ ✧ ⋆';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    z-index: 1;
}

.template-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.template-info p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.template-select-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #696969, #2f4f4f);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    text-align: center;
    width: 100%;
}

.template-select-btn:hover {
    background: linear-gradient(135deg, #2f4f4f, #696969);
    box-shadow: 0 4px 15px rgba(105, 105, 105, 0.3);
}

@media (max-width: 768px) {
    .templates-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .template-preview {
        height: 180px;
    }
    
    .template-content h3 {
        font-size: 1.3rem;
    }
}

.terms-content {
    text-align: left;
    margin: 2rem 0;
}

.terms-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.terms-section p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.terms-section ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.terms-section li {
    color: #4a5568;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.terms-section a {
    color: #4b6cb7;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.terms-section a:hover {
    color: #2f4f4f;
    text-decoration: underline;
}

.terms-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.terms-footer p {
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.terms-footer strong {
    color: #2c3e50;
}

.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.expandable-theme-selector {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 240px;
    height: 240px;
    align-items: stretch;
}

.theme-tab {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    will-change: background, border-color;
    contain: layout style paint;
}

.expandable-theme {
    flex: 1;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: flex-grow 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-theme .theme-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-theme .theme-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    justify-content: center;
    transition: text-align 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                align-items 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-theme:hover {
    flex-grow: 2;
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.expandable-theme:hover .theme-content {
    text-align: left;
    align-items: flex-start;
    padding-left: 1rem;
}

.expandable-theme:hover .theme-icon {
    align-self: flex-start;
    margin-bottom: 1rem;
}

.expandable-theme:hover .theme-name {
    text-align: left;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.expandable-theme:hover .theme-desc {
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
}

.expandable-theme.active {
    flex-grow: 2.5;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 12px 30px rgba(0, 0, 0, 0.2),
        0 6px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.expandable-theme.active .theme-content {
    text-align: left;
    align-items: flex-start;
    padding-left: 1rem;
}

.expandable-theme.active .theme-icon {
    align-self: flex-start;
    margin-bottom: 1rem;
}

.expandable-theme.active .theme-name {
    text-align: left;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.expandable-theme.active .theme-desc {
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
}

.theme-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.theme-tab:hover::before {
    opacity: 1;
}

.theme-tab.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(255, 255, 255, 0.2);
}

.theme-tab:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.15) 100%);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.theme-tab.active::before {
    opacity: 1;
}

.theme-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.theme-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    display: block;
}

.theme-desc {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 400;
    display: block;
}

.memorial-preview-container {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-header {
    text-align: center;
    margin-bottom: 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.preview-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.preview-header p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.preview-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.preview-frame iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 12px;
    background: white;
    display: block;
    margin: 0;
    padding: 0;
}

.preview-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.create-with-theme-btn {
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(75, 108, 183, 0.3);
}

.create-with-theme-btn:hover {
    box-shadow: 0 12px 30px rgba(75, 108, 183, 0.4), 0 4px 15px rgba(24, 40, 72, 0.3);
    background: linear-gradient(135deg, #5a7bc8, #243759);
}

.fullscreen-preview-btn {
    background: linear-gradient(135deg, #6B73FF, #9A8CDB);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    box-shadow: 0 6px 20px rgba(107, 115, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.fullscreen-preview-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-spring);
}

.fullscreen-preview-btn:hover::before {
    left: 100%;
}

.fullscreen-preview-btn:hover {
    background: linear-gradient(135deg, #5A66F0, #8A7BCE);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 16px 40px rgba(107, 115, 255, 0.4), 0 6px 20px rgba(154, 140, 219, 0.3);
}

.feature-item .sunrise-bg {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 25%, #fecfef 75%, #ffc3a0 100%);
}

/* Theme Features Section */
.theme-features {
    margin: 3rem 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.theme-features h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: rgba(228, 228, 228, 0.253);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(22, 22, 22, 0.041);
}

.feature-item:hover {
    box-shadow: var(--shadow-elevation-medium);
    background: rgba(228, 228, 228, 0.479);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item li {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.feature-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4b6cb7;
    font-weight: 600;
}

@media (max-width: 1280px) {
    .theme-selector {
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .expandable-theme-selector {
        flex-direction: column;
        height: auto;
        min-height: auto;
        gap: 1rem;
    }
    
    .expandable-theme {
        flex: none;
        min-height: 100px;
    }
    
    .expandable-theme:hover,
    .expandable-theme.active {
        flex-grow: 1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

@media (max-width: 768px) {
    .theme-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .expandable-theme-selector {
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .theme-tab {
        padding: 1rem 0.75rem;
    }
    
    .expandable-theme .theme-content {
        padding: 0.75rem;
    }
    
    .expandable-theme:hover .theme-content,
    .expandable-theme.active .theme-content {
        padding-left: 0.75rem;
    }
    
    .theme-icon {
        font-size: 1.5rem;
    }
    
    .theme-name {
        font-size: 1rem;
    }
    
    .theme-desc {
        font-size: 0.8rem;
    }
    
    .memorial-preview-container {
        padding: 1.5rem;
    }
    
    .preview-frame iframe {
        height: 400px;
    }
    
    .preview-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .theme-selector {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-frame iframe {
        height: 350px;
    }
}

.contact-form-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form-section h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-form-section > p {
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4b6cb7;
    box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #4b6cb7;
}

.checkbox-label a {
    color: #4b6cb7;
    text-decoration: underline;
}

.checkbox-label a:hover {
    text-decoration: none;
}

.error-message {
    display: block;
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #696969, #2f4f4f);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: 1rem;
    box-shadow: 0 8px 25px rgba(105, 105, 105, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2f4f4f, #696969);
    box-shadow: 0 12px 30px rgba(105, 105, 105, 0.3), 0 4px 12px rgba(255, 255, 255, 0.1);
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-success {
    background: #dcfce7;
    border: 1px solid #22c55e;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.form-success p {
    color: #15803d;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }
}

.back-to-home-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #696969 !important;
    margin-left: 1rem;
    border: 2px solid rgba(105, 105, 105, 0.3);
}

.back-to-home-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: #2f4f4f !important;
    border-color: rgba(47, 79, 79, 0.5);
}

/* Package Selection System Styles */
.package-selection-container {
    margin-bottom: 2rem;
}

.package-selection-container h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.package-selection-description {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.package-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .package-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.package-card {
    position: relative;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.package-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

.package-card.selected {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
}

.package-card.popular {
    border-color: #10b981;
    position: relative;
}

.package-card.popular:hover {
    border-color: #059669;
}

.package-card.popular.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.popular-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.package-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
    margin-left: 1rem;
}

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

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.package-features li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.package-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.package-selection-indicator {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.selection-text {
    font-weight: 600;
    color: #4f46e5;
    font-size: 0.9rem;
}

.package-card.selected .selection-text {
    color: #10b981;
}

/* Package Selection Step 4 specific styles */
.package-selection-step4 {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

/* Order Summary Package Info */
.order-package-info {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.order-package-info h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.selected-package {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid #4f46e5;
}

.selected-package-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.selected-package-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.selected-package-price {
    font-weight: 700;
    color: #4f46e5;
    font-size: 1.1rem;
}

.selected-package-type {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* Additional Services */
.additional-services {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.additional-services h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.service-option {
    margin-bottom: 0.75rem;
}

.service-option:last-child {
    margin-bottom: 0;
}

.service-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.service-option input[type="checkbox"],
.service-option input[type="number"] {
    margin-right: 0.5rem;
}

.service-option input[type="number"] {
    width: 60px;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-align: center;
}

/* Order Total */
.order-total {
    background: #f8fafc;
    border: 2px solid #4f46e5;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.total-price {
    color: #4f46e5;
    font-size: 1.3rem;
}

@media (max-width: 720px) {

    .memorial-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .memorial-content p {
        font-size: 0.8rem;
    }

    .footer-links-row a {
        font-size: 0.8rem;
    }

    .reviews-container .reviews-header h2 {
        font-size: 1.5rem;
    }

    .reviews-carousel .review-slide .review-card .review-content p {
        font-size: 0.85rem;
    }

    .reviews-carousel .review-slide .review-card .review-author .author-info h4 {   
        font-size: 0.85rem;
    }
}

