/* ════════════════════════════════════════
   boncopon — pages.css
   استایل صفحات استاتیک + فرم تماس
   ════════════════════════════════════════ */

/* ── PAGE HEADER ── */
.static-page-header{
  background:linear-gradient(135deg,var(--navy) 0%,#2A2A50 100%);
  padding:44px 24px;
  position:relative;
  overflow:hidden;
}
.static-page-header::before{
  content:'';position:absolute;top:-80px;left:-60px;
  width:400px;height:400px;
  background:radial-gradient(circle,rgba(255,107,53,.18) 0%,transparent 70%);
}
.sph-inner{max-width:900px;margin:0 auto;position:relative;z-index:1}
.sph-inner h1{font-size:26px;font-weight:900;color:#fff}

/* ── PAGE LAYOUT ── */
.static-page-wrap{
  max-width:960px;margin:0 auto;padding:36px 24px 60px;
  display:grid;grid-template-columns:1fr 260px;gap:28px;
}
@media(max-width:680px){
  .static-page-wrap{grid-template-columns:1fr}
  .static-page-sidebar{display:none}
}

/* ── ARTICLE CONTENT ── */
.static-page-content{
  background:#fff;border-radius:16px;padding:32px;
  box-shadow:0 2px 16px rgba(0,0,0,.07);border:1px solid #f0f0f0;
}
.static-page-content .page-hero{margin-bottom:28px}
.static-page-content .page-section{margin-bottom:28px}
.static-page-content .page-section:last-child{margin-bottom:0}
.static-page-content h2{
  font-size:24px;font-weight:900;color:var(--navy);
  margin-bottom:16px;line-height:1.35;
}
.static-page-content h3{
  font-size:17px;font-weight:700;color:var(--navy);
  margin-bottom:12px;padding-bottom:8px;
  border-bottom:2px solid var(--orl);
  display:flex;align-items:center;gap:8px;
}
.static-page-content p{
  font-size:14px;color:#444;line-height:1.9;margin-bottom:14px;
}
.static-page-content ul,.static-page-content ol{
  padding-right:24px;margin-bottom:14px;
}
.static-page-content li{
  font-size:14px;color:#444;line-height:1.9;margin-bottom:6px;
}
.static-page-content a{color:var(--or);text-decoration:none}
.static-page-content a:hover{text-decoration:underline}
.static-page-content strong{color:var(--navy)}
.static-page-content blockquote{
  border-right:4px solid var(--or);
  background:var(--orl);padding:14px 18px;
  border-radius:0 10px 10px 0;margin:20px 0;
  font-style:italic;color:#555;
}

/* ── SIDEBAR ── */
.static-page-sidebar{display:flex;flex-direction:column;gap:16px}
.sidebar-widget{
  background:#fff;border-radius:14px;padding:18px;
  box-shadow:0 2px 12px rgba(0,0,0,.06);border:1px solid #f0f0f0;
}
.sidebar-widget h4{
  font-size:13px;font-weight:700;color:var(--gray);
  letter-spacing:1px;text-transform:uppercase;
  margin-bottom:12px;padding-bottom:10px;
  border-bottom:1px solid #f5f5f5;
}
.sidebar-link{
  display:flex;align-items:center;gap:8px;padding:8px 10px;
  font-size:13px;color:var(--navy);text-decoration:none;
  border-radius:8px;transition:all .2s;margin-bottom:4px;
}
.sidebar-link:hover{background:var(--orl);color:var(--or)}
.sidebar-link.active{background:var(--or);color:#fff}
.sidebar-link i{font-size:14px;flex-shrink:0}

/* ── CONTACT FORM ── */
.contact-section{
  margin-top:32px;padding-top:28px;
  border-top:2px solid var(--orl);
}
.contact-section h3{
  font-size:18px;font-weight:700;color:var(--navy);
  margin-bottom:20px;display:flex;align-items:center;gap:8px;
  border-bottom:none;padding-bottom:0;
}
.contact-form{margin-top:16px}
.cf-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}
.cf-grid .full{grid-column:1/-1}
@media(max-width:540px){.cf-grid{grid-template-columns:1fr}}
.cf-group{display:flex;flex-direction:column;gap:6px}
.cf-group label{font-size:12px;font-weight:600;color:var(--navy)}
.cf-group .req{color:var(--or);margin-right:2px}
.cf-group input,
.cf-group textarea{
  width:100%;border:1.5px solid #e2e8f0;border-radius:10px;
  padding:11px 14px;font-size:13px;font-family:'Vazirmatn',sans-serif;
  outline:none;transition:all .2s;background:#fff;color:var(--navy);
  direction:rtl;
}
.cf-group input:focus,
.cf-group textarea:focus{
  border-color:var(--or);box-shadow:0 0 0 4px rgba(255,107,53,.1);
}
.cf-group textarea{resize:vertical;min-height:130px}
.cf-btn{
  background:var(--or);color:#fff;border:none;border-radius:11px;
  padding:13px 28px;font-size:14px;font-weight:700;cursor:pointer;
  font-family:'Vazirmatn',sans-serif;transition:background .2s;
  display:inline-flex;align-items:center;gap:8px;
}
.cf-btn:hover{background:var(--ord)}
.contact-success{
  background:#dcfce7;color:#166534;border:1px solid #bbf7d0;
  border-radius:12px;padding:16px 20px;font-size:14px;font-weight:500;
  display:flex;align-items:center;gap:10px;
}
.contact-success i{font-size:22px}
.contact-error{
  background:#fee2e2;color:#991b1b;border:1px solid #fecaca;
  border-radius:12px;padding:14px 18px;font-size:13px;font-weight:500;
  display:flex;align-items:center;gap:8px;margin-bottom:16px;
}

/* ════════════════════════════════════════
   CAPTCHA STYLES
   ════════════════════════════════════════ */

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
}

.captcha-question {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  border-radius: 10px;
  padding: 12px 20px;
  user-select: none;
  flex-shrink: 0;
}

.captcha-num {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  font-family: 'Vazirmatn', sans-serif;
  min-width: 28px;
  text-align: center;
}

.captcha-op {
  font-size: 22px;
  font-weight: 700;
  color: var(--or);
  min-width: 22px;
  text-align: center;
}

.captcha-eq {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
}

.captcha-mark {
  font-size: 26px;
  font-weight: 900;
  color: var(--or);
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.captcha-input-wrap input {
  width: 90px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Vazirmatn', sans-serif;
  text-align: center;
  outline: none;
  transition: all .2s;
  color: var(--navy);
  background: #fff;
  direction: ltr;
  -moz-appearance: textfield;
}
.captcha-input-wrap input::-webkit-outer-spin-button,
.captcha-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.captcha-input-wrap input:focus {
  border-color: var(--or);
  box-shadow: 0 0 0 4px rgba(255,107,53,.12);
}

.captcha-refresh {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--gray);
  transition: all .2s;
  flex-shrink: 0;
}
.captcha-refresh:hover {
  border-color: var(--or);
  color: var(--or);
  background: var(--orl);
}

.cf-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cf-hint i { font-size: 13px; color: #22c55e; }

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

/* ── وقتی کپچا اشتباه بود ── */
.captcha-box.error {
  border-color: #fca5a5;
  background: #fff5f5;
  animation: shake .4s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}
