:root {
  --bg: #eef6ff;
  --bg-soft: #f9fbff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #14213d;
  --muted: #5b6b87;
  --primary: #0d5bd7;
  --primary-dark: #0b3e91;
  --accent: #12b3a8;
  --danger: #ef4444;
  --line: rgba(15, 54, 118, 0.12);
  --shadow: 0 20px 60px rgba(18, 53, 112, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

/*reset*/
h16, h2, h3, h4, h5, h6 {
    font-weight: bold;
}
.margin-top-5{
    margin-top: 5px;
}
.margin-top-10 {
    margin-top: 10px;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size:16px;
}

body {
  margin: 0;
  font-family: "Vazirmatn", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(18, 179, 168, 0.18), transparent 25%),
    radial-gradient(circle at top left, rgba(13, 91, 215, 0.22), transparent 30%),
    linear-gradient(180deg, #eaf4ff 0%, #f6fbff 45%, #eef7ff 100%);
}

body.is-english {
  font-family: "Vazirmatn", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  /*width: min(1440px, calc(100% - 32px));*/
  margin: 16px auto 40px;
}

.landing {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 32px;
  border: 1px solid rgba(90, 153, 214, 0.28);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(18, 53, 112, 0.08);
}

.landing__frame {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 26px;
  align-items: start;
  direction: ltr;
}

.landing__media iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 54, 118, 0.18);
    display: block;
}

/**/
.plyr {
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.landing__copy {
  /*direction: rtl;*/
  text-align: left;
  padding: 10px 6px;
}


.landing__eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.landing__copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.25;
}

.landing__text {
  margin: 0;
  color: var(--muted);
/*  line-height: 2.05;*/
  font-size: 1.02rem;
}

.landing__actions {
  display: flex;
  /*justify-content: flex-end;*/
  margin-top: 22px;
}

.landing__button {
  text-decoration: none;
}

.trimbg,
.sidebar-card,
.form-panel {
    backdrop-filter: blur(16px);
}

.hero {
    position: relative;
    overflow: hidden;
    /*padding: 18px 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    background: linear-gradient(90deg, #2b66bf 0%, #9fdfff 50%, #2b66bf 100%);
    box-shadow: var(--shadow);
    color: white;    
    width: min(1440px, calc(100% - 32px));*/
    background:none;
    margin: 0 auto;   
}

.hero__brand,
.layout {
  position: relative;
  z-index: 1;
}

.hero__toolbar {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 3;
}

.language-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.language-switch__button {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  padding: 9px 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.language-switch__button.is-active {
  background: white;
  color: var(--primary-dark);
}

/* -- */
.language-switch .languages {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0;
}

    .language-switch .languages li {
        margin: 0;
    }

.header .language-switch .languages li a {
    display: block;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    padding: 9px 16px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.language-switch .languages li.active a {
    background: white;
    color: #0b3e91;
}

.language-switch .languages img {
    display: none;
}
.login-box{
    color: #fff;
    font-size: 13px;
    

}
.login-box {
    /*display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;*/
}

.username {
    font-size: 18px;
    font-weight: 600;
}

.button-logout {
    /*font-size: 14px;*/
    color: white !important;
    text-decoration:underline;
}

.btn-questionnaire {
    padding: 12px 28px;
    border-radius: 30px;
}

/*
.language-switch {
        display: inline-flex;
        padding: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.28);
    }

    .language-switch .languages {
        display: inline-flex;
        align-items: center;
        gap: 0;
        margin: 0;
    }

    .language-switch .languages li {
        margin: 0;
    }

    .header .language-switch .languages li a {
        display: block;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.92);
        padding: 9px 16px;
        border-radius: 999px;
        font: inherit;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
    }

    .language-switch .languages li.active a {
        background: white;
        color: #0b3e91;
    }

    .language-switch .languages img {
        display: none;
    }

*/
.hero__brand {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 24px;
    align-items: center;
    min-height: 300px;
    direction: ltr;
}

.hero__logo {
  justify-self: center;
  align-self: center;
  object-fit: contain;
}

.hero__logo--left {
  width: 150px;
}

.hero__logo--center {
  width: 190px;
  margin: 0 auto 14px;
}

.hero__logo--right {
  width: 150px;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.7vw, 2.7rem);
  line-height: 1.25;
  text-align: center;
  direction: rtl;
  color:white;
}

body.is-english .brand-copy h1,
body.is-english .landing__copy,
body.is-english .landing__eyebrow,
body.is-english .landing__copy h2,
body.is-english .landing__text,
body.is-english .form-panel,
body.is-english .form-section,
body.is-english .form-section__title,
body.is-english .section-heading,
body.is-english .field,
body.is-english .field > span,
body.is-english .radio-group,
body.is-english .button,
body.is-english textarea,
body.is-english input,
body.is-english select {
  direction: ltr;
  text-align: left;
}

body.is-english .radio-group label {
  margin-left: 0;
  margin-right: 16px;
}

.layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.sidebar {
  display: none;
}

.sidebar-card,
.form-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sidebar-card {
  padding: 24px;
}

.sidebar-card h2,
.section-heading h2,
.form-section__title h3 {
  margin: 0;
}

.sidebar-card h2 {
  margin-bottom: 14px;
  font-size: 1.12rem;
}

.sidebar-card--accent {
  background:
    linear-gradient(180deg, rgba(13, 91, 215, 0.08), rgba(18, 179, 168, 0.06)),
    var(--surface);
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
  line-height: 1.9;
}

.info-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}

