/* Remove focus border for header elements */
.header-main .ast-site-header .menu-item:focus,
.header-main .ast-site-header .menu-item:active {
    outline: none!important;
    box-shadow: none!important;
}

/* Remove focus border for header elements */
.header-main .ast-site-header .menu-item:focus,
.header-main .ast-site-header .menu-item:hover {
    outline: none!important;
    box-shadow: none!important;
}

.register-form-title {
  color: white;
}

.contestant-main-title {
  color: #05479c!important;
}

#start_recording {
   box-shadow: none
!important;
}

#stop_recording {
 box-shadow: none
!important;
}

#delete_recording {
  box-shadow: none
!important;
}
.register-form-container {
    font-family: 'Inter', sans-serif;
    max-width: 600px;
    margin: 40px auto;
    background: ;
    padding: 30px;
    border-radius: 15px;
    color: ;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
  }
  .register-form-title {
    margin-bottom: 20px;
    font-size: 28px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  }
  .styled-registration-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .form-group {
    width: 48%;
    margin-bottom: 15px;
    text-align: left;
  }
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  .form-group input[type='text'],
  .form-group input[type='email'],
  .form-group input[type='url'],
  .form-group select,
  .form-group input[type='file'] {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
  }
  .form-group input[type='file'] {
    background: #fff;
    color: #333;
  }
  .form-group input[type='text']:focus,
  .form-group input[type='email']:focus,
  .form-group input[type='url']:focus,
  .form-group select:focus {
    box-shadow: 0 0 5px rgba(255,255,255,0.5);
  }
  .recitation-options {
    margin-top: 10px;
  }
  .recording-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
  }
  .recording-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }
  #start_recording, #stop_recording, #delete_recording {
    width: 45px;
    height: 45px;
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.1s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  #start_recording:hover, #stop_recording:hover, #delete_recording:hover {
    transform: scale(1.1);
  }
  #start_recording:disabled, #stop_recording:disabled, #delete_recording:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }
  .icon-fallback {
    display: none;
  }
  button i:empty + .icon-fallback {
    display: inline;
  }
  .fas {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  }
  #recording_interface {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  #recording_timer {
    font-size: 16px;
    font-weight: bold;
  }
  #audio_waveform {
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
  }
  #recording_status {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
  .recitation-option {
    margin-top: 10px;
  }
  .terms-group {
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .terms-group input[type='checkbox'] {
    margin: 0;
    transform: scale(1.2);
    flex-shrink: 0;
  }
  .terms-group label {
    margin: 0;
    font-weight: bold;
    display: inline;
    text-align: left;
  }
  .terms-group a {
    color: inherit;
    text-decoration: underline;
  }
  .submit-btn {
    width: 100%;
    background: ;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
    margin-top: 10px;
  }
  .submit-btn:hover {
    filter: brightness(85%);
  }
  .form-message {
    margin-top: 15px;
    font-weight: bold;
  }
  @media (max-width: 600px) {
    .form-group {
      width: 100%;
    }
    .recording-controls {
      gap: 8px;
    }
    #start_recording, #stop_recording, #delete_recording {
      width: 40px;
      height: 40px;
      font-size: 18px;
    }
  }
  .register-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .loading-content {
    background: #ff6699;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    font-family: 'Inter', sans-serif;
  }
  .spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #fff;
    border-top-color: #ff0066;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  .form-group .error {
    font-size: 14px;
    padding: 5px;
    color: #ff0000;
  }

.contestant-info {
  text-align: left!important;
  margin-left: 32%!important;
}

.submit-btn {
	color: white!important;
}

.brtpmj_businessheader {
  display: none!important;
}

.brtpmj_all_reviews.brtpmj_grid_container {
  display: none!important;
}

#mq_en_kids_name, #mq_en_kids_whatsapp, #mq_en_kids_email, #mq_en_kids_country, #mq_en_kids_timezone, #mq_en_kids_dob {
    padding: 8px!important;
    border: 2px solid #ccc
!important;
    border-radius: 3px!important;
    background-color: #fff!important;
    font-size: 1em!important;
}

#mq_en_kids_whatsapp {
	width: 100%!important;
}


