/* ==========================================================================
   COPSY sagt DANKE! - Design System & Stylesheet
   ========================================================================== */

:root {
  /* Color Palette - HSL Tailored for a calming, medical/academic, premium teal theme */
  --hue: 174;
  --color-primary: hsl(var(--hue), 80%, 26%);       /* Deep Teal */
  --color-primary-light: hsl(var(--hue), 70%, 42%); /* Bright Minty Teal */
  --color-primary-hover: hsl(var(--hue), 85%, 20%);
  --color-accent: hsl(35, 100%, 55%);               /* Warm Golden Accent */
  
  --color-text-main: hsl(210, 24%, 16%);             /* Dark Slate */
  --color-text-muted: hsl(210, 16%, 45%);           /* Medium Slate */
  --color-bg-page: linear-gradient(135deg, hsl(var(--hue), 40%, 97%) 0%, hsl(200, 30%, 95%) 100%);
  --color-bg-card: hsla(0, 0%, 100%, 0.95);
  
  --color-border: hsl(210, 14%, 88%);
  --color-border-focus: hsl(var(--hue), 70%, 42%);
  --color-error: hsl(0, 84%, 60%);
  --color-success: hsl(142, 70%, 45%);
  
  /* Layout & Design Variables */
  --radius-lg: 24px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(15, 118, 110, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 118, 110, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 118, 110, 0.12);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-family-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-title: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family-body);
  color: var(--color-text-main);
  background: var(--color-bg-page);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  overflow-x: hidden;
}

/* Header & Navigation */
.header-nav {
  width: 100%;
  background: var(--color-bg-card);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  padding: 1rem 2rem;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 54px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-title {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

/* Main Layout */
.main-content {
  width: 100%;
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  flex-grow: 1;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid hsla(0, 0%, 100%, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

/* Typography */
h1 {
  font-family: var(--font-family-title);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.8px;
}

.intro-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Width allocations */
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }

/* Custom Inputs with Floating/Transition Labels */
.input-field {
  width: 100%;
  padding: 1.1rem 1rem 0.5rem 1rem;
  font-family: var(--font-family-body);
  font-size: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  outline: none;
  transition: var(--transition-smooth);
  color: var(--color-text-main);
}

.input-label {
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
  transform-origin: left top;
  font-size: 1rem;
}

/* Keep label active when input has value or focus */
.input-field:focus ~ .input-label,
.input-field:not(:placeholder-shown) ~ .input-label {
  transform: translateY(-0.6rem) scale(0.75);
  color: var(--color-primary-light);
  font-weight: 600;
}

.input-field:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 4px hsla(var(--hue), 70%, 42%, 0.12);
}

/* Beautiful Interactive Radio Choices */
.radio-section {
  grid-column: span 12;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.radio-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.radio-cards-container {
  display: flex;
  gap: 1rem;
}

.radio-card {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
  user-select: none;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  background: hsl(var(--hue), 40%, 99%);
}

/* Active card styling */
.radio-card.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: hsl(var(--hue), 40%, 97%);
  box-shadow: var(--shadow-sm);
}

.radio-card.active::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 15px;
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 800;
}

/* Submit Button & Animations */
.submit-btn {
  grid-column: span 12;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
  margin-top: 1rem;
}

.submit-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.3);
}

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

.submit-btn:disabled {
  background: var(--color-text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Footer / Contact Details */
.footer-team {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.footer-subtitle {
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.footer-logo {
  height: 80px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.footer-logo:hover {
  opacity: 1;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  background: hsla(0, 0%, 100%, 0.6);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--color-border);
}

.instagram-link:hover {
  color: #e1306c; /* Instagram Pink Brand Color */
  border-color: rgba(225, 48, 108, 0.3);
  background: #fffdfd;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Success Card View */
.success-view {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 0;
  animation: fadeIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  background: hsl(142, 70%, 95%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.15);
}

.success-checkmark {
  width: 38px;
  height: 38px;
  fill: none;
}

.success-checkmark-circle {
  stroke: var(--color-success);
  stroke-width: 4px;
  opacity: 0.25;
}

.success-checkmark-check {
  stroke: var(--color-success);
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck 0.5s 0.2s ease-out forwards;
}

.success-view h2 {
  font-family: var(--font-family-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.success-view p {
  color: var(--color-text-muted);
  max-width: 450px;
  line-height: 1.6;
}

/* Loading Spinner */
.spinner {
  display: none;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

/* Error/Notification Bar */
.notification-bar {
  display: none;
  grid-column: span 12;
  background: hsl(0, 84%, 96%);
  border: 1px solid hsl(0, 84%, 85%);
  color: hsl(0, 84%, 35%);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  animation: slideDown 0.3s ease-out forwards;
}

/* Keyframes */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

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

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  .main-content {
    margin: 1.5rem auto;
  }
  
  .card {
    padding: 2.25rem 1.5rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .form-grid {
    gap: 1rem;
  }
  
  .col-6 { grid-column: span 12; }
  .col-8 { grid-column: span 12; }
  .col-4 { grid-column: span 12; }
  
  .radio-cards-container {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   Legal Footer Links Styles
   ========================================================================== */
.legal-footer {
  text-align: center;
  margin: 2rem 0 3rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.legal-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.legal-footer a:hover {
  color: var(--color-primary-light);
}

.legal-footer .separator {
  color: var(--color-border);
}

/* ==========================================================================
   Redirect Notice Styles (Payback Redirect Screen)
   ========================================================================== */
.redirect-notice {
  text-align: center;
  margin-top: 2rem;
  width: 100%;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.redirect-notice p {
  color: var(--color-primary-light);
  font-weight: 600;
  margin: 0 auto 0.75rem auto !important;
  max-width: 500px;
  text-align: center !important;
  line-height: 1.5;
  width: 100%;
}

.redirect-notice #countdown {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  display: inline;
}

.redirect-notice a {
  display: inline-block;
  font-size: 0.9rem;
  text-decoration: underline;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
  margin: 0.25rem auto 0 auto !important;
  text-align: center !important;
}

.redirect-notice a:hover {
  color: var(--color-primary);
}


