/* Reset și variabile */
:root {
  --color-bg: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-card: #ffffff;
  --color-primary: #1e3a8a;
  --color-primary-light: #2563eb;
  --color-primary-hover: #1e40af;
  --color-primary-glow: rgba(30, 58, 138, 0.1);
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #0f172a;
  --border-color: #e2e8f0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  gap: 2rem;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text-light);
}

.brand-logo {
  height: 45px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.btn-header {
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-header:hover {
  background: var(--color-primary-hover);
}

/* Hero Section */
.hero {
  background: var(--color-primary);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.95;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.5;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-weight: 500;
}

.btn-primary:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 1.5rem auto 0;
  line-height: 1.7;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
  box-shadow: var(--shadow);
}

.faq-item:hover {
  border-color: var(--color-primary);
}

.faq-item[aria-expanded="true"] {
  border-color: var(--color-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-light);
  font-family: inherit;
  transition: all 0.2s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-item[aria-expanded="true"] .faq-question {
  color: var(--color-primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.faq-item[aria-expanded="true"] .faq-answer {
  max-height: 500px;
  padding: 0 1.75rem 1.5rem;
}

.faq-answer p {
  color: var(--color-text-muted);
  line-height: 1.8;
  padding-top: 0.75rem;
  font-size: 0.98rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: var(--color-bg-light);
}

.feedback-form-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
}

/* Stilizare pentru formularul Zammad */
#zammad-feedback-form {
  max-width: 100%;
}

#zammad-feedback-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

#zammad-feedback-form label {
  font-weight: 500;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

#zammad-feedback-form input[type="text"],
#zammad-feedback-form input[type="email"],
#zammad-feedback-form textarea,
#zammad-feedback-form select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  transition: all 0.2s ease;
  line-height: 1.5;
}

#zammad-feedback-form input[type="text"]:focus,
#zammad-feedback-form input[type="email"]:focus,
#zammad-feedback-form textarea:focus,
#zammad-feedback-form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

#zammad-feedback-form textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

#zammad-feedback-form button[type="submit"],
#zammad-feedback-form .submit-button {
  background: var(--color-primary);
  color: #fff;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
  align-self: flex-start;
  margin-top: 0.5rem;
}

#zammad-feedback-form button[type="submit"]:hover,
#zammad-feedback-form .submit-button:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.25);
}

#zammad-feedback-form button[type="submit"]:active,
#zammad-feedback-form .submit-button:active {
  transform: translateY(0);
}

/* Stilizare pentru input file (Choose Files) */
#zammad-feedback-form input[type="file"] {
  display: none;
}

#zammad-feedback-form label[for*="file"],
#zammad-feedback-form .file-input-label,
#zammad-feedback-form label:has(+ input[type="file"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-bg-light);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 48px;
}

#zammad-feedback-form label[for*="file"]:hover,
#zammad-feedback-form .file-input-label:hover,
#zammad-feedback-form label:has(+ input[type="file"]):hover {
  background: #f1f5f9;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

#zammad-feedback-form label[for*="file"]:active,
#zammad-feedback-form .file-input-label:active,
#zammad-feedback-form label:has(+ input[type="file"]):active {
  background: #e2e8f0;
  border-color: var(--color-primary-hover);
}

/* Stilizare pentru butonul nativ de file upload din Zammad */
#zammad-feedback-form input[type="file"] + label,
#zammad-feedback-form .zammad-form-file-label,
#zammad-feedback-form [class*="file"] label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-bg-light);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 48px;
  width: 100%;
  max-width: 300px;
}

#zammad-feedback-form input[type="file"] + label:hover,
#zammad-feedback-form .zammad-form-file-label:hover,
#zammad-feedback-form [class*="file"] label:hover {
  background: #f1f5f9;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Icon pentru file upload */
#zammad-feedback-form label[for*="file"]::before,
#zammad-feedback-form .file-input-label::before,
#zammad-feedback-form input[type="file"] + label::before {
  content: '📎';
  font-size: 1.2rem;
  margin-right: 0.25rem;
}

/* Stilizare pentru textul "Choose Files" sau similar */
#zammad-feedback-form input[type="file"]::file-selector-button {
  display: none;
}

/* Dacă Zammad folosește un wrapper pentru file input */
#zammad-feedback-form .file-wrapper,
#zammad-feedback-form [class*="attachment"],
#zammad-feedback-form [class*="file"] {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#zammad-feedback-form .file-wrapper label,
#zammad-feedback-form [class*="attachment"] label,
#zammad-feedback-form [class*="file"] label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-bg-light);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 48px;
}

#zammad-feedback-form .file-wrapper label:hover,
#zammad-feedback-form [class*="attachment"] label:hover,
#zammad-feedback-form [class*="file"] label:hover {
  background: #f1f5f9;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 0 2rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand .brand-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
}

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

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Bulă chat flotantă */
.chat-bubble {
  position: fixed !important;
  bottom: 1.5rem !important;
  right: 1.5rem !important;
  z-index: 9999 !important;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.3);
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  visibility: visible !important;
  opacity: 1 !important;
}

.chat-bubble:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.chat-bubble:active {
  transform: scale(0.98);
}

.chat-bubble-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-bubble-icon svg {
  width: 28px;
  height: 28px;
}

.chat-bubble-label {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(-10px);
  background: #1e293b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.chat-bubble:hover .chat-bubble-label {
  opacity: 1;
}

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

  .header-container {
    padding: 1rem 1.5rem;
  }

  .header-nav {
    gap: 1rem;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 3.5rem 0;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
  }

  .hero-stats {
    gap: 2.5rem;
  }

  .faq-section,
  .contact-section {
    padding: 3.5rem 0;
  }

  .feedback-form-container {
    padding: 2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .chat-bubble {
    width: 60px;
    height: 60px;
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .chat-bubble-icon svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-stats {
    gap: 2rem;
    flex-direction: column;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .feedback-form-container {
    padding: 1.5rem;
  }
}

/* Modal pentru verificare status ticket */
.ticket-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.ticket-modal.active {
  display: flex;
}

.ticket-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.ticket-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.ticket-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.ticket-modal-close:hover {
  color: var(--color-text-light);
}

.ticket-modal-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.ticket-modal-description {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.ticket-status-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.ticket-status-form label {
  font-weight: 500;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.ticket-status-form input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.ticket-status-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.ticket-status-result {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: none;
}

.ticket-status-result.show {
  display: block;
}

.ticket-status-result.success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.ticket-status-result.error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.ticket-status-result.info {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
}
