/* ==========================================
   BUILDER / RAKIT PAGE STYLES - TR7ASSEMBLY
   ========================================== */

.rakit-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.rakit-header {
  text-align: center;
  margin-bottom: 35px;
}

.rakit-subtitle-tag {
  color: #ff0000;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
}

.rakit-header h1 {
  font-size: 2.3rem;
  color: #fff;
  margin: 10px 0;
  font-weight: 900;
  text-transform: uppercase;
}

.rakit-desc-lead {
  color: #888;
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

.rakit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: start;
}

/* Stepper Indicator Styles */
.config-stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  font-family: monospace;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  transition: all 0.3s ease;
}

.step-node.active {
  color: #ff0000;
  font-weight: bold;
}

.step-node.completed {
  color: #00ff66;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #222;
  color: #888;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.step-node.active .step-circle {
  background: #ff0000;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.step-node.completed .step-circle {
  background: #00ff66;
  color: #000;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

.step-line {
  color: #333;
  transition: all 0.3s ease;
}

.step-line.active {
  color: #ff0000;
}

/* Builder Sections */
.builder-options {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.builder-section {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid #222;
  border-radius: 10px;
  padding: 25px;
}

.builder-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px dashed #333;
  padding-bottom: 10px;
}

.builder-section-header h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
  font-family: monospace;
}

.required-badge {
  color: #00ff66;
  font-size: 0.75rem;
  font-family: monospace;
}

.optional-badge {
  color: #888;
  font-size: 0.75rem;
  font-family: monospace;
}

.brief-header {
  margin-bottom: 15px;
}

.brief-textarea {
  width: 100%;
  background: #050505;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.85rem;
  font-family: monospace;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

.brief-textarea:focus {
  border-color: #ff0000;
}

/* Option Cards */
.option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.option-card {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 18px;
  cursor: pointer;
  display: block;
  position: relative;
  transition: all 0.2s ease;
}

.option-card:hover {
  border-color: #555;
}

.option-card.active {
  border-color: #ff0000;
  background: rgba(255, 0, 0, 0.08);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.card-meta-type {
  font-family: monospace;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 5px;
}

.card-recommended {
  background: rgba(255, 0, 0, 0.08) !important;
  border-color: #ff0000 !important;
}

.card-enterprise {
  grid-column: span 1;
}

.option-card .title {
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  display: block;
  margin-bottom: 5px;
}

.option-card .price {
  color: #ff0000;
  font-family: monospace;
  font-weight: bold;
  font-size: 0.95rem;
  display: block;
  margin: 5px 0 10px 0;
}

.addon-price {
  color: #00ff66;
  font-family: monospace;
  font-size: 0.85rem;
  display: block;
  margin: 4px 0;
}

.option-card .desc {
  color: #aaa;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}

/* Summary Sidebar Fixed */
.builder-summary {
  position: sticky;
  top: 90px;
}

.summary-box {
  background: rgba(12, 12, 12, 0.95);
  border: 1px solid rgba(255, 0, 0, 0.4);
  border-radius: 10px;
  padding: 25px;
  font-family: monospace;
}

.summary-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #333;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.summary-box-top h3 {
  color: #ff0000;
  font-size: 1rem;
  margin: 0;
  font-weight: bold;
}

.live-calc-badge {
  color: #00ff66;
  font-size: 0.75rem;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
  color: #ccc;
  max-height: 250px;
  overflow-y: auto;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #222;
}

.summary-list li span.price-tag {
  color: #fff;
  font-weight: 600;
}

.total-price-box {
  background: #050505;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #222;
  margin-bottom: 20px;
  text-align: center;
}

.total-price-box label {
  color: #666;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.total-price-box .amount {
  color: #00ff66;
  font-size: 1.6rem;
  font-weight: bold;
}

.summary-cta-btn {
  width: 100%;
  padding: 14px;
  text-align: center;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.95rem;
  border: none;
  border-radius: 6px;
}

.summary-cta-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: normal;
  margin-top: 2px;
  opacity: 0.9;
}

/* Clean Active Cards */
.option-card.active {
  border-color: #ff0000 !important;
  background: rgba(255, 0, 0, 0.08) !important;
}

/* Checkbox Add-ons Active State */
.option-card:has(input[type="checkbox"]:checked) {
  border-color: #00ff66 !important;
  background: rgba(0, 255, 102, 0.08) !important;
}

/* Helper text colors */
.text-green { color: #00ff66 !important; }
.text-cyan { color: #00e5ff !important; }
.text-red { color: #ff0000 !important; }

/* ==========================================
   RESPONSIVE MOBILE VIEWPORT (ANDROID)
   ========================================== */
@media (max-width: 850px) {
  .rakit-container {
    margin: 20px auto 40px;
    padding: 0 12px;
  }

  .rakit-header h1 {
    font-size: 1.6rem;
  }

  .rakit-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .builder-section {
    padding: 16px 12px;
  }

  .option-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .builder-summary {
    position: static;
  }

  .summary-box {
    padding: 18px 14px;
  }

  .total-price-box .amount {
    font-size: 1.35rem;
  }
}