/* website-calculator.css */

body {
  background: #f4f7fb;
  font-family: 'Inter', sans-serif;
}

/* Hero Section */
.calc-hero {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #001f3d, #003366);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.calc-hero__bg-shapes {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 1;
}
.calc-hero__shape {
  position: absolute;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.calc-hero__shape--1 {
  width: 400px; height: 400px; top: -100px; left: -100px;
  animation: floatShape 6s infinite alternate ease-in-out;
}
.calc-hero__shape--2 {
  width: 250px; height: 250px; bottom: -50px; right: 10%;
  animation: floatShape 8s infinite alternate-reverse ease-in-out;
}
@keyframes floatShape {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(20px) rotate(10deg); }
}
.calc-hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.calc-hero__badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(0, 153, 250, 0.1);
  border: 1px solid rgba(0, 153, 250, 0.3);
  color: #0099fa;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
}
.calc-hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}
.calc-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
}

/* Category Cards */
.calc-categories {
  margin-top: -60px;
  position: relative;
  z-index: 3;
  padding-bottom: 40px;
}
.calc-category-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}
.calc-category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #0099fa, #6300ff);
  transform: scaleX(0);
  transition: all 0.3s ease;
}
.calc-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.calc-category-card:hover::before,
.calc-category-card.active::before {
  transform: scaleX(1);
}
.calc-category-card.active {
  border-color: rgba(0, 153, 250, 0.3);
  background: linear-gradient(to bottom, #ffffff, #f0f8ff);
}
.calc-category-icon {
  width: 54px; height: 54px;
  margin: 0 auto 12px;
  background: rgba(0, 153, 250, 0.08);
  color: #0099fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}
.calc-category-card:hover .calc-category-icon,
.calc-category-card.active .calc-category-icon {
  background: linear-gradient(135deg, #0099fa, #6300ff);
  color: #fff;
  transform: scale(1.05);
}
.calc-category-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #00234b;
  margin-bottom: 8px;
}
.calc-category-card p {
  color: #667;
  font-size: 12px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.calc-category-btn {
  display: inline-block;
  padding: 6px 16px;
  background: #f4f7fb;
  color: #00234b;
  border-radius: 50px;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
}
.calc-category-card:hover .calc-category-btn,
.calc-category-card.active .calc-category-btn {
  background: #0099fa;
  color: #fff;
}

/* Calculator steps content */
.calc-main {
  position: relative;
  z-index: 3;
}
.calc-step {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  margin-bottom: 24px;
  border: 1px solid #edf2f7;
}
.calc-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #00234b;
  border-bottom: 1px solid #f0f4f8;
  padding-bottom: 10px;
}

/* Compact Options Grid */
.calc-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.calc-option {
  cursor: pointer;
  margin: 0;
  user-select: none;
}
.calc-option input {
  display: none;
}
.calc-option__inner {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: #fff;
  min-height: 48px;
}
.calc-option__inner i {
  font-size: 16px;
  color: #a0aec0;
  transition: all 0.2s ease;
  min-width: 20px;
  text-align: center;
}
.calc-option__inner span {
  font-weight: 600;
  color: #4a5568;
  font-size: 13px;
  transition: all 0.2s ease;
  line-height: 1.2;
}

/* Option Hover & Checked States */
.calc-option:hover .calc-option__inner {
  border-color: rgba(0, 153, 250, 0.4);
  background: #fcfdfe;
}
.calc-option input:checked + .calc-option__inner {
  border-color: #0099fa;
  background: rgba(0, 153, 250, 0.04);
  box-shadow: 0 2px 8px rgba(0, 153, 250, 0.08);
}
.calc-option input:checked + .calc-option__inner i {
  color: #0099fa;
}
.calc-option input:checked + .calc-option__inner span {
  color: #0099fa;
}

/* Multi-select checkmark logic (optional check icon swap if needed, here we just change colors) */

/* Nested Sub-options Panel */
.nested-calc-panel {
  background: rgba(247, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 153, 250, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.nested-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 153, 250, 0.1);
  padding-bottom: 8px;
}
.sub-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #718096;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  display: block;
}
.sub-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.sub-option {
  cursor: pointer;
  margin: 0;
}
.sub-option input {
  display: none;
}
.sub-option span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #4a5568;
  background: #fff;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.sub-option:hover span {
  border-color: #0099fa;
  color: #0099fa;
  background: rgba(0, 153, 250, 0.02);
}
.sub-option input:checked + span {
  background: #0099fa;
  border-color: #0099fa;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 153, 250, 0.15);
}

/* Sticky Result Card & Breakdown */
.calc-result-card {
  background: linear-gradient(135deg, #00234b, #001126);
  border-radius: 16px;
  padding: 30px 24px;
  color: #fff;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 35, 75, 0.15);
  position: sticky;
  top: 100px;
}
.calc-result-card h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.calc-result-price {
  font-size: 40px;
  font-weight: 800;
  color: #0099fa;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calc-breakdown-wrapper {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.breakdown-title {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}
.calc-breakdown {
  max-height: 180px;
  overflow-y: auto;
  font-size: 12px;
  padding-right: 4px;
}
.calc-breakdown::-webkit-scrollbar {
  width: 4px;
}
.calc-breakdown::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
}
.calc-breakdown::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}
.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  color: #cbd5e0;
}
.breakdown-item:last-child {
  margin-bottom: 0;
}
.breakdown-item-name {
  color: #a0aec0;
}
.breakdown-item-val {
  font-weight: 600;
  color: #38bdf8;
}
.calc-result-card p {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 15px;
  margin-bottom: 20px;
}
.calc-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #0099fa;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.calc-btn:hover {
  background: #0084d9;
  color: #fff;
  transform: translateY(-1px);
}

/* Hide non-active wrappers */
.calc-section-wrapper {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}
.calc-section-wrapper.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .calc-hero { padding: 90px 0 50px; }
  .calc-hero h1 { font-size: 32px; }
  .calc-result-card { margin-top: 24px; position: static; }
  .calc-options {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* User Info Input Card at the starting */
.calc-user-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  margin-bottom: 30px;
  border: 1px solid #edf2f7;
  text-align: left;
}
.calc-user-info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #00234b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f0f4f8;
  padding-bottom: 10px;
}
.calc-user-input {
  width: 100%;
  height: 48px;
  padding: 10px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #2d3748;
  background: #fff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.calc-user-input:focus {
  outline: none;
  border-color: #0099fa;
  background: rgba(0, 153, 250, 0.01);
  box-shadow: 0 0 0 3px rgba(0, 153, 250, 0.1);
}
.calc-user-input::placeholder {
  color: #a0aec0;
}
.calc-user-input.is-invalid {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.01);
}
.calc-user-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

