/* Electronic Services Guide — reuses the --seu-* variables defined in contact.css */

.service-guide-page {
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  color: var(--seu-text);
  background-color: #fff;
}

.service-guide-page[dir="ltr"],
.service-guide-page[dir="ltr"] *:not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.bi) {
  font-family: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
}

.service-guide-page a {
  text-decoration: none;
}

/* ---------------------------------------------------------------- intro */
.sg-intro {
  max-width: 860px;
  margin: 0 0 24px;
}

.sg-intro p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.8;
}

/* --------------------------------------------------------------- layout */
.sg-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 60px;
}

.sg-main {
  flex: 1;
  min-width: 0;
}

/* --------------------------------------------------------------- toolbar */
.sg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.sg-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 38px 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--seu-neutral-300);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 14px;
  color: var(--seu-text);
  font-size: 0.9rem;
  min-width: 180px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sg-select:hover {
  border-color: var(--seu-primary-accent);
}

.service-guide-page[dir="rtl"] .sg-select {
  padding: 10px 14px 10px 38px;
  background-position: left 12px center;
}

.sg-select:focus {
  outline: none;
  border-color: var(--seu-primary);
  box-shadow: 0 0 0 4px rgba(27, 131, 84, 0.12);
}

.sg-search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.sg-search-box i {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  transform: translateY(-50%);
  color: #9da4ae;
  font-size: 14px;
}

.sg-search-box input {
  width: 100%;
  height: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: 10px;
  border: 1px solid var(--seu-neutral-300);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-guide-page[dir="rtl"] .sg-search-box input {
  padding: 10px 40px 10px 14px;
}

.sg-search-box input:focus {
  border-color: var(--seu-primary);
  box-shadow: 0 0 0 4px rgba(27, 131, 84, 0.12);
}

.sg-search-btn {
  flex-shrink: 0;
}

/* --------------------------------------------------------------- card grid */
.sg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.sg-pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.sg-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-page-item {
  display: flex;
}

.sg-page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--seu-neutral-300);
  background: #fff;
  color: var(--seu-text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sg-page-link:hover {
  border-color: var(--seu-primary);
  color: var(--seu-primary);
}

.sg-page-item.active .sg-page-link {
  background-color: var(--seu-primary);
  border-color: var(--seu-primary);
  color: #fff;
  cursor: default;
}

.sg-page-item.disabled .sg-page-link {
  color: #c4c9d1;
  cursor: not-allowed;
  background: #f9fafb;
}

.sg-page-item.disabled .sg-page-link:hover {
  border-color: var(--seu-neutral-300);
  color: #c4c9d1;
}

.sg-page-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(27, 131, 84, 0.12);
}

.sg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--seu-neutral-300);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 3px 7px -2px rgba(16, 24, 40, 0.1), 0 2px 3px -2px rgba(16, 24, 40, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
  cursor: pointer;
}

.sg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(16, 24, 40, 0.12);
  color: inherit;
}

.sg-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.sg-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  color: #101828;
}

.sg-card-summary {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 14px;
  flex-grow: 1;
}

/* ----------------------------------------------------------- status badge */
.sg-status-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.sg-status-open {
  color: var(--seu-icon-green);
  background: #ecfdf3;
}

.sg-status-open i {
  font-size: 6px;
}

.sg-status-instant {
  color: #b54708;
  background: #fffaeb;
}

/* ------------------------------------------------------------- beneficiary */
.sg-beneficiary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.sg-beneficiary-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--seu-primary);
  background: #fff;
  border: 1px solid #a6e9c5;
  padding: 3px 12px;
  border-radius: 999px;
}

/* ------------------------------------------------------------ locked card */
.sg-card-locked {
  overflow: hidden;
  cursor: default;
}

.sg-card-locked:hover {
  transform: none;
  box-shadow: 0 3px 7px -2px rgba(16, 24, 40, 0.1), 0 2px 3px -2px rgba(16, 24, 40, 0.06);
}

.sg-card-locked-fade {
  opacity: 0.35;
  filter: grayscale(40%);
}

.sg-card-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.sg-card-lock-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f2f4f7;
  color: #667085;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 10px;
}

