/* -------------------------------------------------------------
   SMART SIPS HYDRATION-THEMED SUPPORT & FEEDBACK STYLESHEET
   ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Custom Watery/Hydration Color Palette */
  --bg-base: #030814;
  --bg-surface: #0b162c;
  --bg-surface-elevated: #122345;
  --accent: #00e5ff;
  --accent-rgb: 0, 229, 255;
  --accent-hover: #00ffd2;
  --accent-dark: #0077b6;
  --border-color: #1b325f;
  --text-primary: #ffffff;
  --text-secondary: #c0d4ed;
  --text-muted: #6282a5;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  background-image: linear-gradient(180deg, #030814 0%, #061530 50%, #0a2147 100%);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 10;
}

/* Header & Navigation Link */
.back-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  background-color: rgba(11, 22, 44, 0.6);
}

.back-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
  transform: translateX(-3px);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-icon-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.app-title-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: #fff;
}

/* Hydration Intro Section */
.intro-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.intro-section h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.intro-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Solid Watery Feedback Card */
.feedback-card {
  background-color: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4), 
    0 0 30px rgba(0, 229, 255, 0.03); /* subtle liquid glow */
  position: relative;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.feedback-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 
    0 25px 45px rgba(0, 0, 0, 0.5), 
    0 0 35px rgba(0, 229, 255, 0.06);
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.optional-tag {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 0.25rem;
}

.form-control {
  display: block;
  width: 100%;
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Custom Watery Dropdown Style */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1rem;
  padding-right: 3rem;
  cursor: pointer;
}

/* Water Drop Styled Button */
.btn-water {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: var(--bg-base);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  padding: 1rem 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

.btn-water:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.35);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

.btn-water:active {
  transform: translateY(0);
}

/* Sloshing Fluid Chamber (Sending State) */
.fluid-chamber-container {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.fluid-chamber-container.active {
  display: block;
  animation: fadeIn var(--transition-normal) forwards;
}

.fluid-chamber {
  width: 140px;
  height: 260px;
  border: 4px solid var(--accent);
  border-radius: 24px 24px 45px 45px;
  position: relative;
  overflow: hidden;
  background-color: rgba(3, 8, 20, 0.4);
  box-shadow: 
    0 0 25px rgba(0, 229, 255, 0.15), 
    inset 0 0 15px rgba(0, 0, 0, 0.6);
  margin: 0 auto 2.5rem auto;
}

.fluid-water {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%; /* Dynamic height in JS (0 to 100%) */
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent-dark) 100%);
  transition: height 0.15s ease-out;
  box-shadow: inset 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Wavy liquid sloshing top overlay */
.fluid-water::before {
  content: '';
  position: absolute;
  width: 250%;
  height: 25px;
  background: rgba(0, 229, 255, 0.4);
  top: -15px;
  left: -75%;
  border-radius: 38%;
  animation: slosh 3.5s infinite linear;
}

.fluid-water::after {
  content: '';
  position: absolute;
  width: 250%;
  height: 25px;
  background: var(--accent-hover);
  top: -18px;
  left: -50%;
  border-radius: 40%;
  animation: slosh-alt 4s infinite linear;
  opacity: 0.8;
}

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

@keyframes slosh-alt {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

.hydration-percent {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 1rem;
  display: block;
}

.sending-status-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Background Bubbles */
.bubble-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* Bottom Parallax SVG Waves */
.bg-waves {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  min-height: 80px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
}

.editorial-wave {
  animation: wave-move 12s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.editorial-wave:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
  fill: rgba(0, 180, 216, 0.08);
}

.editorial-wave:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
  fill: rgba(0, 119, 182, 0.12);
}

.editorial-wave:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
  fill: rgba(3, 8, 20, 0.4);
}

@keyframes wave-move {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

/* Success & Error Fluid Panels */
.status-panel {
  display: none;
  text-align: center;
  animation: fadeIn var(--transition-slow) forwards;
}

.status-panel.active {
  display: block;
}

.water-check-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(0, 255, 210, 0.1);
  border: 2px solid var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
  margin: 0 auto 2rem auto;
  box-shadow: 0 0 25px rgba(0, 255, 210, 0.2);
}

.water-error-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 62, 108, 0.1);
  border: 2px solid #ff3e6c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff3e6c;
  margin: 0 auto 2rem auto;
  box-shadow: 0 0 25px rgba(255, 62, 108, 0.2);
}

.status-panel h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.status-panel p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem auto;
  font-size: 1rem;
}

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

/* Footer Section styling override */
.support-footer {
  margin-top: auto;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  background-color: rgba(3, 8, 20, 0.8);
  position: relative;
  z-index: 10;
}

.support-footer p {
  max-width: 600px;
  margin: 0 auto 0.5rem auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .back-header {
    margin-bottom: 1.5rem;
  }

  .feedback-card {
    padding: 1.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .form-full {
    grid-column: span 1;
  }

  .form-control {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .intro-section h1 {
    font-size: 2rem;
  }
}
