/**
 * Feedback Page Styles
 * A clean, black-and-white design for the Flecks feedback page
 */

/* Feedback Page Styles */
:root {
  --primary-color: #000;
  --accent-color: #3f72af;
  --light-bg: #f8f9fa;
  --text-color: #333;
  --light-text: #505050;
  --border-color: #ddd;
  --error-color: #e63946;
  --success-color: #2a9d8f;
  --transition-speed: 0.3s;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --header-height: 60px; /* Matching the main app's header height */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background-color: white;
  box-shadow: var(--shadow);
  height: var(--header-height);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.back-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
}

.back-link:hover {
  opacity: 0.8;
}

/* Main Container */
.feedback-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* About Section */
.about-section {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem;
  margin-bottom: 2rem;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.about-content p {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 1rem;
}

.cta-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all var(--transition-speed) ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
  transform: translateY(0);
}

/* Form Section */
.form-section {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem;
  display: none; /* Initially hidden, shown with JS */
  animation: fadeIn 0.5s ease;
}

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

.form-container h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.required {
  color: var(--error-color);
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--transition-speed) ease;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(63, 114, 175, 0.2);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  margin-top: 2rem;
}

.submit-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  width: 100%;
}

.submit-button:hover {
  background-color: #111;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

/* Checkbox Styles */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.checkbox-input {
  margin-top: 0.3rem;
  margin-right: 0.75rem;
  width: auto;
  min-width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-color);
  cursor: pointer;
}

.checkbox-label:hover {
  color: var(--accent-color);
}

/* Thank You Section */
.thank-you-section {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.thank-you-content {
  max-width: 500px;
  margin: 0 auto;
}

.check-icon {
  color: var(--success-color);
  margin-bottom: 1.5rem;
}

.thank-you-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.thank-you-content p {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 2rem;
}

.another-response-button {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.another-response-button:hover {
  background-color: rgba(63, 114, 175, 0.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--light-text);
  font-size: 0.9rem;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .about-section, .form-section, .thank-you-section {
    padding: 2rem;
  }
  
  .about-content h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1rem;
  }
  
  .about-section, .form-section, .thank-you-section {
    padding: 1.5rem;
  }
}

/* Form validation visual cues */
input:invalid, select:invalid, textarea:invalid {
  border-color: var(--error-color);
}

/* Loading state for button */
.submit-button.loading {
  background-color: #555;
  cursor: not-allowed;
  position: relative;
  color: transparent;
}

.submit-button.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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