/* =========================================================================
   SYSTEM PAGES & CONTACT STYLES - VIDDOW.COM
   ========================================================================= */

/* Layout Wrapper & Main Content cho System Pages */
.tool-layout-wrapper.system-layout-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 2px 0 60px;
  position: relative;
  box-sizing: border-box;
}

.main-content.system-main-content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 0;
  box-sizing: border-box;
}

/* System Pages (About, Terms, Privacy, FAQ, Docs) */
.system-page-wrapper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.system-page-wrapper h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Bottom Ad Banner cho System Pages */
.system-bottom-ad {
  width: 100%;
  max-width: 100%;
  margin: 16px auto 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.system-bottom-ad .ad-slot-group-container,
.system-bottom-ad .ad-slot-wrapper {
  max-width: 100%;
  box-sizing: border-box;
}

/* Editorial Meta Bar */
.blog-meta-bar,
.system-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.blog-meta-item,
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-meta-dot,
.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted, #64748b);
  display: inline-block;
}

/* GEO Definition Callout Block */
.geo-callout {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.04));
  border-left: 3px solid var(--primary, #3b82f6);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0 36px;
  font-size: 16.5px;
  line-height: 1.75;
  color: #e2e8f0;
}

.geo-callout strong {
  color: #ffffff;
  font-weight: 700;
}

.geo-callout-badge {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 8px;
}

/* Editorial Lead Paragraph */
.editorial-lead {
  font-size: 18.5px;
  line-height: 1.8;
  color: #f1f5f9;
  font-weight: 450;
  margin-bottom: 28px;
}

.system-content {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.85;
}

.system-content h2 {
  font-size: 24px;
  font-weight: 750;
  margin: 44px 0 16px;
  color: #ffffff;
  letter-spacing: -0.015em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.system-content h3 {
  font-size: 19px;
  font-weight: 650;
  margin: 32px 0 12px;
  color: #93c5fd;
  letter-spacing: -0.01em;
}

.system-content p {
  margin-bottom: 20px;
}

.system-content ul,
.system-content ol {
  margin: 18px 0 26px 20px;
  padding-left: 12px;
}

.system-content li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.system-content li strong {
  color: #f8fafc;
}

.system-content blockquote {
  margin: 32px 0;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #cbd5e1;
}

.system-content blockquote p:last-child {
  margin-bottom: 0;
}

.system-content a {
  color: #60a5fa;
  text-decoration: none;
  border-bottom: 1px solid rgba(96, 165, 250, 0.3);
  transition: all 0.2s ease;
}

.system-content a:hover {
  color: #93c5fd;
  border-bottom-color: #93c5fd;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 1360px) {
  .main-content.system-main-content {
    max-width: 820px;
    padding: 0 16px 40px;
  }
}

@media (max-width: 860px) {
  .system-page-wrapper {
    padding: 32px 24px;
    margin: 0 auto 24px;
    border-radius: 16px;
  }

  .system-page-wrapper h1 {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .main-content.system-main-content {
    padding: 0 12px 32px;
  }

  .system-page-wrapper {
    padding: 24px 16px;
    margin: 0 auto 20px;
    border-radius: 14px;
  }

  .system-page-wrapper h1 {
    font-size: 23px;
    line-height: 1.3;
  }

  .editorial-lead {
    font-size: 16px;
    line-height: 1.7;
  }

  .geo-callout {
    padding: 16px;
    font-size: 15px;
    line-height: 1.65;
  }

  .system-content h2 {
    font-size: 20px;
    margin-top: 32px;
  }

  .system-content h3 {
    font-size: 17px;
    margin-top: 24px;
  }
}

/* =========================================================================
   CONTACT PAGE STYLES (AZ2PDF COMPATIBLE STANDARD)
   ========================================================================= */

.contact-page-wrapper {
  max-width: 1040px;
  margin: 40px auto 80px;
  padding: 0 16px;
}

/* Contact Hero */
.contact-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.contact-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.contact-subtitle {
  font-size: 16px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.65;
  margin-bottom: 18px;
}

.contact-response-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 16px;
  border-radius: 9999px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Contact Grid */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.contact-card {
  background: var(--bg-card, #111827);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.4);
}

/* Form Styles */
.form-card {
  position: relative;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.form-label .required {
  color: #f43f5e;
}

.label-with-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-counter {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  color: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: rgba(15, 23, 42, 0.85);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.field-error {
  font-size: 12.5px;
  color: #f43f5e;
  margin-top: 6px;
  min-height: 16px;
}

.captcha-group {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

#turnstileContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 65px;
}

#turnstileContainer > * {
  margin-left: auto !important;
  margin-right: auto !important;
}

.captcha-group .field-error {
  text-align: center;
  width: 100%;
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  text-align: center;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  margin: 0 auto;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cooldown-notice {
  font-size: 13px;
  color: #fbbf24;
  text-align: center;
}

/* Alert Boxes */
.contact-alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.contact-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Success Card */
.contact-success-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-card, #111827);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 40px -12px rgba(16, 185, 129, 0.15);
  animation: successPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPopIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
}

.success-title {
  font-size: 24px;
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 12px;
}

.success-desc {
  font-size: 15.5px;
  color: var(--text-muted, #94a3b8);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Sidebar Styles */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-heading {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-label {
  font-size: 12.5px;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.info-value {
  font-size: 14.5px;
  color: #ffffff;
  font-weight: 500;
}

.email-link {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.15s ease;
}

.email-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Trust Badges */
.trust-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.trust-desc {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
}

/* FAQ Accordion Section */
.contact-faq-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-section-title {
  font-size: 24px;
  font-weight: 750;
  color: #ffffff;
  text-align: center;
  margin-bottom: 28px;
}

.contact-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--bg-card, #111827);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.accordion-item.open {
  border-color: rgba(59, 130, 246, 0.35);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 650;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

.accordion-trigger:hover {
  color: #60a5fa;
}

.accordion-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--text-muted, #94a3b8);
}

.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
  color: #60a5fa;
}

.accordion-panel {
  padding: 0 22px 20px;
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-title {
    font-size: 26px;
  }

  .contact-card {
    padding: 24px 20px;
  }
}