.section-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(13, 91, 215, 0.08);
  color: var(--primary-dark);
  font-size: 0.94rem;
  font-weight: 600;
}

.form-panel {
  padding: 28px;
}

.section-heading {
  display: block;
  margin-bottom: 24px;
}

.questionnaire {
  display: grid;
  gap: 22px;
}

.form-section {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.92));
  border: 1px solid var(--line);
}

.form-section__title {
  margin-bottom: 20px;
}

.form-section__title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 10px;
}

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

.field--row-start {
  grid-column: 1;
}

.field > span,
.radio-group legend {
  font-weight: 700;
  color: var(--text);
}

.field em,
.radio-group em {
  color: var(--danger);
  font-style: normal;
}

input:not([type=radio]),
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(17, 54, 119, 0.16);
    border-radius: 18px;
    background: var(--surface-strong);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.select2-container--default .select2-selection--multiple {
    padding: 8px 16px;
    border: 1px solid rgba(17, 54, 119, 0.16);
    border-radius: 18px;
    background: var(--surface-strong);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(13, 91, 215, 0.55);
  box-shadow: 0 0 0 5px rgba(13, 91, 215, 0.12);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.radio-group {
  margin: 0;
  padding: 0;
  border: none;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  color: var(--muted);
  font-weight: 500;
}

.phone-field__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
}

.upload-box {
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(13, 91, 215, 0.04), rgba(18, 179, 168, 0.05)),
    white;
  border: 1px dashed rgba(13, 91, 215, 0.3);
}

.upload-box small {
  color: var(--muted);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.button {
  padding: 14px 24px;
  border: none;
  border-radius: 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), #2a8bff);
  box-shadow: 0 18px 40px rgba(13, 91, 215, 0.28);
}

.button--secondary {
  color: var(--primary-dark);
  background: rgba(13, 91, 215, 0.08);
}
.textboxlist{
    padding: 20px;
    padding-left:0px;
}
.radio {
    /*min-height:122px*/
    /*clear:left*/
}
.radio input[type="radio"], [dir="rtl"] .radio input[type="radio"] {
    margin: unset;
}
.fieldControl{
    padding-top:5px;
}
/*.customefield:nth-of-type(odd):visible) {
    clear: left;
}
.customefield:nth-child(odd):visible) {
    clear: left;
}*/

.content-inner {
    border-radius: 40px;
}
.trimbg {
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, #2b66bf 0%, #9fdfff 50%, #2b66bf 100%); 
    padding: 15px;
    min-height: 200px;
    position: relative;
    border: 1px solid #b1cee4;
    border-radius: 40px;
    box-shadow: 0 0 40px 0 rgba(6, 21, 35, 0.1);
    /*min-height: calc(100vh - 450px);*/
}

.radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] {
    position: relative; 
    width: unset;
}


.site-footer__powered-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(248,250,252,.88));
    border: 1px solid rgba(148,163,184,.18);
    box-shadow: 0 14px 30px rgba(15,23,42,.06);
}

    .site-footer__powered-brand img {
        display: block;
        width: auto;
        height: 34px;
        max-width: 180px;
    }

.site-footer__panel {
    border: 1px solid var(--line, rgba(148,163,184,.22));
    background: rgba(255,255,255,.84);
    backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 22px 54px rgba(15,23,42,.10);
}

.site-footer__bottom {
    /*display: flex;*/
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 14px;
    direction: ltr;
}

.site-footer__legal-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    padding-bottom:10px;
}

.site-footer__legal-link {
    color: #2448b8;
    /*font-size: 13px;
    font-weight: 800;*/
    direction: var(--chrome-text-dir);
    /*text-transform: uppercase; */  
}

.site-footer__legal-copy {
    color: var(--muted, #475569);
    font-size: 12px;
    line-height: 1.8;
    direction: ltr;
    text-align: center;
    width: 100%;
}


.site-footer__panel {
    border-radius: 30px;
    padding: 16px;
}



@media (max-width: 1120px) {
    .layout, .hero__brand {
    grid-template-columns: 1fr;
  }

  .brand-copy {
    text-align: center;
  }

  .landing__frame,
  .hero__brand {
    grid-template-columns: 1fr;
  }

  .landing__actions {
    justify-content: center;
  }

  .hero__toolbar {
    justify-content: center;
  }

  .hero__logo--left,
  .hero__logo--right {
    width: 120px;
  }
}

@media (max-width: 874px) {
  .page-shell {
    /*width: min(100% - 20px, 1440px);*/
  }

  .form-panel,
  .sidebar-card,
  .hero,
  .form-section,
  .landing {
    padding: 20px;
  }

  .form-grid,
  .phone-field__grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

    .layout, .hero__brand {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .hero__brand {
        min-height: unset;
    }

    .header-text {
        color: white;
        font-size: 20px
    }

    .hero .flex-row {
        align-items: center;
        gap: 10px;
    }

}
@media (max-width: 767px) {
    .login-box .margin-top-5 {
        margin-top: 0 !important;
    }
    .layout, .hero__brand {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .hero__brand {
        min-height:unset;
    }
    .header-text{
        color:white;
        font-size:20px
    }
    .hero .flex-row{
        align-items:center;
        gap: 10px
    }
}
