/* =========================================================
   ZigZag MCN Application — refined RTL frontend v5
   ========================================================= */

body.zigzag-mcn-page .entry-title,
body.zigzag-mcn-page .main_title,
body.zigzag-mcn-page .et_post_meta_wrapper,
body.zigzag-mcn-page .post-meta,
body.zigzag-mcn-page #sidebar,
body.zigzag-mcn-page .sidebar,
body.zigzag-mcn-page .widget-area { display: none !important; }

body.zigzag-mcn-page #left-area,
body.zigzag-mcn-page #main-content .container,
body.zigzag-mcn-page .et_pb_post,
body.zigzag-mcn-page .entry-content {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.zigzag-mcn-page #main-content .container:before { display: none !important; }

.zz-mcn {
  --zz-bg: #f5f6f7;
  --zz-card: #ffffff;
  --zz-text: #15171a;
  --zz-muted: #6f747c;
  --zz-border: #d9dde3;
  --zz-border-soft: #eceff3;
  --zz-primary: #050505;
  --zz-primary-hover: #202124;
  --zz-error: #d92d20;
  --zz-success: #12b76a;
  --zz-radius: 24px;
  --zz-shadow: 0 22px 55px rgba(18, 25, 38, 0.10);
  direction: rtl;
  text-align: right;
  font-family: Tahoma, "Vazirmatn", "IRANSans", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f8f9fa 0%, var(--zz-bg) 100%);
  color: var(--zz-text);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 56px 18px;
  box-sizing: border-box;
  min-height: 620px;
}

.zz-mcn *, .zz-mcn *::before, .zz-mcn *::after { box-sizing: border-box; }

.zz-card {
  background: var(--zz-card);
  border: 1px solid var(--zz-border-soft);
  border-radius: var(--zz-radius);
  box-shadow: var(--zz-shadow);
  width: min(100%, 760px);
  padding: 48px 64px 52px;
  text-align: center;
}

.zz-screen { display: none; }
.zz-screen--active { display: block; animation: zz-fade 0.22s ease; }
@keyframes zz-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.zz-logo { margin-bottom: 18px; }
.zz-logo__image { display: block; width: 50px; height: 50px; object-fit: contain; margin: 0 auto 6px; }
.zz-logo__placeholder {
  width: 56px; height: 56px; margin: 0 auto; border-radius: 16px;
  background: #0b0d12; box-shadow: 0 10px 22px rgba(0,0,0,0.16);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.4px; color: #ffffff;
}

.zz-title { font-size: 28px; font-weight: 800; margin: 0 0 8px; line-height: 1.55; letter-spacing: -0.25px; text-align: center; }
.zz-subtitle { font-size: 15px; font-weight: 400; color: var(--zz-muted); margin: 0 0 34px; line-height: 2; text-align: center; }
.zz-note { font-size: 13px; color: var(--zz-muted); margin: 16px 0 0; text-align: center; }
.zz-label { display: block; font-size: 16px; font-weight: 700; margin: 0 0 14px; line-height: 1.9; text-align: right; }

.zz-input {
  width: 100%; height: 58px; padding: 0 18px; font-size: 16px; font-family: inherit;
  border: 1.5px solid var(--zz-border); border-radius: 14px; background: #fff; color: var(--zz-text); outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease; margin-bottom: 8px;
}
.zz-input:focus { border-color: #111111; box-shadow: 0 0 0 4px rgba(17,17,17,0.08); background: #fff; }
.zz-status-form .zz-input { margin-bottom: 18px; }

.zz-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 58px;
  padding: 15px 22px; font-size: 16px; font-weight: 800; font-family: inherit; border: none; border-radius: 15px;
  cursor: pointer; margin-top: 18px; transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.zz-btn--primary { background: var(--zz-primary); color: #fff; }
.zz-btn--primary:hover { background: var(--zz-primary-hover); transform: translateY(-1px); }
.zz-btn:disabled { opacity: 0.62; cursor: default; transform: none; }

.zz-link { display: inline-block; margin-top: 24px; background: none; border: none; color: #4b5563; font-size: 14px; font-family: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; padding: 4px; line-height: 1.9; text-align: center; }
.zz-link:hover { color: #111111; }

.zz-progress {
  position: relative; display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between;
  width: min(100%, 380px); margin: 0 auto 44px; direction: ltr;
}
.zz-progress::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 50%; height: 2px;
  transform: translateY(-50%); background: #dfe3e8; z-index: 0;
}
.zz-progress__step {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: #eef1f4; color: #9aa1aa;
  display: flex; align-items: center; justify-content: center; font-weight: 800; position: relative; z-index: 1;
  box-shadow: 0 0 0 8px #ffffff; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.zz-progress__step::before { content: attr(data-step); }
.zz-progress__step::after { display: none !important; }
.zz-progress__step.is-active { background: #000; color: #fff; transform: scale(1.02); }

.zz-step { display: none; text-align: right; }
.zz-step--active { display: block; animation: zz-fade 0.2s ease; }
.zz-error { color: var(--zz-error); font-size: 13px; min-height: 20px; margin: 4px 0 0; text-align: right; }
.zz-error--global { margin-top: 16px; text-align: center; }

.zz-icon--success { width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%; background: rgba(18,183,106,0.12); color: var(--zz-success); font-size: 36px; display: flex; align-items: center; justify-content: center; }
.zz-success-text { font-size: 17px; line-height: 2; margin: 0 0 10px; text-align: center; }
.zz-status-result { margin-top: 22px; font-size: 16px; line-height: 2; text-align: center; }
.zz-status-result .zz-badge { display: inline-block; padding: 7px 18px; border-radius: 999px; font-weight: 800; margin-top: 8px; }
.zz-status-result .zz-badge--pending { background: rgba(234,179,8,0.16); color: #a16207; }
.zz-status-result .zz-badge--approved { background: rgba(18,183,106,0.13); color: var(--zz-success); }
.zz-status-result .zz-badge--rejected { background: rgba(217,45,32,0.10); color: var(--zz-error); }
.zz-status-result .zz-notfound { color: var(--zz-error); }

@media (max-width: 780px) {
  .zz-mcn { padding: 34px 14px; min-height: 560px; }
  .zz-card { padding: 34px 20px 38px; border-radius: 22px; }
  .zz-logo__image { width: 44px; height: 44px; }
  .zz-title { font-size: 22px; }
  .zz-subtitle { font-size: 14px; margin-bottom: 28px; }
  .zz-progress { width: min(100%, 300px); margin-bottom: 34px; }
  .zz-progress::before { left: 20px; right: 20px; }
  .zz-progress__step { width: 40px; height: 40px; flex-basis: 40px; box-shadow: 0 0 0 6px #ffffff; }
  .zz-input { height: 54px; font-size: 15px; }
  .zz-btn { min-height: 54px; }
}
