/* =========================================================
   PRICE QUOTE – HERO CARDS (حلولنا التأمينية)
   ========================================================= */

.pq-section {
    position: relative;
    padding-block: 5rem;
    /* background: radial-gradient(circle at top, #f5eeff 0, #f7fbfc 35%, #ffffff 70%); */
}

/* [data-bs-theme="dark"] .pq-section {
    background: radial-gradient(circle at top, #060f2c 0, #060f2c 40%, #030819 100%);
} */

/* Badge فوق العنوان */
.pq-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #4C2770, #7E5BA2);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.pq-badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #48BCCC;
}

/* عنوان القسم */
.pq-title {
    font-weight: 800;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.pq-subtitle {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #555;
}

[data-bs-theme="dark"] .pq-title {
    color: #ffffff;
}

[data-bs-theme="dark"] .pq-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

/* =========================================================
   CARDS
   ========================================================= */

.pq-card {
    position: relative;
    padding: 1.9rem 1.8rem 1.9rem;
    border-radius: 30px;
    background: #ffffff;
    /* box-shadow:
        0 24px 60px rgba(10, 32, 77, 0.15),
        0 0 0 1px rgba(126, 91, 162, 0.04); */
    transition:
        transform 0.18s ease-out,
        box-shadow 0.2s ease-out,
        border-color 0.2s ease-out;
    border: 1px solid transparent;
}

.pq-card:hover {
    transform: translateY(-6px);
    /* box-shadow:
        0 26px 70px rgba(10, 32, 77, 0.22),
        0 0 0 1px rgba(72, 188, 204, 0.25);
    border-color: rgba(72, 188, 204, 0.6); */
}

[data-bs-theme="dark"] .pq-card {
    background: rgb(28 40 68);
    /* border-color: rgba(126, 91, 162, 0.35); */
}

/* إطار الصورة */
.pq-frame-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.pq-frame-svg {
    display: block;
    width: 100%;
    height: auto;
}

/* اللون الداخلي للشكل */
.pq-inner-bg {
    fill: #ffffff;
}

[data-bs-theme="dark"] .pq-inner-bg {
    fill: #07173a;
}

/* الأشكال الزخرفية */
.pq-frame-shape-top {
    fill: #4C2770;
    fill-opacity: 0.85;
}

.pq-frame-shape-bottom {
    fill: #48BCCC;
    fill-opacity: 0.9;
}

/* عناوين ونصوص الكارت */
.pq-card-title {
    /* font-size: 1.05rem;
    font-weight: 800; */
    /* margin-bottom: 0.5rem; */
    color: #1b1330;
}

.pq-card-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #4b4b4b;
}

[data-bs-theme="dark"] .pq-card-title {
    color: #ffffff;
}

[data-bs-theme="dark"] .pq-card-text {
    color: rgba(255, 255, 255, 0.78);
}

/* =========================================================
   PANELS WRAPPER – يربط الكروت مع الفورم
   ========================================================= */

.pq-panels-wrapper {
    position: relative;
    margin-top: 3rem;
    padding: 2.75rem 2.25rem 3rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at top, rgba(126, 91, 162, 0.12), transparent 60%),
        #ffffff;
    border: 1px solid rgba(126, 91, 162, 0.12);
    box-shadow: 0 28px 70px rgba(10, 32, 77, 0.16);
}

/* شريط صغير يربط بصريًا بين الكروت والفورم */
.pq-panels-wrapper::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 210px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4C2770, #7E5BA2, #48BCCC);
    opacity: 0.95;
}

[data-bs-theme="dark"] .pq-panels-wrapper {
    background:
        radial-gradient(circle at top, rgba(126, 91, 162, 0.18), transparent 60%),
        rgba(3, 10, 32, 0.98);
    border-color: rgba(72, 188, 204, 0.32);
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(72, 188, 204, 0.22);
}

[data-bs-theme="dark"] .pq-panels-wrapper::before {
    opacity: 1;
}

/* هيدر فوق الفورمين */
.pq-panels-header {
    max-width: 640px;
    margin-inline: auto;
}

.pq-panels-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 1.2rem;
    border-radius: 999px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
     background: #48BCCC;
}