/* التنسيق الأساسي للنموذج (كما هو موجود) */
/* ... الكود الحالي ... */

/* تنسيق الجوال: عند عرض الشاشة أقل من 768px */
@media only screen and (max-width: 768px) {
  /* جعل النموذج عمودي بالكامل */
  .mq-en-kids-form {
    flex-direction: column;
    gap: 15px;
  }
  
  /* تمديد كل مجموعة مدخلات لتشغل 100% من العرض */
  .mq-en-kids-form-group {
    flex: 1 1 100%;
  }
  
  /* ترتيب حاوية الواتساب بشكل عمودي */
  .whatsapp-container {
    flex-direction: column;
  }
  
  /* التأكد من أن القائمة المنسدلة ومدخل الرقم يشغلان كامل العرض */
  .whatsapp-code-select,
  .whatsapp-number {
    width: 100%;
  }
  
  /* إزالة أي هوامش زائدة أو padding قد تؤدي إلى تجاوز العرض */
  .mq-en-kids-form-container {
    padding: 10px;
    margin: 10px;
  }
}

.whatsapp-code-select {
    flex: 0 0 50px!important;
  }


/* ===============================
   Madrasat El-Quran — Footer Style (Astra)
   Works with the exact markup you sent
   =============================== */
:root{
  --mq-bg:#0c1a22;          /* خلفية داكنة أنيقة */
  --mq-bg-2:#0a141a;
  --mq-ink:#eaf2f6;         /* نص */
  --mq-muted:#b9c9d3;       /* نص ثانوي */
  --mq-accent:#eab75c;      /* ذهبي إسلامي */
  --mq-accent-2:#d49b2a;
  --mq-teal:#0e7362;        /* أخضر مزركش خفيف */
  --mq-ring:0 0 0 3px rgba(234,183,92,.25);
}

/* غلاف صف الفوتر */
.site-primary-footer-wrap{
  position:relative;
  background:
    radial-gradient(70% 120% at 110% -20%, rgba(14,115,98,.18), transparent 60%),
    radial-gradient(80% 100% at -10% 120%, rgba(234,183,92,.10), transparent 60%),
    linear-gradient(180deg,var(--mq-bg),var(--mq-bg-2));
  color:var(--mq-ink);
  border-top:4px solid rgba(234,183,92,.28);
  overflow:hidden;
}

/* زخرفة إسلامية رقيقة (قوس/هلال مموّه) */
.site-primary-footer-wrap::before{
  content:"";
  position:absolute; right:-70px; top:-70px;
  width:220px; height:220px; border-radius:50%;
  background:conic-gradient(from 210deg, rgba(234,183,92,.55), rgba(234,183,92,0) 65%);
  filter:blur(10px); opacity:.6; pointer-events:none;
}

/* الحاوية الداخلية */
.site-primary-footer-wrap .ast-builder-grid-row-container-inner{
  padding:48px 20px 28px;
  max-width:1200px; margin-inline:auto;
}

/* توزيع الأعمدة */
.ast-builder-footer-grid-columns{
  gap:28px;
  align-items:flex-start;
}

/* عناوين الأعمدة */
.site-primary-footer-wrap h4.wp-block-heading{
  color:#fff; font-weight:800; letter-spacing:.2px;
  margin:0 0 14px; font-size:clamp(18px,2.2vw,20px);
  position:relative; display:inline-block;
}
.site-primary-footer-wrap h4.wp-block-heading::after{
  content:""; display:block; height:6px; border-radius:999px;
  width:72px; margin-top:8px;
  background:linear-gradient(90deg,var(--mq-accent),var(--mq-accent-2));
  box-shadow:0 8px 22px rgba(234,183,92,.35);
}

/* نص العمود الأول + صورة */
.site-footer-primary-section-1 .widget_text p{
  color:var(--mq-muted); line-height:1.7; margin:14px 0 18px;
}
.site-footer-primary-section-1 .widget_media_image img{
  display:block; max-width:140px; height:auto;
  border-radius:16px; background:#fff;
  box-shadow:0 12px 28px rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.12);
}
.site-footer-primary-section-1 #block-30 img{
  max-width:170px; border-radius:14px;
  box-shadow:0 14px 32px rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.08);
  transition:transform .2s ease;
}
.site-footer-primary-section-1 #block-30 img:hover{ transform:translateY(-3px) }

