/* Custom properties / design tokens */
:root {
  --color-primary: #F9D99E;
  --color-background: #FFF9F0;
  --color-accent: #F4A261;
  --color-text: #5C4B3A;
  --color-border: #D9C5A7;
  --color-card-bg: rgba(255, 255, 255, 0.75);
  
  --font-family: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --box-shadow: 0 10px 30px rgba(92, 75, 58, 0.08);
  --border-radius: 20px;
}

/* CSS Reset & General styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
}

/* Grid lines overlay (graph paper simulation) */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(142, 78, 20, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(142, 78, 20, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: -1;
}

/* App container */
.app-container {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Header section */
.header {
  text-align: center;
  margin-bottom: 8px;
  animation: fadeInDown 0.8s ease-out;
}

.app-logo {
  font-size: 3.5rem;
  margin-bottom: 8px;
  display: inline-block;
  animation: float 4s ease-in-out infinite;
}

.app-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #8E4E14;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.app-tagline {
  font-size: 1.05rem;
  color: var(--color-accent);
  font-weight: 500;
}

/* Navigation tabs */
.nav-tabs {
  display: flex;
  background-color: rgba(217, 197, 167, 0.25);
  padding: 6px;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 500px;
  gap: 4px;
  box-shadow: inset 0 2px 5px rgba(92, 75, 58, 0.05);
  animation: fadeIn 0.8s ease-out;
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-family);
}

.tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
  color: #8E4E14;
}

.tab-btn.active {
  background-color: white;
  color: #8E4E14;
  box-shadow: 0 4px 10px rgba(142, 78, 20, 0.08);
}

/* Content card (Glassmorphic sheet) */
.content-card {
  width: 100%;
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--box-shadow);
  min-height: 400px;
  position: relative;
  animation: fadeInUp 0.8s ease-out;
}

/* Tab content visibility */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease-out;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Common text items */
.section-title {
  font-size: 1.5rem;
  color: #8E4E14;
  margin-bottom: 16px;
  border-bottom: 2px dashed rgba(217, 197, 167, 0.4);
  padding-bottom: 12px;
}

.section-intro {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 28px;
  color: rgba(92, 75, 58, 0.85);
}

.last-updated {
  font-size: 0.85rem;
  color: #A38C72;
  margin-top: -10px;
  margin-bottom: 24px;
}

/* Forms styling */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease;
}

.feedback-form.hidden {
  display: none;
}

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

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group label .required {
  color: #E07A5F;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-family);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  font-family: var(--font-family);
  background: linear-gradient(135deg, #F4A261, #E07A5F);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(224, 122, 95, 0.2);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 122, 95, 0.3);
  filter: brightness(1.05);
}

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

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

/* Success layout */
.success-toast {
  text-align: center;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-toast.hidden {
  display: none;
}

.success-icon {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  background-color: #C2E8C9;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #9FDCA9;
  box-shadow: 0 4px 10px rgba(162, 220, 169, 0.2);
}

.success-toast h3 {
  color: #2E7D32;
  font-size: 1.4rem;
}

.success-toast p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
  color: rgba(92, 75, 58, 0.8);
}

.reset-btn {
  font-family: var(--font-family);
  background-color: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.reset-btn:hover {
  background-color: white;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Policies reading style */
.policy-body {
  line-height: 1.75;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: rgba(92, 75, 58, 0.9);
}

.policy-body h3 {
  font-size: 1.15rem;
  color: #8E4E14;
  margin-top: 14px;
  border-left: 4px solid var(--color-accent);
  padding-left: 10px;
}

.policy-body ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-body li strong {
  color: #8E4E14;
}

/* Footer Section */
.footer {
  text-align: center;
  font-size: 0.85rem;
  color: #A38C72;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  body {
    padding: 20px 12px;
  }
  .content-card {
    padding: 24px 16px;
  }
  .tab-btn {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
  .app-title {
    font-size: 1.8rem;
  }
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

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

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

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

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