.sg-upcoming-label {
  color: var(--seu-primary);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.sg-upcoming-desc {
  color: #667085;
  font-size: 0.85rem;
  margin: 0;
}

.sg-card-not-available {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 14px;
  color: #98a2b3;
  font-size: 0.75rem;
}

/* ---------------------------------------------------------------- buttons */
.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sg-btn-primary {
  background-color: var(--seu-primary);
  color: #fff;
}

.sg-btn-primary:hover {
  background-color: var(--seu-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 131, 84, 0.25);
}

.sg-btn-disabled {
  background: #a6cdb9;
  color: #fff;
  cursor: not-allowed;
}

.sg-btn-lg {
  padding: 13px 26px;
  font-size: 0.95rem;
  border-radius: 12px;
}

.sg-info-guide-btn {
  width: 100%;
}

/* ----------------------------------------------------------------- empty */
.sg-empty {
  text-align: center;
  padding: 60px 20px;
  color: #9da4ae;
}

.sg-empty i {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}

/* ---------------------------------------------------------- breadcrumb */
.sg-breadcrumb {
  font-size: 0.85rem;
  color: #667085;
  margin-bottom: 18px;
}

.sg-breadcrumb a {
  color: #667085;
}

.sg-breadcrumb a:hover {
  color: var(--seu-primary);
}

.sg-breadcrumb-sep {
  margin: 0 6px;
  color: #d0d5dd;
}

.sg-breadcrumb-current {
  color: var(--seu-text);
  font-weight: 600;
}

/* --------------------------------------------------------- detail header */
.sg-detail-hero {
  background: linear-gradient(135deg, #eaf8f1 0%, #f6fbf8 55%, #ffffff 100%);
  border: 1px solid var(--seu-neutral-300);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.sg-detail-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sg-detail-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #101828;
}

.sg-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.sg-tag-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--seu-text);
  background: #fff;
  border: 1px solid var(--seu-neutral-300);
  padding: 5px 14px;
  border-radius: 999px;
}

.sg-dot-icon {
  font-size: 6px;
  vertical-align: middle;
}

/* --------------------------------------------------------- detail columns */
.sg-detail-columns {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}

.sg-detail-main {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--seu-neutral-300);
  border-radius: 16px;
  padding: 8px 28px 28px;
}

.sg-detail-sidebar {
  flex: 0 0 300px;
}

/* ---------------------------------------------------------------- tabs */
.sg-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  border-bottom: 1px solid #f2f4f7;
}

.sg-tabs::-webkit-scrollbar {
  display: none;
}

.sg-tab-item {
  flex-shrink: 0;
}

.sg-tab-btn {
  border: none;
  border-bottom: 2px solid transparent;
  color: #667085;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 14px 10px;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
}

.sg-tab-btn.active {
  color: var(--seu-primary);
  border-bottom-color: var(--seu-primary);
  background: transparent;
}

.sg-tab-content {
  padding-top: 22px;
}

.sg-tab-empty {
  color: #9da4ae;
  font-size: 0.92rem;
  margin: 0;
}

.sg-detail-text {
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.9;
}

.sg-prereq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.sg-prereq-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #344054;
  font-size: 0.95rem;
}

.sg-prereq-list li i {
  color: var(--seu-icon-green);
  margin-top: 4px;
}

.sg-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sg-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.sg-step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--seu-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-step-text {
  color: #344054;
  font-size: 0.98rem;
  line-height: 1.7;
  padding-top: 4px;
}

/* ------------------------------------------------------------- info card */
.sg-info-card {
  background: #fff;
  border: 1px solid var(--seu-neutral-300);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sg-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sg-info-row i {
  color: #667085;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.sg-info-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sg-info-label {
  font-size: 0.78rem;
  color: #667085;
}

.sg-info-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #101828;
}

.sg-info-card hr {
  margin: 0;
  border-color: #f2f4f7;
}

/* --------------------------------------------------------------- related */
.service-detail-page {
  /* Real padding (not margin) so this space stays inside the page's white
     background instead of collapsing through to the gray body background. */
  padding-bottom: 56px;
}

.sg-related-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #101828;
  margin-bottom: 20px;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 991.98px) {
  .sg-detail-columns {
    flex-direction: column;
  }
  .sg-detail-sidebar {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .sg-detail-hero {
    padding: 20px;
  }
  .sg-detail-hero-top {
    flex-direction: column;
    align-items: stretch;
  }
  .sg-detail-hero-top .sg-btn-lg {
    width: 100%;
    text-align: center;
  }
  .sg-detail-main {
    padding: 4px 18px 20px;
  }
  .sg-detail-title {
    font-size: 1.3rem;
  }
  .sg-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .sg-select,
  .sg-search-box {
    width: 100%;
    min-width: 0;
  }
  .sg-search-btn {
    width: 100%;
  }
  .sg-card-top {
    flex-wrap: wrap;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .sg-intro p {
    font-size: 0.92rem;
  }
  .sg-grid {
    grid-template-columns: 1fr;
  }
  .sg-card {
    padding: 18px;
  }
  .sg-tab-btn {
    padding: 12px 8px;
    font-size: 0.85rem;
  }
  .sg-detail-hero {
    padding: 16px;
  }
  .sg-info-card {
    padding: 16px;
  }
  .sg-page-link {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 0.82rem;
  }
}
