@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../Fonts/PlusJakartaSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../Fonts/PlusJakartaSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../Fonts/PlusJakartaSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../Fonts/PlusJakartaSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../Fonts/PlusJakartaSans-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #00314F;
  --secondary: #0093D8;
  --tertiary: #006699;
  --neutral: #5A6B78;
  --bg-page: #E7EEF4;
  --surface: #FFFFFF;
  --surface-alt: #F1F6FA;
  --border-subtle: #D2DEE7;
  --text-dark: #002238;
}

body.page-body,
button,
input,
select,
textarea {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

body.page-body {
  background-color: var(--bg-page);
  color: var(--text-dark);
  direction: rtl;
  padding: 24px 12px;
  -webkit-font-smoothing: antialiased;
}

.page-container {
  display: block !important;
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 32px rgba(0, 49, 79, 0.08);
  overflow: hidden;
}

.top-line {
  height: 8px;
  background: linear-gradient(to left, var(--primary), var(--secondary), var(--primary));
}

.form-header {
  padding: 28px;
  background: linear-gradient(to bottom, var(--surface-alt), var(--surface));
  border-bottom: 1px solid var(--border-subtle);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.header-logo-box, .header-spacer {
  width: 240px;
}

.logo-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 6px rgba(0, 49, 79, 0.04);
}

.logo-img-wrapper {
  width: auto;
  height: auto;
  background: transparent !important;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.logo-titles {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.2;
}

.logo-title-fa {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}

.logo-title-en {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--neutral);
  font-weight: 700;
}

.header-titles {
  flex: 1;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background-color: #E2F2FC;
  border: 1px solid #BAE0F7;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--tertiary);
  margin-bottom: 8px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
}

.main-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}

.sub-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tertiary);
  margin-top: 4px;
}

.form-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-card {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background-color: var(--surface);
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 49, 79, 0.02);
}

.customer-section {
  background-color: var(--surface-alt);
}

.section-card.no-padding {
  padding: 0;
  overflow: hidden;
}

.section-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.num-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: #D6EBF7;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.req-star {
  color: #D92534;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--neutral);
}

.text-input, .textarea-input {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background-color: var(--surface);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  transition: all 0.15s ease;
}

.text-input:focus, .textarea-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 147, 216, 0.18);
}

.ltr-input {
  text-align: right;
  direction: ltr;
}

.city-input {
  max-width: 360px;
}