.pq-panels-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48BCCC;
    color: white;
}

.pq-panels-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 1rem;
    color: #1b1330;
}

.pq-panels-subtitle {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: #555;
}

[data-bs-theme="dark"] .pq-panels-badge {
    background: #48BCCC;
    color: #ffffff;
}

[data-bs-theme="dark"] .pq-panels-title {
    color: #ffffff;
}

[data-bs-theme="dark"] .pq-panels-subtitle {
    color: rgba(255, 255, 255, 0.78);
}

/* Grid للفورمين */
.pq-panels-grid {
    margin-top: 1.5rem;
}

/* =========================================================
   FORM CARDS
   ========================================================= */

.pq-form-card {
    position: relative;
    height: 100%;
    border-radius: 26px;
    padding: 2.1rem 1.9rem 2.4rem;
    background: linear-gradient(145deg, #4C2770 0%, #7E5BA2 40%, #4C2770 100%);
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(76, 39, 112, 0.55);
}

.pq-form-card-header {
    margin-bottom: 1.5rem;
}

.pq-form-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

.pq-form-help {
    font-size: 0.87rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

/* عناصر الإدخال داخل الكارت */
.pq-form-card .aj-input,
.pq-form-card .aj-input-no-border,
.pq-form-card .pq-select {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding-inline: 1.1rem;
    font-size: 0.9rem;
}

.pq-form-card .aj-input:focus,
.pq-form-card .pq-select:focus {
    outline: none;
    border-color: #48BCCC;
    box-shadow: 0 0 0 1px rgba(72, 188, 204, 0.6);
}

/* placeholder */
.pq-form-card .aj-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.pq-form-card .aj-input-label {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
}

/* select */
.pq-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='white' d='M6 8L0.803848 0.5L11.1962 0.5L6 8Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 1rem 50%;
    background-size: 10px 7px;
}

/* نخلي السهم في المكان الصح مع RTL */
html[dir="rtl"] .pq-select {
    background-position: calc(100% - 1rem) 50%;
}

/* input group */
.pq-form-card .aj-input-group {
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.pq-form-card .aj-input-no-border {
    border: none;
    background: transparent;
}

.pq-form-card .aj-input-addon {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

/* file input */
.pq-file-input::file-selector-button {
    border: none;
    padding: 0.35rem 0.9rem;
    margin-inline-start: -0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
}

/* زر الإرسال */
.pq-submit-btn {
    width: 100%;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(90deg, #48BCCC, #7E5BA2);
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding-block: 0.8rem;
}

.pq-submit-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
    .pq-section {
        padding-block: 3.5rem;
    }

    .pq-panels-wrapper {
        padding: 2.4rem 1.4rem 2.6rem;
        border-radius: 26px;
    }

    .pq-form-card {
        padding: 1.8rem 1.4rem 2.1rem;
    }
}




/* =========================================================
   AJQ Quote Form – Premium Insurance Form (Light/Dark + RTL/LTR)
   ========================================================= */


:root{
  --ajq-purple: #4d2d79;
  --ajq-cyan: #48BCCC;

  --ajq-ink: #0f172a;
  --ajq-muted: rgba(15,23,42,.68);

  --ajq-card-bg: #ffffff;
  --ajq-card-border: rgba(2,6,23,.08);
  --ajq-shadow: 0 18px 55px rgba(15,23,42,.10);

  --ajq-field-bg: #fff;
  --ajq-field-border: rgba(15,23,42,.12);
  --ajq-field-focus: rgba(72,188,204,.35);
}

/* Section spacing */
.ajq-quote{
  padding: 10px 0;
}

/* Header */
.ajq-quote__head{
  max-width: 760px;
  margin: 0 auto 18px;
}

.ajq-quote__badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(72,188,204,.12);
  border: 1px solid rgba(72,188,204,.28);
  color: var(--ajq-purple);
  font-weight: 900;
  letter-spacing: .2px;
}

.ajq-quote__title{
  margin: 14px 0 6px;
  font-weight: 900;
  color: var(--ajq-ink);
  font-size: clamp(20px, 2.4vw, 28px);
}

.ajq-quote__subtitle{
  margin: 0;
  color: var(--ajq-muted);
  line-height: 1.8;
}

/* Card wrapper */
.ajq-card{
  margin-top: 22px;
  border-radius: 18px;

  /* WHITE BORDER must stay white (even in dark) */
  border: 1px solid rgba(255,255,255,.35);

  background: var(--ajq-card-bg);
  box-shadow: var(--ajq-shadow);
  overflow: hidden;

  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 420px;
}

/* =========================
   PANEL SIDE (always white text)
   - EN (LTR): left
   - AR (RTL): right
   ========================= */
.ajq-card__panel{
  padding: 34px 28px;
  background: linear-gradient(180deg, #5a2f8f 0%, #3f2667 100%);
  color: #fff !important;
  position: relative;
  isolation: isolate;
}

/* nice glow */
.ajq-card__panel::after{
  content:"";
  position:absolute;
  inset: 0;
  
  pointer-events:none;
  z-index: -1;
}

/* ensure all text in panel is white always */
.ajq-card__panel *{
  color: #fff !important;
}

.ajq-card__panelTitle{
  margin: 0 0 10px;
  font-weight: 900;
  font-size: 22px;
}

.ajq-card__panelText{
  margin: 0;
  opacity: .9;
  line-height: 1.9;
  font-size: 13.5px;
}

.ajq-card__panelList{
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ajq-pill{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);

  font-weight: 900;
  font-size: 12px;
}

/* =========================
   FORM AREA
   ========================= */
.ajq-card__formWrap{
  padding: 28px 28px 26px;
}

/* Grid */
.ajq-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.ajq-field--full{
  grid-column: 1 / -1;
}

/* Labels & inputs */
.ajq-label{
  display:block;
  margin-bottom: 6px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(15,23,42,.76);
}

.ajq-input{
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  background: #f9fafc;
  border: 1px solid var(--ajq-field-border);
  padding: 10px 12px;
  outline: none;
  color: black;

  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.ajq-input::placeholder{
  color: rgba(15,23,42,.35);
}

.ajq-input:focus{
  border-color: rgba(72,188,204,.75);
  box-shadow: 0 0 0 5px var(--ajq-field-focus);
}

/* Select arrow */
.ajq-select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15,23,42,.55) 50%),
    linear-gradient(135deg, rgba(15,23,42,.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
[dir="rtl"] .ajq-select{
  background-position:
    18px 19px,
    12px 19px;
}

.ajq-textarea{
  padding-top: 10px;
  resize: vertical;
  min-height: 120px;
}

/* =========================
   DROP FILE (Premium)
   ========================= */
.ajq-drop{
  position: relative;
  border-radius: 14px;

  /* keep the border white-ish subtle but premium */
  border: 1px dashed rgba(77,45,121,.35);

  background: linear-gradient(180deg, rgba(77,45,121,.04), rgba(72,188,204,.03));
  padding: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.ajq-drop:hover{
  border-color: rgba(72,188,204,.55);
  box-shadow: 0 16px 36px rgba(15,23,42,.10), 0 0 0 6px rgba(72,188,204,.07);
  transform: translateY(-1px);
}

.ajq-drop.is-drag{
  border-color: rgba(72,188,204,.95);
  box-shadow: 0 22px 50px rgba(15,23,42,.14), 0 0 0 7px rgba(72,188,204,.12);
  background: linear-gradient(180deg, rgba(72,188,204,.10), rgba(77,45,121,.06));
}

.ajq-drop.has-file{
  border-style: solid;
  border-color: rgba(72,188,204,.70);
}

/* hide real input but keep accessible */
.ajq-drop__input{
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ajq-drop__content{
  display: flex;
  align-items: center;
  gap: 12px;
}

.ajq-drop__icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(77,45,121,.10);
  border: 1px solid rgba(77,45,121,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ajq-purple);
  flex: 0 0 auto;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.ajq-drop:hover .ajq-drop__icon,
.ajq-drop.is-drag .ajq-drop__icon{
  background: var(--ajq-purple);
  border-color: var(--ajq-purple);
  color: #fff;
  transform: translateY(-1px);
}

.ajq-drop__text{
  min-width: 0;
}

.ajq-drop__title{
  font-weight: 900;
  color: rgba(15,23,42,.85);
  font-size: 13px;
  line-height: 1.4;
}

.ajq-drop__browse{
  color: var(--ajq-cyan);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.ajq-drop__hint{
  margin-top: 3px;
  color: rgba(15,23,42,.55);
  font-size: 12px;
}

.ajq-drop__filename{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,23,42,.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

/* Actions */
.ajq-actions{
  display:flex;
  justify-content: flex-end;
}

[dir="rtl"] .ajq-actions{
  justify-content: end;
}

.ajq-btn{
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.ajq-btn--primary{
  width: min(360px, 100%);
  background: var(--ajq-purple);
  color: #fff;
  box-shadow: 0 14px 30px rgba(77,45,121,.22);
  border-radius: 999px;
}

.ajq-btn--primary:hover{
  transform: translateY(-2px);
  background: #3f2467;
  box-shadow: 0 18px 40px rgba(77,45,121,.30), 0 0 0 6px rgba(72,188,204,.10);
}

.ajq-btn--primary:active{
  transform: translateY(0);
}

/* =========================================================
    Panel placement (EXACT requirement)
   - Default (LTR): panel left
   - RTL: panel right
   ========================================================= */

   
   /* الافتراضي (LTR): Panel أولاً على اليسار */
.ajq-card{
  display: grid;
  grid-template-columns: 320px 1fr; /* Panel | Form */
}

/* RTL: نخلي أول عمود يكون على اليمين */
[dir="rtl"] .ajq-card{
  grid-template-columns: 320px 1fr; /* نفس الأعمدة */
  direction: rtl;                  /* يقلب اتجاه الأعمدة: أول عمود يروح يمين */
}

/* تأكيد: ما في أي order عشان Panel يظل الأول */
[dir="rtl"] .ajq-card__panel{ order: 0; }
[dir="rtl"] .ajq-card__formWrap{ order: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 992px){
  .ajq-card{ grid-template-columns: 1fr; }
  [dir="rtl"] .ajq-card{ grid-template-columns: 1fr; }
  .ajq-card__panel{ padding: 22px 18px; }
  .ajq-card__formWrap{ padding: 18px 18px 18px; }
  .ajq-grid{ grid-template-columns: 1fr; }

  .ajq-drop__filename{ max-width: 100%; }
}

/* =========================================================
   DARK MODE – keep panel text white + keep white border fixed
   ========================================================= */
[data-bs-theme="dark"] .ajq-quote__title{ color: rgba(255,255,255,.92); }
[data-bs-theme="dark"] .ajq-quote__subtitle{ color: rgba(226,232,240,.76); }

[data-bs-theme="dark"] .ajq-card{
  background: rgba(15,23,42,.92);
  /* keep border white-ish fixed */
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 22px 70px rgba(0,0,0,.70);
}

/* inputs in dark */
[data-bs-theme="dark"] .ajq-label{ color: rgba(226,232,240,.82); }

[data-bs-theme="dark"] .ajq-input{
  background: rgba(2,6,23,.35);
  border-color: rgba(148,163,184,.25);
  color: rgba(255,255,255,.92);
}
[data-bs-theme="dark"] .ajq-input::placeholder{ color: rgba(226,232,240,.45); }



/* dropzone in dark */
[data-bs-theme="dark"] .ajq-drop{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(72,188,204,.03));
  border-color: rgba(72,188,204,.28);
}

[data-bs-theme="dark"] .ajq-drop__title{ color: rgba(226,232,240,.88); }
[data-bs-theme="dark"] .ajq-drop__hint{ color: rgba(226,232,240,.60); }
[data-bs-theme="dark"] .ajq-drop__filename{ color: rgba(226,232,240,.75); }

[data-bs-theme="dark"] .ajq-drop__icon{
  background: rgba(255,255,255,.06);
  border-color: rgba(148,163,184,.20);
  color: rgba(226,232,240,.85);
}

/* panel stays white text regardless */
[data-bs-theme="dark"] .ajq-card__panel *{
  color: #fff !important;
}
