/* ============================================
   Zemlja primalac ("Šta traži zemlja u koju šaljete dokument")
   templates/part/country-requirements.twig
   ============================================ */

.country-requirements .cr-head {
  max-width: 760px;
}

.country-requirements .cr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.125rem;
  padding: 0.4375rem 1rem;
  border-radius: 100px;
  background-color: var(--pink-faint);
  color: var(--orange-dark);
  font-family: var(--h-font), system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.country-requirements .cr-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 115, 25, 0.18);
}

.country-requirements .cr-lead {
  color: var(--grey-clay);
  font-size: 1.12rem;
}

.country-requirements .cr-panel {
  border: 1px solid var(--grey-solomon);
  border-radius: 24px;
  background-color: var(--white);
  overflow: hidden;
}

/* ============================================
   Tab rail
   ============================================ */

.country-requirements .cr-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--grey-solomon);
  background-color: var(--grey-faint);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.country-requirements .cr-tab {
  flex: none;
  padding: 0.5625rem 1.125rem;
  border: 1px solid var(--grey-light);
  border-radius: 100px;
  background-color: var(--white);
  color: var(--grey-clay);
  font-family: var(--h-font), system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.country-requirements .cr-tab.is-active {
  border-color: var(--orange-dark);
  background-color: var(--orange-dark);
  color: var(--white);
}

@media (hover: hover) {
  .country-requirements .cr-tab:hover {
    border-color: var(--orange-blight);
    background-color: var(--pink-faint);
    color: var(--blvck);
  }

  .country-requirements .cr-tab.is-active:hover {
    border-color: var(--orange-dark);
    background-color: var(--orange-dark);
    color: var(--white);
  }
}

.country-requirements .cr-tab:focus-visible {
  outline: 2px solid var(--orange-dark);
  outline-offset: 2px;
}

/* ============================================
   Panes
   ============================================ */

.country-requirements .cr-panes {
  padding: 1.75rem;
}

/* Only once JS takes over does the section collapse to one country at a time —
   without JS every country stays readable in order. */
.country-requirements .cr-panel.is-ready .cr-pane {
  display: none;
}

.country-requirements .cr-panel.is-ready .cr-pane.is-active {
  display: block;
}

.country-requirements .cr-pane:focus {
  outline: none;
}

.country-requirements .cr-pane + .cr-pane {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--grey-light);
}

.country-requirements .cr-panel.is-ready .cr-pane + .cr-pane {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.country-requirements .cr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.country-requirements .cr-country {
  margin-bottom: 0.75rem;
  color: var(--blvck);
  font-size: 1.25rem;
  font-weight: 800;
}

.country-requirements .cr-country:focus {
  outline: none;
}

.country-requirements .cr-intro {
  margin-bottom: 1.125rem;
  color: var(--grey-clay);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ============================================
   Requirement rows
   ============================================ */

.country-requirements .cr-reqs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.country-requirements .cr-req {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.9375rem 0;
  border-bottom: 1px solid var(--grey-solomon);
}

.country-requirements .cr-req:first-child {
  padding-top: 0;
}

.country-requirements .cr-req:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.country-requirements .cr-status-required {
  --cr-tone: #2b8a3e;
  --cr-tone-bg: #ebfbee;
}

.country-requirements .cr-status-check {
  --cr-tone: var(--orange-dark);
  --cr-tone-bg: var(--pink-faint);
}

.country-requirements .cr-status-no {
  --cr-tone: var(--grey-clay);
  --cr-tone-bg: var(--grey-faint);
}

.country-requirements .cr-status-info {
  --cr-tone: var(--color-primary-complement);
  --cr-tone-bg: var(--blue-faint);
}

.country-requirements .cr-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 0.125rem;
  border-radius: 50%;
  background-color: var(--cr-tone, var(--grey-clay));
  color: var(--white);
  font-size: 0.72rem;
}

.country-requirements .cr-req-body {
  min-width: 0;
}

.country-requirements .cr-req-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  color: var(--blvck);
  font-family: var(--h-font), system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}

.country-requirements .cr-req-badge {
  padding: 0.1875rem 0.625rem;
  border-radius: 100px;
  background-color: var(--cr-tone-bg, var(--grey-faint));
  color: var(--cr-tone, var(--grey-clay));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.country-requirements .cr-req-text {
  margin-bottom: 0;
  color: var(--grey-clay);
  font-size: 0.94rem;
  line-height: 1.65;
}

.country-requirements .cr-req a,
.country-requirements .cr-intro a,
.country-requirements .cr-note a,
.country-requirements .cr-disclaimer a {
  color: var(--red-flame);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

/* ============================================
   Documents chips
   ============================================ */

.country-requirements .cr-docs {
  margin-top: 1.375rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--grey-light);
}

.country-requirements .cr-docs-title {
  margin-bottom: 0.625rem;
  color: var(--grey-olive);
  font-family: var(--h-font), system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.country-requirements .cr-docs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.country-requirements .cr-docs-list li {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--grey-solomon);
  border-radius: 100px;
  background-color: var(--grey-faint);
  color: var(--grey-clay);
  font-size: 0.86rem;
  line-height: 1.35;
}

/* ============================================
   Side note
   ============================================ */

.country-requirements .cr-note {
  padding: 1.375rem 1.5rem;
  border: 1px solid var(--grey-solomon);
  border-radius: 18px;
  background-color: var(--blue-faint);
}

.country-requirements .cr-note-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background-color: var(--white);
  color: var(--color-primary-complement);
  font-size: 0.95rem;
}

.country-requirements .cr-note-title {
  margin-bottom: 0.5rem;
  color: var(--blvck);
  font-size: 1.05rem;
  font-weight: 800;
}

.country-requirements .cr-note-text {
  margin-bottom: 0;
  color: var(--grey-olive);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ============================================
   Disclaimer + actions
   ============================================ */

.country-requirements .cr-disclaimer {
  max-width: 860px;
  margin: 1.25rem auto 0;
  color: var(--grey-clay);
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
}

.country-requirements .cr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.country-requirements .cr-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  color: var(--white);
  font-family: var(--h-font), system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  transition: filter 0.2s ease;
}

@media (hover: hover) {
  .country-requirements .cr-cta:hover {
    color: var(--white);
    filter: brightness(0.93);
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 991.98px) {
  .country-requirements .cr-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .country-requirements .cr-tabs {
    padding: 0.75rem;
  }

  .country-requirements .cr-panes {
    padding: 1.375rem 1.125rem 1.5rem;
  }

  .country-requirements .cr-note {
    padding: 1.125rem 1.125rem 1.25rem;
  }

  .country-requirements .cr-actions .cr-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .country-requirements .cr-tab,
  .country-requirements .cr-cta {
    transition: none;
  }
}
