/* Base Styles */
@import '../variables.css';
@import '../responsive.css';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 3rem;
  }
}

/* ==========================
   Feedback Page - Layout
   ========================== */
.feedback-page {
  padding: 10rem 0 4rem;
  background: linear-gradient(180deg, #f8fafc 0, #fff 40%);
}

.feedback-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-100);
}

.feedback-card h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-weight: 800;
}

.feedback-card .intro {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* ==========================
   Form Controls
   ========================== */
.form-row {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-row label {
  font-weight: 600;
  color: var(--gray-800);
}

.form-input,
.form-textarea,
select {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.8rem;
  background: #fff;
  color: var(--gray-800);
  font-size: 0.98rem;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-input:focus,
.form-textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 94, 26, 0.12);
}

.form-textarea {
  resize: vertical;
}

.hint {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: -0.15rem;
}

.counter {
  font-size: 0.85rem;
  color: var(--gray-500);
  text-align: right;
}

.checkbox-row input {
  margin-right: 0.5rem;
}

.error {
  color: #b91c1c;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.req {
  color: #b91c1c;
}

/* Severity segmented control */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.5rem;
  align-items: center;
  border: 0;
  padding: 0;
  margin: 0;
}

.segmented legend {
  grid-column: 1 / -1;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.segmented input[type="radio"] {
  position: absolute;
  left: -9999px;
}

.segmented label {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  cursor: pointer;
}

.segmented input[type="radio"]:checked + label {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/* Attachments preview */
.preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.preview-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.preview-remove {
  background: none;
  border: none;
  color: #b91c1c;
  cursor: pointer;
}

/* Actions */
.form-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(224, 94, 26, 0.28);
  font-weight: 600;
}

.btn-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Toast styles removed */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Button Styles */
.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(224, 94, 26, 0.3);
}

.btn-primary:hover {
  background-color: rgba(224, 94, 26, 0.9);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--secondary);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  border: 2px solid var(--secondary);
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 1rem;
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--secondary);
  transition: all 0.3s ease;
  text-align: center;
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--white);
}

.full-width {
  width: 100%;
}

/* Utility Classes */
.text-dark-blue {
  color: var(--secondary);
}

.text-orange {
  color: var(--primary);
}

.section-spacer {
  height: 2.5rem;
  background-color: var(--white);
}

@media (min-width: 768px) {
  .section-spacer {
    height: 5rem;
  }
}

/* Animation */
.animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}

.animate-item.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar and mobile menu styles are inherited from landing.css.
   Remove local overrides to ensure identical behavior and breakpoints. */
/* Ensure navbar stays single-line like landing (defensive override) */
.navbar nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

/* Hide desktop sections on mobile by default (match landing) */
.desktop-menu { display: none; }
.desktop-buttons { display: none; }

@media (min-width: 1210px) {
  .desktop-menu { display: flex; }
  .desktop-buttons { display: flex; }
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -0.25rem;
}

.footer-logo-icon i {
  color: var(--secondary);
  font-size: 2rem;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  max-width: 20rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--white);
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--white);
}

.contactinfo li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .copyright {
    margin-bottom: 0;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

@media (min-width: 1024px) {
  .navbar nav {
    max-width: 1500px;
    margin: 0 auto;
  }
}