/* قائمة Contact */
.site-footer-primary-section-2 ul{
  list-style:none; padding:0; margin:8px 0 0; display:grid; gap:10px;
}
.site-footer-primary-section-2 ul li{
  color:var(--mq-ink); display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px; padding:10px 12px;
}
.site-footer-primary-section-2 a{
  color:#fff; text-decoration:none; font-weight:700;
}
.site-footer-primary-section-2 a:hover{ text-decoration:underline }

/* أيقونات للهواتف والإيميل (SVG كـ mask) */
.site-footer-primary-section-2 ul li a[href^="tel:"]::before,
.site-footer-primary-section-2 ul li a[href^="mailto:"]::before{
  content:""; width:18px; height:18px; display:inline-block; margin-inline-end:6px;
  background:var(--mq-accent);
  -webkit-mask-size:cover; mask-size:cover;
}
.site-footer-primary-section-2 ul li a[href^="tel:"]::before{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.1.36 2.29.55 3.58.55a1 1 0 011 1V22a1 1 0 01-1 1C10.42 23 1 13.58 1 2a1 1 0 011-1h4.51a1 1 0 011 1c0 1.29.19 2.48.55 3.58a1 1 0 01-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.1.36 2.29.55 3.58.55a1 1 0 011 1V22a1 1 0 01-1 1C10.42 23 1 13.58 1 2a1 1 0 011-1h4.51a1 1 0 011 1c0 1.29.19 2.48.55 3.58a1 1 0 01-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat;
}
.site-footer-primary-section-2 ul li a[href^="mailto:"]::before{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M2 6a2 2 0 012-2h16a2 2 0 012 2v.35l-10 6.25L2 6.35V6zm0 2.74V18a2 2 0 002 2h16a2 2 0 002-2V8.74l-9.4 5.87a2 2 0 01-2.2 0L2 8.74z'/%3E%3C/svg%3E") no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M2 6a2 2 0 012-2h16a2 2 0 012 2v.35l-10 6.25L2 6.35V6zm0 2.74V18a2 2 0 002 2h16a2 2 0 002-2V8.74l-9.4 5.87a2 2 0 01-2.2 0L2 8.74z'/%3E%3C/svg%3E") no-repeat;
}

