/* Georgia eVisa — fee calculator page */

.fee-page {
  padding: 1.5rem 0 2.5rem;
  background: var(--bg);
}

.fee-page__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .fee-page__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 1.5rem;
  }
}

.fee-calc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.25rem 1.5rem;
}

.fee-calc__header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--green);
}

.fee-calc__header h1 {
  margin: 0 0 0.35rem;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--navy);
}

.fee-calc__header p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.fee-calc__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.fee-calc .native-country-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.custom-country-select {
  position: relative;
}

.custom-country-selected {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.custom-country-selected:focus-within {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 128, 90, 0.15);
}

.custom-country-selected-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1;
}

.custom-country-search {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
  padding: 0.45rem 0;
}

.custom-country-search::placeholder {
  color: var(--muted);
}

.custom-country-selected-flag,
.custom-country-option-flag,
.fee-result__flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.custom-country-option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-country-arrow-btn {
  border: 0;
  background: transparent;
  padding: 0.35rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  flex-shrink: 0;
}

.custom-country-arrow {
  font-size: 0.75rem;
}

.custom-country-options {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.custom-country-options:not([hidden]) {
  display: block;
}

.custom-country-empty {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  padding: 0.75rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.custom-country-empty:not([hidden]) {
  display: block;
}

.custom-country-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.custom-country-option[hidden] {
  display: none;
}

.custom-country-option:hover,
.custom-country-option.highlight {
  background: var(--green-soft);
}

.fee-result {
  display: none;
  margin-top: 1.25rem;
  padding: 1.15rem;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f3fbf7 0%, #eef7f3 100%);
}

.fee-result.show {
  display: block;
}

.fee-result__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(34, 128, 90, 0.35);
}

.fee-result__head h2 {
  margin: 0;
  font-size: var(--fs-lg);
  color: var(--navy);
  font-weight: 700;
}

.fee-result.is-message-only .fee-result__head {
  margin-bottom: 0.75rem;
}

.fee-result.is-message-only .fee-condition {
  margin-top: 0;
}

.fee-result__price {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0.35rem 0 0.25rem;
}

.fee-result__note {
  display: block;
  text-align: center;
  font-size: var(--fs-xs);
  color: #8a3b12;
  font-style: italic;
  margin-bottom: 0.85rem;
}

.fee-result__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.fee-result__chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.65rem;
  font-size: var(--fs-sm);
}

.fee-result__chip strong {
  display: block;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.fee-result__status {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fee-result__status.is-evisa {
  background: var(--green-soft);
  color: var(--green-dark);
}

.fee-result__status.is-exempt {
  background: #eef2ff;
  color: #3730a3;
}

.fee-result__status.is-sticker {
  background: var(--flag-soft);
  color: #9f1239;
}

.fee-condition {
  background: var(--white);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.fee-condition h3 {
  margin: 0 0 0.4rem;
  font-size: var(--fs-md);
}

.fee-condition p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.65;
  white-space: pre-line;
}

.fee-condition.is-muted {
  border-left-color: #94a3b8;
}

.fee-condition__paths {
  display: none;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.fee-condition__paths:not([hidden]) {
  display: grid;
}

.fee-condition__path {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
}

.fee-condition__path h4 {
  margin: 0 0 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy);
}

.fee-condition__path p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.fee-condition__path--without {
  border-left: 4px solid #9f1239;
}

.fee-condition__path--with {
  border-left: 4px solid var(--green);
}

.fee-info {
  margin-top: 1.1rem;
  background: #fff8e6;
  border-left: 4px solid #e2b203;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: #7a5b00;
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.fee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.fee-seo .faq-item {
  margin-bottom: 0.65rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fee-seo .faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
}

.fee-seo .faq-item > summary::-webkit-details-marker {
  display: none;
}

.fee-seo .faq-item[open] > summary {
  background: var(--green-dark);
}

.fee-seo .faq-item > div,
.fee-seo .faq-answer {
  padding: 0.9rem 1rem 1rem;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.fee-seo .faq-item p {
  margin: 0 0 0.65rem;
}

.fee-seo .faq-item p:last-child {
  margin-bottom: 0;
}

.fee-seo .faq-item a {
  color: var(--portal-link);
}

@media (max-width: 640px) {
  .fee-result__meta {
    grid-template-columns: 1fr;
  }

  .fee-calc {
    padding: 1rem;
  }

  .fee-result__price {
    font-size: 1.65rem;
  }
}
