/* ============================================================
   Website Cost Calculator - Scenic IT Solutions Theme Styling
   ============================================================ */

.calc-section {
  width: 100%;
  float: left;
  padding: 140px 0 100px 0;
  background: #000000;
  color: #ffffff;
  font-family: "Ubuntu", sans-serif;
  position: relative;
  overflow: hidden;
}

.calc-section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(246, 139, 31, 0.15) 0%, rgba(2, 120, 168, 0.1) 40%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.calc-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.calc-header h1 {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.calc-header h1 span {
  color: #F68B1F;
}

.calc-header p {
  font-size: 20px;
  color: #0099E5;
  max-width: 800px;
  margin: 0 auto;
  letter-spacing: 1px;
  line-height: 1.6;
}

.calc-badge {
  display: inline-block;
  background: rgba(2, 120, 168, 0.2);
  color: #0099E5;
  border: 1px solid #0278a8;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

/* Calculator Grid Layout */
.calc-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 35px;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .calc-container {
    grid-template-columns: 1fr;
  }
}

/* Option Groups & Cards */
.calc-group {
  background: rgba(15, 15, 18, 0.85);
  border: 1px solid #262626;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.calc-group:hover {
  border-color: #3d3d3d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.calc-group-title {
  font-size: 22px;
  font-weight: 500;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-group-title .step-num {
  background: linear-gradient(135deg, #F68B1F, #0278a8);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.calc-group-desc {
  font-size: 15px;
  color: #999999;
  margin-bottom: 22px;
}

/* Cards Grid inside Step */
.calc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.calc-card {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #262626;
  border-radius: 16px;
  padding: 22px 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-card:hover {
  border-color: #0278a8;
  transform: translateY(-3px);
  background: rgba(2, 120, 168, 0.08);
}

.calc-card.active {
  border-color: #F68B1F;
  background: rgba(246, 139, 31, 0.12);
  box-shadow: 0 0 20px rgba(246, 139, 31, 0.25);
}

.calc-card.active::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 14px;
  background: #F68B1F;
  color: #000;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
}

.calc-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.calc-card-name {
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 6px;
}

.calc-card-sub {
  font-size: 13px;
  color: #aaaaaa;
  line-height: 1.4;
  margin-bottom: 14px;
}

.calc-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #F68B1F;
}

/* Checkbox Cards Grid */
.calc-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.calc-checkbox-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #282828;
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.25s ease;
  user-select: none;
}

.calc-checkbox-card:hover {
  border-color: #0278a8;
  background: rgba(2, 120, 168, 0.05);
}

.calc-checkbox-card.active {
  border-color: #0099E5;
  background: rgba(0, 153, 229, 0.12);
}

.calc-custom-check {
  width: 22px;
  height: 22px;
  border: 2px solid #555555;
  border-radius: 6px;
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.calc-checkbox-card.active .calc-custom-check {
  background: #0099E5;
  border-color: #0099E5;
  color: #ffffff;
}

.calc-custom-check::after {
  content: "✓";
  display: none;
  font-size: 13px;
  font-weight: bold;
}

.calc-checkbox-card.active .calc-custom-check::after {
  display: block;
}

.calc-checkbox-info {
  flex-grow: 1;
}

.calc-checkbox-title {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 4px;
}

.calc-checkbox-desc {
  font-size: 13px;
  color: #999999;
  line-height: 1.3;
}

.calc-checkbox-price {
  font-size: 14px;
  font-weight: 700;
  color: #F68B1F;
  margin-top: 4px;
}

/* Slider Section */
.calc-slider-wrapper {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 24px;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calc-page-count {
  font-size: 26px;
  font-weight: 700;
  color: #F68B1F;
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #262626;
  outline: none;
  cursor: pointer;
  margin: 15px 0;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F68B1F, #0278a8);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(246, 139, 31, 0.5);
  transition: transform 0.2s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-slider-marks {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #777777;
}

/* Right Sticky Summary Sidebar */
.calc-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.calc-summary-card {
  background: rgba(15, 15, 18, 0.95);
  border: 2px solid #262626;
  border-radius: 24px;
  padding: 32px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.calc-summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F68B1F, #0099E5);
}

.calc-currency-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #222222;
}

.calc-currency-title {
  font-size: 14px;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calc-currency-select {
  background: #15151a;
  color: #ffffff;
  border: 1px solid #333333;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.calc-currency-select:focus {
  border-color: #F68B1F;
}

.calc-price-display {
  text-align: center;
  margin-bottom: 24px;
}

.calc-price-label {
  font-size: 14px;
  color: #aaaaaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.calc-price-amount {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 30%, #F68B1F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.calc-time-estimate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 120, 168, 0.15);
  color: #0099E5;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
}

/* Cost Breakdown Progress Bar */
.calc-breakdown-bar {
  width: 100%;
  height: 10px;
  background: #1a1a1e;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  margin: 20px 0 24px 0;
}

.calc-bar-segment {
  height: 100%;
  transition: width 0.4s ease;
}

.calc-bar-type { background: #F68B1F; }
.calc-bar-design { background: #0099E5; }
.calc-bar-features { background: #9b51e0; }
.calc-bar-speed { background: #27ae60; }

.calc-bar-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 12px;
  color: #aaaaaa;
  margin-bottom: 24px;
}

.calc-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calc-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Collapsible Itemized List */
.calc-items-list {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #222222;
}

.calc-items-list::-webkit-scrollbar {
  width: 4px;
}

.calc-items-list::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 2px;
}

.calc-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #dddddd;
  padding: 6px 0;
  border-bottom: 1px dashed #222222;
}

.calc-item-row:last-child {
  border-bottom: none;
}

.calc-item-cost {
  font-weight: 600;
  color: #F68B1F;
}

/* Sidebar Buttons */
.calc-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-btn-primary {
  width: 100%;
  background: linear-gradient(90deg, #F68B1F, #e0760d);
  color: #ffffff;
  border: none;
  padding: 16px 24px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(246, 139, 31, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.calc-btn-primary:hover {
  background: linear-gradient(90deg, #0278a8, #0099E5);
  box-shadow: 0 6px 20px rgba(2, 120, 168, 0.4);
  transform: translateY(-2px);
}

.calc-btn-secondary {
  width: 100%;
  background: transparent;
  color: #ffffff;
  border: 2px solid #5A5A5A;
  padding: 12px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calc-btn-secondary:hover {
  border-color: #0099E5;
  color: #0099E5;
  background: rgba(0, 153, 229, 0.08);
}

.calc-reset-btn {
  text-align: center;
  background: none;
  border: none;
  color: #777777;
  font-size: 13px;
  cursor: pointer;
  margin-top: 10px;
  transition: color 0.2s;
  text-decoration: underline;
}

.calc-reset-btn:hover {
  color: #ffffff;
}

/* Print/Export Template Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #calc-print-modal, #calc-print-modal * {
    visibility: visible;
  }
  #calc-print-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 30px;
  }
}
