/* ── 22 BUDGET CALCULATOR WIZARD ── */
#calc-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.calc-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.calc-header {
    background: var(--brand);
    padding: 30px;
    text-align: center;
    color: #fff;
}

.calc-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.calc-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.calc-progress {
    display: flex;
    background: #fdfdfd;
    border-bottom: 1px solid var(--line);
}

.calc-step-tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--label);
    position: relative;
    transition: all 0.3s;
}

.calc-step-tab.active {
    color: var(--brand);
}

.calc-step-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand);
}

.calc-step-tab.completed {
    color: #10b981;
}

.calc-body {
    padding: 40px;
    min-height: 300px;
    position: relative;
}

.calc-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.calc-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    text-align: center;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.calc-option {
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.calc-option:hover {
    border-color: var(--brand);
    background: #f8fafc;
}

.calc-option.selected {
    border-color: var(--brand);
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.calc-option i {
    font-size: 2rem;
    color: var(--brand);
    margin-bottom: 12px;
    display: block;
}

.calc-option span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    display: block;
}

.calc-option small {
    display: block;
    font-size: 0.8rem;
    color: var(--label);
    margin-top: 6px;
}

.calc-select {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--line);
    border-radius: 10px;
    color: var(--dark);
    outline: none;
    transition: all 0.3s;
    background: #fdfdfd;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.calc-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.calc-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.btn-calc-back {
    background: transparent;
    border: 2px solid var(--line);
    color: var(--label);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-calc-back:hover {
    background: #f1f5f9;
    color: var(--dark);
}

.btn-calc-next {
    background: var(--brand);
    border: none;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn-calc-next:hover {
    background: var(--brand2);
    transform: translateY(-2px);
}

.btn-calc-next:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Result Step */
.calc-result-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 24px;
}

.calc-price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--brand);
    line-height: 1;
    margin: 10px 0;
}

.calc-price-sub {
    font-size: 1rem;
    color: var(--label);
    font-weight: 500;
}

.calc-summary {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 24px;
    text-align: left;
}

.calc-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.calc-summary-row:last-child {
    margin-bottom: 0;
}

.calc-summary-label {
    color: var(--label);
}

.calc-summary-val {
    font-weight: 700;
    color: var(--dark);
}

.btn-whatsapp-huge {
    display: block;
    width: 100%;
    background: #25D366;
    color: #fff;
    text-align: center;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-huge:hover {
    background: #1ebc59;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-huge i {
    margin-right: 8px;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .calc-body {
        padding: 24px 20px;
    }

    .calc-header {
        padding: 24px 20px;
    }

    .calc-step-tab {
        font-size: 0.8rem;
        padding: 12px 5px;
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }

    .calc-price {
        font-size: 2.8rem;
    }
}

/* Responsive Compact Hero Calculator */
.hero-calc-wrapper {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  max-width: 90vw;
  z-index: 10;
}

@media (max-width: 992px) {
  .hero-calc-wrapper {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content: center;
  }
}

.hero-calc {
  width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.hero-calc .calc-header { padding: 15px 20px; background: var(--brand); }
.hero-calc .calc-header h2 { font-size: 1.2rem; margin-bottom: 5px; }
.hero-calc .calc-header p { font-size: 0.85rem; line-height: 1.3; }

.hero-calc .calc-step-tab { padding: 10px 5px; font-size: 0.65rem; }

.hero-calc .calc-body { padding: 20px; min-height: auto; }
.hero-calc .calc-title { font-size: 1.1rem; margin-bottom: 12px; }

.hero-calc .calc-grid { gap: 10px; grid-template-columns: repeat(2, 1fr); }
.hero-calc .calc-option { padding: 10px; border-radius: 8px; }
.hero-calc .calc-option i { font-size: 1.4rem; margin-bottom: 8px; }
.hero-calc .calc-option span { font-size: 0.8rem; }
.hero-calc .calc-option small { font-size: 0.65rem; display:none; } /* Hide descriptions to save space */

.hero-calc .calc-input, .hero-calc .calc-select { padding: 10px 15px; font-size: 0.95rem; }
.hero-calc .btn-calc-next, .hero-calc-back { padding: 10px 15px; font-size: 0.9rem; }
.hero-calc .calc-nav { margin-top: 15px; padding-top: 15px; }

.hero-calc .calc-result-box { padding: 15px; margin-bottom: 15px; }
.hero-calc .calc-price { font-size: 2rem; margin: 5px 0; }
.hero-calc .calc-summary { padding: 10px; margin-bottom: 15px; }
.hero-calc .calc-summary-row { font-size: 0.8rem; margin-bottom: 5px; }
.hero-calc .btn-whatsapp-huge { padding: 12px; font-size: 1rem; border-radius: 8px; }
