/* =========================================================
   Landing additions on top of the "shahnat_landing" design
   (style.css stays untouched): server-side language links,
   contact form feedback, tracking states, legal rich text.
   ========================================================= */

/* ---------- Skip link ---------- */

.landing-skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 10000;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-gold);
  color: var(--on-gold, #0b1f33);
  font-size: 13px;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.landing-skip-link:focus {
  transform: translateY(0);
}

/* ---------- Language switch (links instead of JS buttons) ---------- */

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ---------- Contact form ---------- */

.landing-honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  inset-inline-start: -9999px;
}

.contact-form {
  position: relative;
}

.landing-form-status {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.landing-form-status[hidden],
.landing-field-error[hidden] {
  display: none;
}

.landing-form-status.is-success {
  color: #1d6b3a;
  background: rgba(46, 160, 90, 0.1);
  border: 1px solid rgba(46, 160, 90, 0.28);
}

.landing-form-status.is-error {
  color: #b42318;
  background: rgba(216, 13, 13, 0.06);
  border: 1px solid rgba(216, 13, 13, 0.22);
}

.landing-field-error {
  display: block;
  margin-top: 8px;
  color: #d80d0d;
  font-size: 13px;
  line-height: 1.5;
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: rgba(216, 13, 13, 0.55);
}

.contact-submit[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* ---------- Tracking ---------- */

.landing-tracking-message {
  margin-top: 16px;
  color: #b42318;
  font-size: 14px;
  line-height: 1.7;
}

.landing-tracking-message--cancelled {
  margin: 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(216, 13, 13, 0.06);
  border: 1px solid rgba(216, 13, 13, 0.2);
}

ol.path-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* The design's inline-styled help bar, as classes. */
.landing-help-bar {
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-radius: 16px;
}

.landing-help-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.landing-help-desc {
  font-size: 15px;
  color: var(--text-white);
}

.landing-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.landing-outline-btn {
  padding: 12px 28px;
  border: 1px solid rgba(200, 155, 90, 0.3);
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.landing-outline-btn:hover,
.landing-outline-btn:focus-visible {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ---------- Legal rich text (admin editor output) ---------- */

.landing-rich-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.9;
}

.landing-rich-text > :first-child {
  margin-top: 0;
}

.landing-rich-text h1,
.landing-rich-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3;
  color: var(--accent-gold-deep, var(--accent-gold));
  margin: 34px 0 12px;
}

.landing-rich-text h3,
.landing-rich-text h4 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.4;
  color: var(--text-white);
  margin: 28px 0 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(229, 188, 122, 0.12);
}

.landing-rich-text h5,
.landing-rich-text h6 {
  font-size: 16px;
  color: var(--text-white);
  margin: 20px 0 8px;
}

.landing-rich-text p {
  margin: 0 0 14px;
}

.landing-rich-text ul,
.landing-rich-text ol {
  margin: 0 0 16px;
  padding-inline-start: 22px;
}

.landing-rich-text ul {
  list-style: disc;
}

.landing-rich-text ol {
  list-style: decimal;
}

.landing-rich-text li {
  margin-bottom: 8px;
}

.landing-rich-text li::marker {
  color: var(--accent-gold);
}

.landing-rich-text a {
  color: var(--accent-gold-deep, var(--accent-gold));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-rich-text strong,
.landing-rich-text b {
  color: var(--text-white);
  font-weight: 700;
}

.landing-rich-text blockquote {
  margin: 0 0 16px;
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--accent-gold);
}

.landing-rich-text hr {
  border: 0;
  border-top: 1px solid rgba(229, 188, 122, 0.12);
  margin: 28px 0;
}

.landing-rich-text img {
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
}

.landing-rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}

.landing-rich-text th,
.landing-rich-text td {
  padding: 10px 12px;
  border: 1px solid rgba(229, 188, 122, 0.18);
  text-align: start;
}

/* ---------- LTR touches (the design is RTL-first) ---------- */

html[dir="ltr"] .legal-main,
html[dir="ltr"] .contact-page-head,
html[dir="ltr"] .contact-form {
  text-align: left;
}

html[dir="rtl"] .legal-main,
html[dir="rtl"] .contact-page-head,
html[dir="rtl"] .contact-form {
  text-align: right;
}

@media (max-width: 768px) {
  .landing-help-bar {
    padding: 22px;
  }
}