.pref-box {
  background-color: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.pref-question {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.q-num {
  color: var(--secondary);
  font-weight: 800;
}

.muted-note {
  font-size: 11px;
  color: var(--neutral);
  font-weight: 400;
}

.radio-chip-grid {
  display: grid;
  gap: 10px;
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.radio-chip-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.15s ease;
}

.radio-chip-label:hover {
  border-color: var(--secondary);
  background-color: #F8FBFE;
}

.table-header-box {
  padding: 16px 20px;
  background-color: var(--surface-alt);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.survey-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
  table-layout: auto;
}

.survey-table th, .survey-table td {
  border: 1px solid var(--border-subtle);
}

.survey-table thead tr {
  background-color: #EBF2F7;
  color: var(--primary);
  font-weight: 700;
}

.survey-table tbody tr:nth-child(even) {
  background-color: #F6F9FC;
}

.survey-table tbody tr:nth-child(odd) {
  background-color: var(--surface);
}

.survey-table tbody tr:hover {
  background-color: #E8F3FA !important;
}

.col-seq {
  width: 50px;
  padding: 12px 6px;
  font-size: 12px;
}

.col-dept {
  width: 85px;
  padding: 12px 6px;
  font-size: 13px;
}

.col-title, .col-title-large {
  text-align: right;
  padding: 12px 18px;
  font-size: 13.5px;
  line-height: 1.6;
}

.col-rate {
  width: 72px;
  min-width: 65px;
  max-width: 80px;
  padding: 12px 4px;
  font-size: 12px;
}

.cell-seq {
  color: var(--neutral);
  font-family: monospace;
}

.cell-title {
  text-align: right;
  padding: 8px 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.cell-dept {
  font-weight: 700;
  vertical-align: middle;
}

.dept-ads { background-color: #E9F6FD; color: var(--secondary); }
.dept-qa { background-color: #E2EBF1; color: var(--primary); }
.dept-serv { background-color: #EBF5F9; color: var(--tertiary); }
.dept-sales { background-color: #F1F6F9; color: var(--neutral); }

.dept-border-top td {
  border-top: 2px solid var(--neutral);
}

.cell-ex {
  color: #0E7C57 !important;
  font-weight: 700 !important;
  background-color: #EDFAF3 !important;
}

.cell-good {
  color: var(--secondary) !important;
  font-weight: 700 !important;
}

.cell-mid {
  color: var(--neutral) !important;
  font-weight: 700 !important;
}

.cell-weak {
  color: #D97706 !important;
  font-weight: 700 !important;
}

.cell-bad {
  color: #D92534 !important;
  font-weight: 700 !important;
}

.table-cell-target {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.table-cell-target:hover {
  background-color: rgba(0, 147, 216, 0.12);
}

input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--secondary);
}

.textarea-input {
  display: block;
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.form-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.privacy-text {
  font-size: 11px;
  color: var(--neutral);
  max-width: 600px;
  line-height: 1.5;
}

.submit-btn-wrap {
  display: flex;
  justify-content: flex-end;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #FFFFFF;
  padding: 12px 32px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 49, 79, 0.18);
  transition: all 0.2s ease;
}

.primary-btn:hover {
  background: var(--tertiary);
  border-color: var(--tertiary);
  box-shadow: 0 6px 16px rgba(0, 49, 79, 0.25);
}

.btn-icon {
  width: 18px;
  height: 18px;
  color: var(--secondary);
}

.form-footer {
  padding: 16px 28px;
  background-color: var(--surface-alt);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--neutral);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-name {
  order: 1;
  text-align: right;
  font-weight: 500;
}

.footer-link {
  order: 2;
  text-align: left;
}

.footer-link a {
  color: var(--tertiary);
  text-decoration: none;
  font-family: monospace;
  font-weight: 700;
}

.footer-link a:hover {
  color: var(--secondary);
}

@media (max-width: 992px) {
  .header-grid {
    gap: 12px;
  }
  .header-logo-box, .header-spacer {
    width: 200px;
  }
  .form-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .city-input {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  body.page-body {
    padding: 12px 6px;
  }
  .page-container {
    border-radius: 14px;
  }
  .form-header {
    padding: 20px 16px;
  }
  .form-content {
    padding: 18px 14px;
    gap: 20px;
  }
  .header-grid {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .header-logo-box, .header-spacer {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .header-spacer {
    display: none;
  }
  .main-title {
    font-size: 20px;
  }
  .sub-title {
    font-size: 13px;
  }
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-5, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .col-span-mobile {
    grid-column: span 2;
  }
  .section-card {
    padding: 16px 12px;
  }
  .survey-table {
    font-size: 11.5px;
  }
  .survey-table th, .survey-table td {
    padding: 8px 4px;
  }
  .col-title, .cell-title {
    padding: 8px 10px;
    font-size: 12px;
  }
  .col-rate {
    width: 50px;
    min-width: 44px;
    font-size: 10.5px;
    padding: 8px 2px;
  }
  .table-cell-target {
    min-height: 40px;
  }
  input[type="radio"] {
    width: 16px;
    height: 16px;
  }
  .form-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .submit-btn-wrap {
    width: 100%;
  }
  .primary-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }
  .form-footer {
    padding: 14px 16px;
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
  .footer-name, .footer-link {
    text-align: center;
    order: unset;
  }
}

@media (max-width: 480px) {
  body.page-body {
    padding: 6px 4px;
  }
  .page-container {
    border-radius: 10px;
  }
  .form-header {
    padding: 16px 12px;
  }
  .form-content {
    padding: 14px 10px;
    gap: 16px;
  }
  .main-title {
    font-size: 18px;
  }
  .sub-title {
    font-size: 12px;
  }
  .badge-pill {
    font-size: 10px;
    padding: 3px 10px;
  }
  .grid-5, .grid-4 {
    grid-template-columns: 1fr;
  }
  .col-span-mobile {
    grid-column: span 1;
  }
  .section-title {
    font-size: 13.5px;
  }
  .pref-question {
    font-size: 12px;
  }
  .survey-table {
    font-size: 11px;
  }
  .col-seq {
    width: 32px;
    padding: 6px 2px;
  }
  .col-title, .cell-title {
    padding: 6px 8px;
    font-size: 11.5px;
  }
  .col-rate {
    width: 42px;
    min-width: 38px;
    font-size: 10px;
    padding: 6px 1px;
  }
  .table-cell-target {
    min-height: 38px;
  }
  input[type="radio"] {
    width: 15px;
    height: 15px;
  }
  .privacy-text {
    font-size: 10.5px;
  }
}

@media print {
  body.page-body {
    background: #ffffff !important;
    padding: 0 !important;
  }
  .no-print {
    display: none !important;
  }
  .page-container {
    box-shadow: none !important;
    max-width: 100% !important;
    border: 1px solid #94a3b8 !important;
    padding: 16px !important;
    margin: 0 !important;
  }
}