/* قائمة الكورسات */
.site-footer-primary-section-3 .menu{
  list-style:none; padding:0; margin:10px 0 0; display:grid; gap:10px;
}
.site-footer-primary-section-3 .menu .menu-link{
  color:var(--mq-muted); text-decoration:none;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px; padding:10px 12px; display:block; font-weight:700;
  transition:transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.site-footer-primary-section-3 .menu .menu-item.current_page_item .menu-link,
.site-footer-primary-section-3 .menu .menu-link:hover{
  background:rgba(234,183,92,.12);
  border-color:rgba(234,183,92,.35);
  color:#fff; transform:translateX(3px);
  box-shadow:0 10px 22px rgba(234,183,92,.12);
}

/* فواصل/حواف الأعمدة */
.site-primary-footer-wrap .site-footer-section{
  padding:4px;
}
.site-footer-primary-section-2,
.site-footer-primary-section-3{
  position:relative;
}
.site-footer-primary-section-2::before,
.site-footer-primary-section-3::before{
  content:""; position:absolute; left:-14px; top:4px; bottom:4px; width:1px;
  background:linear-gradient(var(--mq-accent),transparent);
  opacity:.25;
}
@media (max-width:921px){
  .site-footer-primary-section-2::before,
  .site-footer-primary-section-3::before{ display:none }
}

/* الروابط العامة داخل الفوتر */
.site-primary-footer-wrap a{ color:#fff; }
.site-primary-footer-wrap a:focus{ outline:none; box-shadow:var(--mq-ring); border-radius:8px }

/* الشريط السفلي (لو موجود) */
.site-primary-footer-wrap .ast-builder-grid-row-container-inner::after{
  content:"© " attr(data-brand) " " attr(data-year) " • Madrasat El-Quran";
  display:block; text-align:center; color:var(--mq-muted);
  margin-top:28px; font-size:13px;
}

/* RESPONSIVE */
@media (max-width:768px){
  .site-primary-footer-wrap .ast-builder-grid-row-container-inner{
    padding:34px 16px 22px;
  }
  .site-primary-footer-wrap .footer-widget-area-inner{
    text-align:center;
  }
  .site-footer-primary-section-1 .widget_media_image img{ margin-inline:auto }
  .site-footer-primary-section-1 #block-30 img{ margin:8px auto 0 }
  .site-footer-primary-section-2 ul li{ justify-content:center }
  .site-footer-primary-section-3 .menu .menu-link{ text-align:center }
}

.mqj-carousel {
	    padding: 30px!important;
}

.site-header {
    background: #fff!important;
}

.site-header .menu-text {
    transition: none;
    color: #000;
}

/* ============== ezTOC — Brand Colors ============== */
#ez-toc-container{
  --ink:#103a53; 
  --muted:#5f7281;
  --gold:#f0b447; 
  --gold-2:#d99c2a;
  --sky:#e9f2f7; 
  --sky-border:#cfe1ee; 
  --sky-text:#154d78;
  --ring:rgba(16,58,83,.10);

  border:1px solid var(--ring);
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff,#f9fcfe);
  box-shadow:0 10px 28px rgba(16,58,83,.06);
  padding:16px;
}

/* العنوان وشريط التبديل */
#ez-toc-container .ez-toc-title-container{
  background:linear-gradient(90deg,#ffffff, var(--sky));
  border:1px solid var(--sky-border);
  border-radius:12px;
  padding:10px 12px;
}
#ez-toc-container .ez-toc-title{
  margin:0; font:800 16px/1.2 "Noto Kufi Arabic","Inter",system-ui;
  color:var(--ink);
}

/* الروابط داخل الفهرس */
#ez-toc-container a.ez-toc-link{
  display:block;
  color:var(--ink);
  font:700 14px/1.6 "Noto Kufi Arabic","Inter",system-ui;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:10px;
  transition:.18s ease;
}
#ez-toc-container a.ez-toc-link:hover{
  background:var(--sky);
  border-color:var(--sky-border);
  color:var(--sky-text);
}

/* مستوى 1 كبادج ذهبية مرقّمة */
#ez-toc-container nav > ul.ez-toc-list{ counter-reset: toc-l1 }
#ez-toc-container nav > ul.ez-toc-list > li{ counter-increment: toc-l1 }
#ez-toc-container nav > ul.ez-toc-list > li > a.ez-toc-link::before{
  content: counter(toc-l1);
  display:inline-grid; place-items:center;
  width:22px; height:22px; margin-inline-end:8px;
  font:800 12px/1 "Inter",system-ui;
  color:#1b2832;
  background:linear-gradient(90deg,var(--gold),var(--gold-2));
  border:1px solid rgba(217,156,42,.35);
  border-radius:8px;
  box-shadow:0 4px 10px rgba(217,156,42,.18);
}

/* المستويات الفرعية */
#ez-toc-container .ez-toc-list-level-3{
  margin:6px 0 0 20px;
  padding-left:10px;
  border-left:2px dashed var(--sky-border);
}
html[dir="rtl"] #ez-toc-container .ez-toc-list-level-3{
  margin:6px 20px 0 0; padding-left:0; padding-right:10px;
  border-left:none; border-right:2px dashed var(--sky-border);
}
#ez-toc-container .ez-toc-list-level-3 li a.ez-toc-link::before{
  content:"•";
  background:none; border:none; box-shadow:none; color:var(--sky-text);
  width:auto; height:auto; margin-inline-end:8px;
}

/* تركيز وصولي */
#ez-toc-container a.ez-toc-link:focus-visible{
  outline:2px solid var(--gold-2); outline-offset:2px; border-radius:10px;
}

/* سكرول ناعم وتمييز الهدف */
html{ scroll-behavior:smooth }
[id]:target{ scroll-margin-top:96px; box-shadow:0 0 0 8px rgba(217,156,42,.12) inset }