/* ============================================
   COUNTRY TEMPLATE STYLES
   ============================================ */

/* Hero Section */
.country-hero {
  background: var(--dark-bg);
  color: white;
  padding: 60px 0 80px;
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 24px;
}

.flag-circle {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.hero-title h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-title p {
  color: #cbd5e1;
  font-size: 16px;
}

/* Layout */
.page-content {
  margin-top: -40px;
  padding-bottom: 60px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 40px;
  align-items: start;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

.data-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.dt-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 40%;
}

.dt-val {
  font-weight: 600;
  color: var(--text-main);
}

.feature-list li {
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
  color: var(--text-main);
}

.feature-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Pre-Check Widget */
.precheck-box {
  background: var(--wash);
  padding: 24px;
  border-radius: 0;
  margin-bottom: 30px;
  border: 1px solid var(--line);
}

.search-row {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.pc-input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
}

.pc-input:focus {
  border-color: var(--ink);
}

.pc-btn {
  background: var(--cta);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.pc-btn:hover {
  background: var(--cta-h);
}

/* Order Widget */
.sidebar {
  position: sticky;
  top: 20px;
}

.order-widget {
  background: white;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 24px;
  box-shadow: none;
}

.price-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.price-val {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

/* Forms */
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  display: block;
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 15px;
  outline: none;
}

.form-input:focus {
  border-color: var(--ink);
  box-shadow: none;
}

/* Upsells */
.upsell-block {
  background: var(--wash);
  padding: 15px;
  border-radius: 0;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

.upsell-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
}

.upsell-label {
  font-size: 14px;
  font-weight: 500;
}

.upsell-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--cta);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s;
}

.btn-submit:hover {
  background: var(--cta-h);
}

.card {
  position: relative;
}
/* Secondary button — the sidebar CTA stays the single amber action */
.btn-request-sample {
  position: absolute;
  right: 15px;
  top: 15px;
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-request-sample:hover {
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
  body .layout-grid {
    grid-template-columns: 1fr;
  }
  body .sidebar {
    position: static !important;
  }
}

@media (max-width: 640px) {
  body .hero-flex {
    align-items: flex-start;
    gap: 14px;
  }

  body .hero-title h1 {
    font-size: 26px;
    line-height: 1.25;
  }

  body .hero-title p {
    font-size: 14px;
    line-height: 1.45;
  }

  body .flag-circle {
    width: 52px;
    height: 52px;
    font-size: 24px;
    flex-shrink: 0;
  }

  body .btn-request-sample {
    position: static;
    float: right;
    margin-bottom: 10px;
    padding: 7px 14px;
    font-size: 13px;
  }

  body .card h2 {
    clear: both;
  }

  body .selected-tier-label {
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: flex-start !important;
  }

  body .selected-tier-label .stl-name {
    display: inline;
    word-break: break-word;
  }

  body .delivery-estimate {
    align-items: flex-start;
    line-height: 1.4;
  }

  body .data-table td {
    display: block;
    width: 100%;
    border-bottom: none;
    padding: 6px 0;
  }

  body .data-table tr {
    display: block;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

  body .data-table tr:last-child {
    border-bottom: 0;
  }

  body .dt-label {
    width: auto;
    font-size: 10px;
  }

  body .dt-val {
    font-size: 14px;
  }
}
