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

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

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

.flag-circle {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

/* Navigation (sticky) */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Pre-Check Box */
.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;
  font-size: 14px;
}

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

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

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

/* Visualization Block */
.viz-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.viz-item {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px;
}

.viz-icon {
  font-size: 20px;
  margin-bottom: 10px;
  display: block;
}

.viz-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.viz-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.graph-placeholder {
  height: 80px;
  background: white;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #94a3b8;
}

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

.order-widget {
  box-shadow: none;
}

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

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

.platform-badge {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--org);
  font-weight: 600;
  background: rgba(26, 108, 255, 0.06);
  padding: 4px 8px;
  border-radius: 2px;
}

.form-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

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

/* Modules */
.modules-title {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  margin: 15px 0 10px;
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
}

.module-card {
  display: block;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.2s;
  position: relative;
}

.module-card:hover {
  border-color: var(--org);
  background: #fff;
}

.module-card.highlight {
  background: rgba(26, 108, 255, 0.06);
  border-color: var(--org);
}

.module-card.highlight:hover {
  border-color: var(--org);
  box-shadow: none;
}

.module-header {
  display: flex;
  gap: 10px;
}

.module-icon {
  font-size: 16px;
  margin-top: 2px;
}

.module-info {
  flex: 1;
}

.module-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-main);
}

.module-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-top: 2px;
}

.module-price {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--org);
  text-align: right;
  margin-top: 4px;
}

.addon {
  accent-color: var(--org);
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin-top: 2px;
}

.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;
  margin-top: 10px;
}

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

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

  body .viz-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body .module-header {
    align-items: flex-start;
  }

  body .module-price {
    text-align: left;
    margin-top: 8px;
  }

  body .form-label {
    line-height: 1.3;
  }

  body .platform-badge {
    display: none;
  }
}
