/* Ocean Animation Styles */
.ocean-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  z-index: 1000;
  transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #1a3f5c; /* Darker blue base */
  pointer-events: none;
}

.ocean-container.active {
  height: 100%;
  pointer-events: all;
}

.ocean-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to bottom, rgba(26, 63, 92, 0.9) 0%, rgba(30, 83, 114, 0.95) 40%, rgba(17, 55, 89, 1) 100%);
  opacity: 0;
  transition: opacity 2s ease;
}

.ocean-container.active .ocean-overlay {
  opacity: 1;
}

.waves-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Increased height for more visible waves */
    min-height: 250px;
    max-height: 450px;
    z-index: 999; /* Below overlay but above base */
}

.waves-svg path {
    fill-rule: evenodd;
    transition: fill 0.3s ease;
}

/* Bubble styles */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(93, 169, 221, 0.2));
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Special styles for rising edge bubbles */
.rising-bubble {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(147, 198, 235, 0.3));
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.7), 0 0 12px rgba(255, 255, 255, 0.3);
  z-index: 1002; /* Appear above other elements */
}

/* Rising animation glow effect */
.ocean-container.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, 
    rgba(93, 169, 221, 0),
    rgba(255, 255, 255, 0.8),
    rgba(93, 169, 221, 0)
  );
  box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.3);
  animation: glow-pulse 1.5s ease-in-out;
  opacity: 0;
}

@keyframes glow-pulse {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* Thank you message */
.thank-you-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  text-align: center;
  color: white;
  opacity: 0;
  transition: opacity 1s ease, transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1001;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
}

.thank-you-message h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.thank-you-message p {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.ocean-container.active .thank-you-message {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.thank-you-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 101;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.thank-you-overlay.active {
  opacity: 1;
}

.thank-you-card {
  background-color: white;
  padding: 40px 60px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
  transition-delay: 0.4s;
}

.thank-you-overlay.active .thank-you-card {
  transform: translateY(0);
  opacity: 1;
}

.checkmark {
  display: inline-block;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: #5DA9DD;
  position: relative;
}

.checkmark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 15px;
  border-left: 4px solid white;
  border-bottom: 4px solid white;
  transform: translate(-50%, -60%) rotate(-45deg);
}

.thank-you-title {
  font-size: 28px;
  color: #3A5F8A;
  margin-bottom: 15px;
  font-weight: bold;
}

.bubble-animate {
  opacity: 1;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100vh) scale(0);
    opacity: 0;
  }
} 